2022-02-05 14:23:32 +00:00
|
|
|
# determines TARGET_CPU, if not forced by user
|
2023-02-27 02:56:16 +00:00
|
|
|
if [ -z "${TARGET_CPU}" ]; then
|
2023-11-09 11:28:10 +00:00
|
|
|
TARGET_CPU="x86-64-v3"
|
2022-02-05 14:23:32 +00:00
|
|
|
fi
|
|
|
|
|
2022-06-30 10:28:25 +00:00
|
|
|
# 64bit userland
|
|
|
|
if [ -z "${TARGET_FEATURES}" ]; then
|
|
|
|
TARGET_FEATURES="64bit"
|
|
|
|
else
|
|
|
|
TARGET_FEATURES+=" 64bit"
|
|
|
|
fi
|
|
|
|
|
2022-02-05 14:23:32 +00:00
|
|
|
# determine architecture's family
|
|
|
|
TARGET_SUBARCH=x86_64
|
|
|
|
|
2022-07-04 19:19:45 +00:00
|
|
|
TARGET_GCC_ARCH="${TARGET_SUBARCH/-/}"
|
2022-02-05 14:23:32 +00:00
|
|
|
TARGET_KERNEL_ARCH=x86
|
|
|
|
|
|
|
|
# setup ARCH specific *FLAGS
|
2023-11-09 11:28:10 +00:00
|
|
|
TARGET_CFLAGS="-march=${TARGET_CPU} -mtune=generic"
|
|
|
|
TARGET_CXXFLAGS="${TARGET_CFLAGS}"
|
|
|
|
TARGET_LDFLAGS="${TARGET_CFLAGS}"
|
2022-02-05 14:23:32 +00:00
|
|
|
|
|
|
|
# build with SIMD support ( yes / no )
|
2023-11-09 11:28:10 +00:00
|
|
|
# TARGET_FEATURES+=" mmx sse sse2"
|