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-as=<assembler> Assembler 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 " --arch-override=<arch> Force to arch instead of autodetect (cross-compile?)"
echo " --busybox-config=<file> Busybox configuration file to use"
@ -96,12 +97,14 @@ parse_cmdline() {
CMD_UTILS_MAKE=`parse_opt "${x}"`
print_info 2 "CMD_UTILS_MAKE: $CMD_UTILS_MAKE"
;;
--makeopts*)
CMD_MAKEOPTS=`parse_opt "${x}"`
print_info 2 "CMD_MAKEOPTS: $CMD_MAKEOPTS"
;;
--debuglevel*)
CMD_DEBUGLEVEL=`parse_opt "${x}"`
DEBUGLEVEL="${CMD_DEBUGLEVEL}"
print_info 2 "CMD_DEBUGLEVEL: $CMD_DEBUGLEVEL"
;;
--menuconfig)
CMD_MENUCONFIG=1

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

@ -171,7 +171,11 @@ echo "STEP 6: pivot_root and exec/chroot real init"
cd /newroot
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
# must mount a new devfs before we can
# umount the old one for some reason

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

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

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

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

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

Loading…
Cancel
Save