summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorJohn Bowler <jbowler@nslu2-linux.org>2006-01-11 22:19:49 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2006-01-11 22:19:49 +0000
commit685b95cae8516570c7e445910b026b576d281808 (patch)
tree96f118519f8cb05b397a663d0ef30eed1bea3e33 /packages
parent6f7bd413184fad59110c5252d0dc3fc059fe7c02 (diff)
slugos: make slugos-??? default to big-endian throughout in slugos.conf
- the JFFS2 format can be overridden in the DISTRO .conf (unlike the other slugos configuration parameters) It can also be changed in local.conf if using a slugos-??? build directly.
Diffstat (limited to 'packages')
-rw-r--r--packages/linux/ixp4xx-kernel.inc14
1 files changed, 13 insertions, 1 deletions
diff --git a/packages/linux/ixp4xx-kernel.inc b/packages/linux/ixp4xx-kernel.inc
index bae5e96bd1..e01ba7e511 100644
--- a/packages/linux/ixp4xx-kernel.inc
+++ b/packages/linux/ixp4xx-kernel.inc
@@ -213,7 +213,19 @@ do_configure_prepend() {
then
echo 'CONFIG_CPU_BIG_ENDIAN=y' >>'${S}/.config'
fi
- sed -e '/CONFIG_CPU_BIG_ENDIAN/d' -e '/CONFIG_CMDLINE=/d' '${WORKDIR}/defconfig' >>'${S}/.config'
+ if test '${SLUGOS_IMAGESEX}' = big-endian
+ then
+ echo 'CONFIG_JFFS2_BIG_ENDIAN=y' >>'${S}/.config'
+ fi
+ if test '${SLUGOS_IMAGESEX}' = little-endian
+ then
+ echo 'CONFIG_JFFS2_LITTLE_ENDIAN=y' >>'${S}/.config'
+ fi
+ sed -e '/CONFIG_CPU_BIG_ENDIAN/d' -e '/CONFIG_CMDLINE=/d' \
+ -e '/CONFIG_JFFS2_NATIVE_ENDIAN=/d' \
+ -e '/CONFIG_JFFS2_BIG_ENDIAN=/d' \
+ -e '/CONFIG_JFFS2_LITTLE_ENDIAN=/d' \
+ '${WORKDIR}/defconfig' >>'${S}/.config'
rm -rf ${S}/include/asm-arm/arch ${S}/include/asm-arm/proc \
${S}/include/asm-arm/.proc ${S}/include/asm-arm/.arch
}