[PATCH 12/13] MAKEALL: add support for building arbitrary targets

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The scripts currently only make the default target (all).
To make it more useful, let's add a new -t option to be able to
build other targets as well.

Signed-off-by: Ahmad Fatoum <a.fatoum@xxxxxxxxxxxxxx>
---
 MAKEALL | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/MAKEALL b/MAKEALL
index 65cc41824cd8..1966eedb4673 100755
--- a/MAKEALL
+++ b/MAKEALL
@@ -57,6 +57,7 @@ usage() {
 	echo "LOGDIR      -l      log dir"
 	echo "REGEX       -e      regex"
 	echo "KCONFIG_ADD -k      kconfig fragment"
+	echo "TARGET      -t      Makefile target"
 	echo "V           -v      verbosity"
 	echo "INCREMENTAL -i"
 	echo ""
@@ -168,7 +169,7 @@ do_build_defconfig() {
 	if [ "$configure_result" = "0" ]; then
 		report "OK     \n"
 
-		with_logs_collected ${MAKE} $silent_flag
+		with_logs_collected ${MAKE} $silent_flag ${TARGET}
 
 		check_pipe_status
 		compile_result="$?"
@@ -275,7 +276,7 @@ do_build_all() {
 	return $nbuilds
 }
 
-while getopts "hc:j:O:l:a:e:k:v:i" Option
+while getopts "hc:j:O:l:a:e:k:t:v:i" Option
 do
 case $Option in
 	a )
@@ -299,6 +300,9 @@ case $Option in
 	k )
 		KCONFIG_ADD="${KCONFIG_ADD} ${OPTARG}"
 		;;
+	t )
+		TARGET="${TARGET} ${OPTARG}"
+		;;
 	v )
 		export V=${OPTARG}
 		;;
-- 
2.39.5





[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux