add makeopts params, and fixes for if old coreutils is in root

git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@38 67a159dc-881f-0410-a524-ba9dfbe2cb84
cleanup-cruft
Brad House 21 years ago
parent 99521b2922
commit e66948ab42

@ -36,6 +36,7 @@ usage() {
echo " --utils-ld=<linker> Linker to use for utils" echo " --utils-ld=<linker> Linker to use for utils"
echo " --utils-as=<assembler> Assembler to use for utils" echo " --utils-as=<assembler> Assembler to use for utils"
echo " --utils-make=<makeprog> GNU Make to use for utils" echo " --utils-make=<makeprog> GNU Make to use for utils"
echo " --makeopts=<makeopts> Make Opts such as -j2, etc"
echo " Internals" echo " Internals"
echo " --arch-override=<arch> Force to arch instead of autodetect (cross-compile?)" echo " --arch-override=<arch> Force to arch instead of autodetect (cross-compile?)"
echo " --busybox-config=<file> Busybox configuration file to use" echo " --busybox-config=<file> Busybox configuration file to use"
@ -96,12 +97,14 @@ parse_cmdline() {
CMD_UTILS_MAKE=`parse_opt "${x}"` CMD_UTILS_MAKE=`parse_opt "${x}"`
print_info 2 "CMD_UTILS_MAKE: $CMD_UTILS_MAKE" print_info 2 "CMD_UTILS_MAKE: $CMD_UTILS_MAKE"
;; ;;
--makeopts*)
CMD_MAKEOPTS=`parse_opt "${x}"`
print_info 2 "CMD_MAKEOPTS: $CMD_MAKEOPTS"
;;
--debuglevel*) --debuglevel*)
CMD_DEBUGLEVEL=`parse_opt "${x}"` CMD_DEBUGLEVEL=`parse_opt "${x}"`
DEBUGLEVEL="${CMD_DEBUGLEVEL}" DEBUGLEVEL="${CMD_DEBUGLEVEL}"
print_info 2 "CMD_DEBUGLEVEL: $CMD_DEBUGLEVEL" print_info 2 "CMD_DEBUGLEVEL: $CMD_DEBUGLEVEL"
;; ;;
--menuconfig) --menuconfig)
CMD_MENUCONFIG=1 CMD_MENUCONFIG=1

@ -16,7 +16,11 @@ get_KV() {
} }
determine_real_args() { determine_real_args() {
MAKEOPTS="-j2" if [ "${CMD_MAKEOPTS}" != "" ]
then
MAKEOPTS="${CMD_MAKEOPTS}"
fi
if [ "${CMD_KERNELDIR}" != "" ] if [ "${CMD_KERNELDIR}" != "" ]
then then
KERNEL_DIR=${CMD_KERNELDIR} KERNEL_DIR=${CMD_KERNELDIR}

@ -171,7 +171,11 @@ echo "STEP 6: pivot_root and exec/chroot real init"
cd /newroot cd /newroot
pivot_root . tmp/.initrd pivot_root . tmp/.initrd
if [ "${USE_DEVFS_NORMAL}" -eq "1" -a "${CDROOT}" -eq "0" ] # We cannot use if [ this = that ] after a pivot_root as
# an old version of coreutils in real_root does not support
# that style, noted by Weeve
if test "${USE_DEVFS_NORMAL}" -eq "1" -a "${CDROOT}" -eq "0"
then then
# must mount a new devfs before we can # must mount a new devfs before we can
# umount the old one for some reason # umount the old one for some reason

@ -22,3 +22,5 @@ UTILS_LD=ld
COMPRESS_INITRD=yes COMPRESS_INITRD=yes
MAKEOPTS="-j2"

@ -9,6 +9,8 @@ KERNEL_BINARY="vmlinux"
# other stuff seems to compile fine though # other stuff seems to compile fine though
USE_DIETLIBC=0 USE_DIETLIBC=0
MAKEOPTS="-j2"
KERNEL_MAKE=make KERNEL_MAKE=make
UTILS_MAKE=make UTILS_MAKE=make

@ -9,6 +9,8 @@ KERNEL_BINARY="arch/sparc64/boot/image"
# can turn this flag on # can turn this flag on
USE_DIETLIBC=0 USE_DIETLIBC=0
MAKEOPTS="-j2"
KERNEL_MAKE=make KERNEL_MAKE=make
UTILS_MAKE=make UTILS_MAKE=make

@ -9,6 +9,8 @@ KERNEL_BINARY="arch/i386/boot/bzImage"
# other stuff seems to compile fine though # other stuff seems to compile fine though
USE_DIETLIBC=1 USE_DIETLIBC=1
MAKEOPTS="-j2"
KERNEL_MAKE=make KERNEL_MAKE=make
UTILS_MAKE=make UTILS_MAKE=make

@ -7,6 +7,8 @@ KERNEL_BINARY="arch/x86_64/boot/bzImage"
USE_DIETLIBC=1 USE_DIETLIBC=1
MAKEOPTS="-j2"
KERNEL_MAKE=make KERNEL_MAKE=make
UTILS_MAKE=make UTILS_MAKE=make

Loading…
Cancel
Save