]> www.infradead.org Git - users/dedekind/aiaiai.git/commitdiff
aiaiai: don't hardcode KCFLAGS or W=1
authorJacob Keller <jacob.e.keller@intel.com>
Wed, 9 Apr 2014 22:26:13 +0000 (15:26 -0700)
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Sat, 26 Apr 2014 00:31:46 +0000 (17:31 -0700)
This patch fixes the TODO item regarding hardcoded kernel make
parameters. We now default -M to be "KCFLAGS='-Wno-missing-initializers
-Wno-sign-compare' W=1", and allow redefining the option via the email
configuration line or the command line setting for aiaiai-test-patchset

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
doc/TODO.txt
doc/email/example-aiaiai.cfg
helpers/aiaiai-make-kernel

index 5d7a41e16b7e7a07be5752c84154f39592a4bdd6..b46dac5ebaf322d2419e4b52126c3c6c9b8dd1fb 100644 (file)
@@ -34,7 +34,3 @@ implementing them.
       int found;
           ^
     Aiaiai does not process them correctly which leads to ugly diffs. Fix this.
-  * We hard-code 'KCFLAGS='-Wno-missing-field-initializers
-    -Wno-sign-compare' and W=1 in 'aiaiai-make-kernel'. This is not that
-    nice. It is better to make these things to be the default value of
-    the -M parameter. The users could disable them or re-define easily.
index 43d9a47bf310ffcb38e2cd3d510c7612bd023e55..e9f7585769d4090b0164563ac59ccd2ef77b5cba 100644 (file)
 
        # Additional kernel build options which are appended to the end of the
        # "make" command. For example, W=2 KALLSYMS_EXTRA_PASS=1.
-       kmake_opts =
+       kmake_opts = KCFLAGS='-Wno-missing-field-initializers -Wno-sign-compare' W=1
 
        # List of targets (space seperated) for which to run a kernel make.
        # Leaving this empty will default to "all" as the only target. However,
        reply_to_all = 1
        accept_notify = 1
        unwanted_keywords =
-       kmake_opts = W=2 KALLSYMS_EXTRA_PASS=1
+       kmake_opts = W=12 KALLSYMS_EXTRA_PASS=1 KCFLAGS='-Wno-missing-initializers -Wno-sign-compare'
 
 # More "prj_xyz" sections may be added
index 934d88b24b94def509dd517f522c3c5e4c852959..4338a2764a094f29f4feb38cc3ccdd26336b1ba6 100755 (executable)
@@ -58,7 +58,9 @@ Options:
       --check-only=FILE  check only files listed in FILE;
   -M, --kmake-opts       additional options to append to the final kernel
                          compilation 'make' command
-                         (e.g., W=2 KALLSYMS_EXTRA_PASS=1)
+                         (e.g., W=12 KALLSYMS_EXTRA_PASS=1)
+                         defaults to "KCFLAGS='-Wno-missing-field-initializers
+                          -Wno-sign-compare' W=1"
   -v, --verbose          be verbose;
   -h, --help             show this text and exit.
 EOF
@@ -118,8 +120,7 @@ make_target()
                "make $keep_going -j $jobs -C $kernel_tree ${arch:+ARCH="$arch"} \
                ${cross:+CROSS_COMPILE="$cross"} ${objdir:+O="$objdir"} \
                CHECK=\"aiaiai-checker $sparse $smatch $cppcheck $coccinelle $check_only --\" \
-               KCFLAGS='-Wno-missing-field-initializers -Wno-sign-compare' \
-               C=$check ${check:+CF="-D__CHECK_ENDIAN__"} W=1 SHELL=\"aiaiai-locker $split -l $lockfile\" \
+               C=$check ${check:+CF="-D__CHECK_ENDIAN__"} SHELL=\"aiaiai-locker $split -l $lockfile\" \
                $kmake_opts $target"
 }
 
@@ -155,7 +156,7 @@ coccinelle=
 cocci_path=
 check_only=
 check=0
-kmake_opts=
+kmake_opts="KCFLAGS='-Wno-missing-field-initializers -Wno-sign-compare' W=1"
 verbose=
 
 while true; do