1699a17242
This reverts commit 860d44743d
.
24 lines
543 B
Text
24 lines
543 B
Text
# determines TARGET_CPU, if not forced by user
|
|
if [ -z "${TARGET_CPU}" ]; then
|
|
TARGET_CPU=i686
|
|
fi
|
|
|
|
# 64bit userland
|
|
if [ -z "${TARGET_FEATURES}" ]; then
|
|
TARGET_FEATURES="32bit"
|
|
else
|
|
TARGET_FEATURES+=" 32bit"
|
|
fi
|
|
|
|
# determine architecture's family
|
|
TARGET_SUBARCH=i686
|
|
|
|
TARGET_GCC_ARCH="${TARGET_SUBARCH/-/}"
|
|
TARGET_KERNEL_ARCH=x86
|
|
|
|
# setup ARCH specific *FLAGS
|
|
TARGET_CFLAGS="-march=${TARGET_CPU}"
|
|
TARGET_LDFLAGS="-march=${TARGET_CPU}"
|
|
|
|
# build with SIMD support ( yes / no )
|
|
TARGET_FEATURES+=" mmx sse sse2"
|