diff --git a/flash/FP4/flash_FP4_factory.sh b/flash/FP4/flash_FP4_factory.sh index fa35ef46f4929880ad02c2778040085732d591e6..06764a1c1ed8939ae5fedf20973202bfbb23e844 100755 --- a/flash/FP4/flash_FP4_factory.sh +++ b/flash/FP4/flash_FP4_factory.sh @@ -152,12 +152,16 @@ os_checks() { FASTBOOT_BIN="${ROOT_DIR}/bin-linux-x86/fastboot" ;; msys|MINGW*) - echo "INFO: You are using MinGW on Windows" + echo "INFO: You are using MinGW on Windows." FASTBOOT_BIN="${ROOT_DIR}/bin-msys/fastboot.exe" ;; + Darwin) + echo "INFO: You are using MacOS." + FASTBOOT_BIN="${ROOT_DIR}/bin-darwin/fastboot" + ;; *) echo "ERROR: Unsupported operating system (${OSTYPE})." - echo "ERROR: Only GNU/Linux, and MinGW on Windows are currently supported." + echo "ERROR: Only GNU/Linux, MacOS, and MinGW on Windows are currently supported." abort_now ;; esac diff --git a/flash/fastboot/bin-darwin/e2fsdroid b/flash/fastboot/bin-darwin/e2fsdroid new file mode 100755 index 0000000000000000000000000000000000000000..5213ef0a203f84bcfe2f8d6263bd4e8e692e9ef7 Binary files /dev/null and b/flash/fastboot/bin-darwin/e2fsdroid differ diff --git a/flash/fastboot/bin-darwin/fastboot b/flash/fastboot/bin-darwin/fastboot new file mode 100755 index 0000000000000000000000000000000000000000..ff1493f4a526f74a8f052bdb6842eb6ee5866aa9 Binary files /dev/null and b/flash/fastboot/bin-darwin/fastboot differ diff --git a/flash/fastboot/bin-darwin/lib64/libc++.dylib b/flash/fastboot/bin-darwin/lib64/libc++.dylib new file mode 100755 index 0000000000000000000000000000000000000000..ee2c001479a8b85cbe7a17eab8ff82024888bd7f Binary files /dev/null and b/flash/fastboot/bin-darwin/lib64/libc++.dylib differ diff --git a/flash/fastboot/bin-darwin/make_f2fs b/flash/fastboot/bin-darwin/make_f2fs new file mode 100755 index 0000000000000000000000000000000000000000..f307ac4feab6f29b44528d7daf9d84bef930ae21 Binary files /dev/null and b/flash/fastboot/bin-darwin/make_f2fs differ diff --git a/flash/fastboot/bin-darwin/make_f2fs_casefold b/flash/fastboot/bin-darwin/make_f2fs_casefold new file mode 100755 index 0000000000000000000000000000000000000000..6d09c526ebfc5cbc391d25e2a976dcc0e691891a Binary files /dev/null and b/flash/fastboot/bin-darwin/make_f2fs_casefold differ diff --git a/flash/fastboot/bin-darwin/mke2fs b/flash/fastboot/bin-darwin/mke2fs new file mode 100755 index 0000000000000000000000000000000000000000..2ca1b8d4775d0bfcd530f2d07ba460916db6d250 Binary files /dev/null and b/flash/fastboot/bin-darwin/mke2fs differ diff --git a/flash/fastboot/bin-darwin/mke2fs.conf b/flash/fastboot/bin-darwin/mke2fs.conf new file mode 100755 index 0000000000000000000000000000000000000000..8ea960da6f2ee25e2e6bb591ed12e61a432cd808 --- /dev/null +++ b/flash/fastboot/bin-darwin/mke2fs.conf @@ -0,0 +1,53 @@ +[defaults] + base_features = sparse_super,large_file,filetype,dir_index,ext_attr + default_mntopts = acl,user_xattr + enable_periodic_fsck = 0 + blocksize = 4096 + inode_size = 256 + inode_ratio = 16384 + reserved_ratio = 1.0 + +[fs_types] + ext3 = { + features = has_journal + } + ext4 = { + features = has_journal,extent,huge_file,dir_nlink,extra_isize,uninit_bg + inode_size = 256 + } + ext4dev = { + features = has_journal,extent,huge_file,flex_bg,inline_data,64bit,dir_nlink,extra_isize + inode_size = 256 + options = test_fs=1 + } + small = { + blocksize = 1024 + inode_size = 128 + inode_ratio = 4096 + } + floppy = { + blocksize = 1024 + inode_size = 128 + inode_ratio = 8192 + } + big = { + inode_ratio = 32768 + } + huge = { + inode_ratio = 65536 + } + news = { + inode_ratio = 4096 + } + largefile = { + inode_ratio = 1048576 + blocksize = -1 + } + largefile4 = { + inode_ratio = 4194304 + blocksize = -1 + } + hurd = { + blocksize = 4096 + inode_size = 128 + } diff --git a/flash/fastboot/bin-darwin/sload_f2fs b/flash/fastboot/bin-darwin/sload_f2fs new file mode 100755 index 0000000000000000000000000000000000000000..fe3cf743848094ed2eb519a5500597fd05ad98df Binary files /dev/null and b/flash/fastboot/bin-darwin/sload_f2fs differ diff --git a/flash/fastboot/bin-darwin/source.properties b/flash/fastboot/bin-darwin/source.properties new file mode 100755 index 0000000000000000000000000000000000000000..9eb2a8bfac2a22b20b8abc6f025cc8efd728f8a4 --- /dev/null +++ b/flash/fastboot/bin-darwin/source.properties @@ -0,0 +1,2 @@ +Pkg.UserSrc=false +Pkg.Revision=33.0.3