UBUNTU: [Packaging] Double the speed of updateconfigs
Use parallel build setting when building menuconfig. mvo says "funny, make menuconfig feels like it takes the same amount of time to compile as it did 15y ago when I used it last" Signed-off-by: Dimitri John Ledkov <dimitri.ledkov@canonical.com> Acked-by: Tim Gardner <tim.gardner@canonical.com> Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
This commit is contained in:
committed by
Paolo Pisati
parent
53c9ca0683
commit
5d1fe8af23
Vendored
+1
-1
@@ -40,7 +40,7 @@ printdebian:
|
||||
|
||||
updateconfigs defaultconfigs editconfigs genconfigs dumpconfigs:
|
||||
dh_testdir;
|
||||
$(SHELL) $(DROOT)/scripts/misc/kernelconfig $@ "$(do_enforce_all)"
|
||||
conc_level=$(conc_level) $(SHELL) $(DROOT)/scripts/misc/kernelconfig $@ "$(do_enforce_all)"
|
||||
rm -rf build
|
||||
|
||||
printenv:
|
||||
|
||||
Vendored
+4
-4
@@ -118,13 +118,13 @@ for arch in $archs; do
|
||||
read choice
|
||||
case "$choice" in
|
||||
y* | Y* | "" )
|
||||
make O=`pwd`/build $env menuconfig
|
||||
make O=`pwd`/build $conc_level $env menuconfig
|
||||
break ;;
|
||||
n* | N* )
|
||||
# 'syncconfig' prevents
|
||||
# errors for '-' options set
|
||||
# in common config fragments
|
||||
make O=`pwd`/build $env syncconfig
|
||||
make O=`pwd`/build $conc_level $env syncconfig
|
||||
break ;;
|
||||
*)
|
||||
echo "Entry not valid"
|
||||
@@ -134,9 +134,9 @@ for arch in $archs; do
|
||||
*)
|
||||
echo "* Run $mode (yes=$yes) on $arch/$config ..."
|
||||
if [ "$yes" -eq 1 ]; then
|
||||
yes "" | make O=`pwd`/build $env "$mode"
|
||||
yes "" | make O=`pwd`/build $conc_level $env "$mode"
|
||||
else
|
||||
make O=`pwd`/build $env "$mode"
|
||||
make O=`pwd`/build $conc_level $env "$mode"
|
||||
fi ;;
|
||||
esac
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user