From: Rod Whitby Date: Wed, 28 Nov 2007 05:30:24 +0000 (+0000) Subject: linux.inc: Added support for processor endianness X-Git-Tag: Release-2010-05/1~8271 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=df4590cfc0a95d5dc0d5e9b7d4af57c299b6e91b;p=openembedded.git linux.inc: Added support for processor endianness --- 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'