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"
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
}
determine_real_args() {
- MAKEOPTS="-j2"
+ if [ "${CMD_MAKEOPTS}" != "" ]
+ then
+ MAKEOPTS="${CMD_MAKEOPTS}"
+ fi
+
if [ "${CMD_KERNELDIR}" != "" ]
then
KERNEL_DIR=${CMD_KERNELDIR}
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