summaryrefslogtreecommitdiff
path: root/packages/linux
diff options
context:
space:
mode:
Diffstat (limited to 'packages/linux')
-rw-r--r--packages/linux/nas100d-kernel.inc14
-rw-r--r--packages/linux/nslu2-kernel.inc14
2 files changed, 26 insertions, 2 deletions
diff --git a/packages/linux/nas100d-kernel.inc b/packages/linux/nas100d-kernel.inc
index 6dd8a46001..69e9f4d285 100644
--- a/packages/linux/nas100d-kernel.inc
+++ b/packages/linux/nas100d-kernel.inc
@@ -210,7 +210,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
}
diff --git a/packages/linux/nslu2-kernel.inc b/packages/linux/nslu2-kernel.inc
index f41b61c033..ee0d233ac2 100644
--- a/packages/linux/nslu2-kernel.inc
+++ b/packages/linux/nslu2-kernel.inc
@@ -200,7 +200,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
}