different makes for kernel and utils
authorBrad House <brad_mssw@gentoo.org>
Tue, 9 Dec 2003 20:51:07 +0000 (20:51 +0000)
committerBrad House <brad_mssw@gentoo.org>
Tue, 9 Dec 2003 20:51:07 +0000 (20:51 +0000)
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@17 67a159dc-881f-0410-a524-ba9dfbe2cb84

gen_cmdline.sh
gen_compile.sh
gen_determineargs.sh
x86/config.sh
x86_64/config.sh

index 94580f7b4ebbb75a801d38221061108364bcaa75..19ef7fb047115b83027e3b3f26ff355e60ed0c15 100755 (executable)
@@ -26,10 +26,11 @@ usage() {
   echo "       --kernel-cc=<compiler>  Compiler to use for kernel (e.g. distcc)"
   echo "       --kernel-ld=<linker>    Linker to use for kernel"
   echo "       --kernel-as=<assembler> Assembler to use for kernel"
+  echo "       --kernel-make=<makeprg> GNU Make to use for kernel"
   echo "       --utils-cc=<compiler>   Compiler to use for utils (e.g. busybox, modutils)"
   echo "       --utils-ld=<linker>     Linker to use for utils"
   echo "       --utils-as=<assembler>  Assembler to use for utils"
-  echo "       --make=<make prog>      GNU Make to use"
+  echo "       --utils-make=<makeprog> GNU Make to use for utils"
   echo "  Internals"
   echo "       --arch-override=<arch>  Force to arch instead of autodetect (cross-compile?)"
   echo "       --busybox-config=<file> Busybox configuration file to use"
@@ -65,6 +66,10 @@ parse_cmdline() {
                                CMD_KERNEL_AS=`parse_opt "${x}"`
                                print_info 2 "CMD_KERNEL_AS: $CMD_KERNEL_AS"
                        ;;
+                       --kernel-make*)
+                               CMD_KERNEL_MAKE=`parse_opt "${x}"`
+                               print_info 2 "CMD_KERNEL_MAKE: $CMD_KERNEL_MAKE"
+                       ;;
                        --utils-cc*)
                                CMD_UTILS_CC=`parse_opt "${x}"`
                                print_info 2 "CMD_UTILS_CC: $CMD_UTILS_CC"
@@ -77,9 +82,9 @@ parse_cmdline() {
                                CMD_UTILS_AS=`parse_opt "${x}"`
                                print_info 2 "CMD_UTILS_AS: $CMD_UTILS_AS"
                        ;;
-                       --make*)
-                               CMD_MAKE=`parse_opt "${x}"`
-                               print_info 2 "CMD_MAKE: $CMD_MAKE"
+                       --utils-make*)
+                               CMD_UTILS_MAKE=`parse_opt "${x}"`
+                               print_info 2 "CMD_UTILS_MAKE: $CMD_UTILS_MAKE"
                        ;;
                        
                        --debuglevel*)
index 6f699ca806bc5abe184ee97b1e1cd487a4f97191..5a42e54f8fd190776c071875cfb1d7b20fafde93 100644 (file)
@@ -118,9 +118,11 @@ compile_generic() {
        if [ "${2}" = "kernel" ]
        then
                export_kernel_args
+               MAKE=${KERNEL_MAKE}
        elif [ "${2}" = "utils" ]
        then
                export_utils_args
+               MAKE=${UTILS_MAKE}
        fi
 
        if [ "${DEBUGLEVEL}" -gt "1" ]
@@ -137,6 +139,7 @@ compile_generic() {
        fi
        [ "${RET}" -ne "0" ] && gen_die "compile of failed"
 
+       unset MAKE
        if [ "${2}" = "kernel" ]
        then
                unset_kernel_args
index a11bdbc04fdaeec7e6d19084f92f98882a3caa2c..c27249de450c3cb2a674b91a844d1d08a1c5c7cb 100644 (file)
@@ -16,7 +16,6 @@ get_KV() {
 }
 
 determine_real_args() {
-       MAKE="make"
        MAKEOPTS="-j2"
        if [ "${CMD_KERNELDIR}" != "" ]
        then
@@ -28,14 +27,24 @@ determine_real_args() {
 
        get_KV
 
-       if [ "${CMD_MAKE}" != "" ]
+       if [ "${CMD_KERNEL_MAKE}" != "" ]
        then
-               MAKE="${CMD_MAKE}"
+               KERNEL_MAKE="${CMD_KERNEL_MAKE}"
        fi
 
-       if [ "${MAKE}" = "" ]
+       if [ "${KERNEL_MAKE}" = "" ]
        then
-               MAKE="make"
+               KERNEL_MAKE="make"
+       fi
+
+       if [ "${CMD_UTILS_MAKE}" != "" ]
+       then
+               UTILS_MAKE="${CMD_UTILS_MAKE}"
+       fi
+
+       if [ "${UTILS_MAKE}" = "" ]
+       then
+               UTILS_MAKE="make"
        fi
 
        if [ "${CMD_KERNEL_CC}" != "" ]
index b29ebf3c0831eff3c947861d6431a8556cf5ecaa..504cf26e23d5098fdf793e66a9a549fea7aad52b 100644 (file)
@@ -9,7 +9,8 @@ KERNEL_BINARY="arch/i386/boot/bzImage"
 # other stuff seems to compile fine though
 USE_DIETLIBC=1
 
-MAKE=make
+KERNEL_MAKE=make
+UTILS_MAKE=make
 
 KERNEL_CC=gcc
 KERNEL_AS=as
index df2af7a2d092d52dd98e7bd50fe8f82bbf74fc62..c063ad18890bf7f04259d9a327e3ae00a0d26bbf 100644 (file)
@@ -7,7 +7,8 @@ KERNEL_BINARY="arch/x86_64/boot/bzImage"
 
 USE_DIETLIBC=1
 
-MAKE=make
+KERNEL_MAKE=make
+UTILS_MAKE=make
 
 KERNEL_CC=gcc
 KERNEL_AS=as