|
|
@ -30,6 +30,10 @@ compile_utils_args()
|
|
|
|
local ARGS
|
|
|
|
local ARGS
|
|
|
|
|
|
|
|
|
|
|
|
ARGS=''
|
|
|
|
ARGS=''
|
|
|
|
|
|
|
|
if [ "${UTILS_ARCH}" != '' ]
|
|
|
|
|
|
|
|
then
|
|
|
|
|
|
|
|
ARGS="ARCH=\"${UTILS_ARCH}\""
|
|
|
|
|
|
|
|
fi
|
|
|
|
if [ "${UTILS_CC}" != '' ]
|
|
|
|
if [ "${UTILS_CC}" != '' ]
|
|
|
|
then
|
|
|
|
then
|
|
|
|
ARGS="CC=\"${UTILS_CC}\""
|
|
|
|
ARGS="CC=\"${UTILS_CC}\""
|
|
|
@ -48,6 +52,10 @@ compile_utils_args()
|
|
|
|
|
|
|
|
|
|
|
|
export_utils_args()
|
|
|
|
export_utils_args()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
if [ "${UTILS_ARCH}" != '' ]
|
|
|
|
|
|
|
|
then
|
|
|
|
|
|
|
|
export ARCH="${UTILS_ARCH}"
|
|
|
|
|
|
|
|
fi
|
|
|
|
if [ "${UTILS_CC}" != '' ]
|
|
|
|
if [ "${UTILS_CC}" != '' ]
|
|
|
|
then
|
|
|
|
then
|
|
|
|
export CC="${UTILS_CC}"
|
|
|
|
export CC="${UTILS_CC}"
|
|
|
@ -64,6 +72,10 @@ export_utils_args()
|
|
|
|
|
|
|
|
|
|
|
|
unset_utils_args()
|
|
|
|
unset_utils_args()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
if [ "${UTILS_ARCH}" != '' ]
|
|
|
|
|
|
|
|
then
|
|
|
|
|
|
|
|
unset ARCH
|
|
|
|
|
|
|
|
fi
|
|
|
|
if [ "${UTILS_CC}" != '' ]
|
|
|
|
if [ "${UTILS_CC}" != '' ]
|
|
|
|
then
|
|
|
|
then
|
|
|
|
unset CC
|
|
|
|
unset CC
|
|
|
@ -720,6 +732,10 @@ compile_klibc() {
|
|
|
|
print_info 1 'klibc: >> Compiling...'
|
|
|
|
print_info 1 'klibc: >> Compiling...'
|
|
|
|
ln -snf "${KERNEL_DIR}" linux || gen_die "Could not link to ${KERNEL_DIR}"
|
|
|
|
ln -snf "${KERNEL_DIR}" linux || gen_die "Could not link to ${KERNEL_DIR}"
|
|
|
|
sed -i Makefile -e "s|prefix = /usr|prefix = ${TEMP}/klibc-build|g"
|
|
|
|
sed -i Makefile -e "s|prefix = /usr|prefix = ${TEMP}/klibc-build|g"
|
|
|
|
|
|
|
|
if [ "${UTILS_ARCH}" != '' ]
|
|
|
|
|
|
|
|
then
|
|
|
|
|
|
|
|
sed -i Makefile -e "s|export ARCH.*|export ARCH := ${UTILS_ARCH}|g"
|
|
|
|
|
|
|
|
fi
|
|
|
|
if [ "${ARCH}" = 'um' ]
|
|
|
|
if [ "${ARCH}" = 'um' ]
|
|
|
|
then
|
|
|
|
then
|
|
|
|
compile_generic "ARCH=um" utils
|
|
|
|
compile_generic "ARCH=um" utils
|
|
|
@ -729,9 +745,9 @@ compile_klibc() {
|
|
|
|
elif [ "${ARCH}" = 'x86' ]
|
|
|
|
elif [ "${ARCH}" = 'x86' ]
|
|
|
|
then
|
|
|
|
then
|
|
|
|
compile_generic "ARCH=i386" utils
|
|
|
|
compile_generic "ARCH=i386" utils
|
|
|
|
elif [ "${KERNEL_CROSS_COMPILE}" != '' ]
|
|
|
|
elif [ "${UTILS_CROSS_COMPILE}" != '' ]
|
|
|
|
then
|
|
|
|
then
|
|
|
|
compile_generic "CROSS=${KERNEL_CROSS_COMPILE}" utils
|
|
|
|
compile_generic "CROSS=${UTILS_CROSS_COMPILE}" utils
|
|
|
|
else
|
|
|
|
else
|
|
|
|
compile_generic "" utils
|
|
|
|
compile_generic "" utils
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|