From df4590cfc0a95d5dc0d5e9b7d4af57c299b6e91b Mon Sep 17 00:00:00 2001 From: Rod Whitby Date: Wed, 28 Nov 2007 05:30:24 +0000 Subject: linux.inc: Added support for processor endianness --- packages/linux/linux.inc | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'packages/linux') diff --git a/packages/linux/linux.inc b/packages/linux/linux.inc index 2fb0ce8177..09cf05f7d4 100644 --- a/packages/linux/linux.inc +++ b/packages/linux/linux.inc @@ -41,11 +41,19 @@ do_configure_prepend() { echo "# CONFIG_OABI_COMPAT is not set" >> ${S}/.config fi + # + # endian support + # + if [ "${SITEINFO_ENDIANESS}" = "be" ]; then + echo "CONFIG_CPU_BIG_ENDIAN=y" >> ${S}/.config + fi + echo "CONFIG_CMDLINE=\"${CMDLINE}\"" >> ${S}/.config sed -e '/CONFIG_AEABI/d' \ -e '/CONFIG_OABI_COMPAT=/d' \ -e '/CONFIG_CMDLINE=/d' \ + -e '/CONFIG_CPU_BIG_ENDIAN/d' \ -e '/CONFIG_LOGO=/d' \ -e '/CONFIG_LOGO_LINUX_CLUT224=/d' \ < '${WORKDIR}/defconfig' >>'${S}/.config' -- cgit v1.2.3