]> www.infradead.org Git - users/dedekind/aiaiai.git/commitdiff
email-test-patchset: add support for Make options.
authorJacob Keller <jacob.e.keller@intel.com>
Thu, 9 Jan 2014 23:28:26 +0000 (15:28 -0800)
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Wed, 5 Feb 2014 15:12:12 +0000 (17:12 +0200)
aiaiai-test-patchset has support for kernel make options which allows the
user to have more fine grained control over the compilation process. However,
the email form did not support passing these options to the test program. This
patch adds a configuration (per project) for specifying make options, so that
the user can have this fine grained control over the kernel build process.

Artem: amend commentaries a bit.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
email/aiaiai-email-sh-functions
email/aiaiai-email-test-patchset

index eb75a149ca8ade460b9bf8ea1147a50a1959d2db..36c5564770a3721137d897a032a7d4a465517549 100644 (file)
@@ -158,10 +158,14 @@ parse_config()
 }
 
 # Similar to "parse_config", but parses a project configuration section. If the
-# project is found, the following variables are defined: cfg_name. cfg_descr,
-# cfg_path, cfg_configs, cfg_branch, cfg_reply_to_all, cfg_accept_notify,
-# cfg_always_cc, cfg_unwanted_keywords. If the project is not found, this
-# function only defined an empty "cfg_name" variable.
+# project is found, the following variables are defined:
+#
+# cfg_name. cfg_descr, cfg_path, cfg_configs, cfg_branch, cfg_reply_to_all,
+# cfg_accept_notify, cfg_always_cc, cfg_unwanted_keywords, and
+# cfg_make_options.
+#
+# If the project is not found, this function only defined an empty "cfg_name"
+# variable.
 #
 # Usage: parse_prj_config <cfgfile> <prj>
 parse_prj_config()
@@ -181,6 +185,7 @@ parse_prj_config()
 
        cfg_always_cc="$(ini_config_get "$cfgfile" "prj_$prj" "always_cc")"
        cfg_unwanted_keywords="$(ini_config_get "$cfgfile" ""prj_$prj"" "unwanted_keywords")"
+       cfg_make_options="$(ini_config_get "$cfgfile" "prj_$prj" "make_options")"
 }
 
 # Compose (but not send) e-mail reply. This function assumes that the following
index b4efcafa1bbc4d2125388999e6956e917ba5f91d..77ead41b6c07ea424fcbe634644311d3309be2f5 100755 (executable)
@@ -333,6 +333,7 @@ aiaiai-test-patchset $verbose $preserve $bisectability $sparse $smatch $cppcheck
        -i "$mbox" -j "$cfg_jobs" -c "$cfg_branch" -w "$tmpdir" \
        ${confdir:+-C "$confdir"} \
        ${cfg_unwanted_keywords:+-K "$cfg_unwanted_keywords"} -- \
+       ${cfg_make_options:+-M "$cfg_make_options"} \
        "$cfg_path" "$cfg_configs" > "$tmpdir/test-patchset.log" ||
 {
        verbose "aiaiai-test-patchset failed"