mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-06-23 17:17:32 +00:00
ARM EABI is now working for little endian ARM targets.
Big endian is still missing, though...
This commit is contained in:
@ -231,7 +231,8 @@ do_cc() {
|
||||
# detection problem only matters for gcc-3.2.x and later, I think.
|
||||
# --disable-nls to work around crash bug on ppc405, but also because
|
||||
# embedded systems don't really need message catalogs...
|
||||
CFLAGS="${CT_CFLAGS_FOR_HOST}" \
|
||||
CFLAGS="${CT_CFLAGS_FOR_HOST}" \
|
||||
TARGET_CFLAGS="${CT_TARGET_CFLAGS}" \
|
||||
"${CT_SRC_DIR}/${CT_CC_FILE}/configure" \
|
||||
${CT_CANADIAN_OPT} \
|
||||
--target=${CT_TARGET} --host=${CT_HOST} \
|
||||
|
@ -164,6 +164,20 @@ s/^TARGET_ARCH=".*"/TARGET_ARCH="${CT_KERNEL_ARCH}"/
|
||||
s/.*(DOSTRIP).*/# \\1 is not set/
|
||||
ENDSED
|
||||
|
||||
# Ah. We may one day need architecture-specific handler here...
|
||||
# Hack the ARM {E,O}ABI into the config file
|
||||
if [ "${CT_ARCH_ARM_EABI}" = "y" ]; then
|
||||
cat >>"${munge_file}" <<-ENDSED
|
||||
s/.*(CONFIG_ARM_OABI).*/# \\1 is not set/
|
||||
s/.*(CONFIG_ARM_EABI).*/\\1=y/
|
||||
ENDSED
|
||||
else
|
||||
cat >>"${munge_file}" <<-ENDSED
|
||||
s/.*(CONFIG_ARM_OABI).*/\\1=y/
|
||||
s/.*(CONFIG_ARM_EABI).*/# \\1 is not set/
|
||||
ENDSED
|
||||
fi
|
||||
|
||||
# Accomodate for old and new uClibc versions, where the
|
||||
# way to select between big/little endian has changed
|
||||
case "${CT_ARCH_BE},${CT_ARCH_LE}" in
|
||||
@ -198,7 +212,7 @@ ENDSED
|
||||
;;
|
||||
esac
|
||||
|
||||
# Change paths to work with crosstool
|
||||
# Change paths to work with crosstool-NG
|
||||
# From http://www.uclibc.org/cgi-bin/viewcvs.cgi?rev=16846&view=rev
|
||||
# " we just want the kernel headers, not the whole kernel source ...
|
||||
# " so people may need to update their paths slightly
|
||||
|
Reference in New Issue
Block a user