]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
AOSP: mke2fs: Don't require mke2fs.conf on Windows.
authorSteven Moreland <smoreland@google.com>
Mon, 12 Feb 2018 23:18:03 +0000 (15:18 -0800)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 26 Feb 2018 18:53:29 +0000 (13:53 -0500)
This target doesn't exist on Windows.

Fixes the following error:
build/make/core/main.mk:586: warning: Missing required dependency host_cross_mke2fs.conf from module host_cross_mke2fs defined in out/soong/Android-aosp_walleye.mk

Bug: 7456955
Test: above error no longer present
Change-Id: I278e53488ecfc4f9d5e540a70276344af06ad455
From AOSP commit: dd086f6cfbec49e47ae407d9cbbbc374edd2925b

misc/Android.bp

index b3cb7903334e1231fed82af7a45f87a91bc83aef..8db9ba6fe08e3b282fa0be06934c893d3b9ba248 100644 (file)
@@ -39,10 +39,11 @@ cc_binary {
         "mk_hugefiles.c",
         "default_profile.c",
     ],
-    required: [
-        "mke2fs.conf",
+    cflags: [
+        "-Wno-error=format",
+        "-Wno-error=type-limits",
+        "-Wno-format-extra-args",
     ],
-    cflags: ["-W", "-Wall", "-Wno-macro-redefined"],
     target: {
         host: {
             static_libs: [
@@ -58,6 +59,11 @@ cc_binary {
                 "libz",
             ],
         },
+        not_windows: {
+            required: [
+                "mke2fs.conf",
+            ],
+        },
         windows: {
             include_dirs: [ "external/e2fsprogs/include/mingw" ],
             cflags: ["-D_POSIX", "-D__USE_MINGW_ALARM"],
@@ -66,6 +72,9 @@ cc_binary {
             enabled: true
         },
         android: {
+            required: [
+                "mke2fs.conf",
+            ],
             shared_libs: [
                 "libext2fs",
                 "libext2_blkid",
@@ -75,7 +84,7 @@ cc_binary {
                 "libext2_com_err",
                 "libext2_e2p",
             ],
-           symlinks: ["mkfs.ext2", "mkfs.ext3", "mkfs.ext4"],
+            symlinks: ["mkfs.ext2", "mkfs.ext3", "mkfs.ext4"],
         },
     },
     stl: "libc++_static",