echo " --kernel-cc=<compiler> Compiler to use for kernel (e.g. distcc)"
echo " --kernel-as=<assembler> Assembler to use for kernel"
echo " --kernel-ld=<linker> Linker to use for kernel"
+ echo " --kernel-cross-compile=<cross var> CROSS_COMPILE kernel variable"
echo " --kernel-make=<makeprg> GNU Make to use for kernel"
echo " --utils-cc=<compiler> Compiler to use for utilities"
echo " --utils-as=<assembler> Assembler to use for utils"
CMD_KERNEL_MAKE=`parse_opt "$*"`
print_info 2 "CMD_KERNEL_MAKE: $CMD_KERNEL_MAKE"
;;
+ --kernel-cross-compile=*)
+ CMD_KERNEL_CROSS_COMPILE=`parse_opt "$*"`
+ CMD_KERNEL_CROSS_COMPILE=$(echo ${CMD_KERNEL_CROSS_COMPILE}|sed -e 's/.*[^-]$/&-/g')
+ print_info 2 "CMD_KERNEL_CROSS_COMPILE: $CMD_KERNEL_CROSS_COMPILE"
+ ;;
--utils-cc=*)
CMD_UTILS_CC=`parse_opt "$*"`
print_info 2 "CMD_UTILS_CC: $CMD_UTILS_CC"
ARGS="${ARGS} AS=\"${KERNEL_AS}\""
fi
+ if [ "${KERNEL_CROSS_COMPILE}" != '' ]
+ then
+ ARGS="${ARGS} CROSS_COMPILE=\"${KERNEL_CROSS_COMPILE}\""
+ fi
+
echo -n "${ARGS}"
}
then
export AS="${KERNEL_AS}"
fi
+ if [ "${KERNEL_CROSS_COMPILE}" != '' ]
+ then
+ export CROSS_COMPILE="${KERNEL_CROSS_COMPILE}"
+ fi
}
unset_kernel_args()
then
unset AS
fi
+ if [ "${KERNEL_CROSS_COMPILE}" != '' ]
+ then
+ unset CROSS_COMPILE
+ fi
}
compile_generic() {
then
KERNEL_AS="${CMD_KERNEL_AS}"
fi
+
+ if [ "${CMD_KERNEL_CROSS_COMPILE}" != '' ]
+ then
+ KERNEL_CROSS_COMPILE="${CMD_KERNEL_CROSS_COMPILE}"
+ fi
if [ "${CMD_UTILS_CC}" != '' ]
then