slugos: make slugos-??? default to big-endian throughout in slugos.conf
authorJohn Bowler <jbowler@nslu2-linux.org>
Wed, 11 Jan 2006 22:19:49 +0000 (22:19 +0000)
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>
Wed, 11 Jan 2006 22:19:49 +0000 (22:19 +0000)
 - 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.

conf/distro/slugos-bag.conf
conf/distro/slugos-bau.conf
conf/distro/slugos-btu.conf
conf/distro/slugos-lag.conf
conf/distro/slugos-lau.conf
conf/distro/slugos-ltu.conf
conf/distro/slugos.conf
packages/linux/ixp4xx-kernel.inc

index 9d59722..c1f5ef8 100644 (file)
@@ -13,6 +13,7 @@ DISTRO_TYPE ?= "beta"
 ARCH_BYTE_SEX = "be"
 ARM_INSTRUCTION_SET = "arm"
 TARGET_OS = "linux"
+SLUGOS_IMAGESEX  ?= "big-endian"
 
 FEED_URIS_append += "cross##http://ipkg.nslu2-linux.org/feeds/slugos-bag/cross/${DISTRO_FEED}"
 FEED_URIS_append += "native##http://ipkg.nslu2-linux.org/feeds/slugos-bag/native/${DISTRO_FEED}"
index ab25777..72bafc1 100644 (file)
@@ -14,5 +14,6 @@ DISTRO_TYPE ?= "alpha"
 ARCH_BYTE_SEX = "be"
 ARM_INSTRUCTION_SET = "arm"
 TARGET_OS = "linux-uclibc"
+SLUGOS_IMAGESEX  ?= "big-endian"
 
 include conf/distro/slugos.conf
index 6c96441..8c06605 100644 (file)
@@ -13,6 +13,7 @@ DISTRO_TYPE ?= "beta"
 ARCH_BYTE_SEX = "be"
 ARM_INSTRUCTION_SET = "thumb"
 TARGET_OS = "linux-uclibc"
+SLUGOS_IMAGESEX  ?= "big-endian"
 
 FEED_URIS_append += "cross##http://ipkg.nslu2-linux.org/feeds/slugos-btu/cross/${DISTRO_FEED}"
 FEED_URIS_append += "native##http://ipkg.nslu2-linux.org/feeds/slugos-btu/native/${DISTRO_FEED}"
index 644c09b..c299584 100644 (file)
@@ -12,5 +12,6 @@ DISTRO_TYPE ?= "alpha"
 ARCH_BYTE_SEX = "le"
 ARM_INSTRUCTION_SET = "arm"
 TARGET_OS = "linux"
+SLUGOS_IMAGESEX  ?= "big-endian"
 
 include conf/distro/slugos.conf
index 0866f80..3233f76 100644 (file)
@@ -12,5 +12,6 @@ DISTRO_TYPE ?= "alpha"
 ARCH_BYTE_SEX = "le"
 ARM_INSTRUCTION_SET = "arm"
 TARGET_OS = "linux-uclibc"
+SLUGOS_IMAGESEX  ?= "big-endian"
 
 include conf/distro/slugos.conf
index 06193c9..6d99e62 100644 (file)
@@ -12,5 +12,6 @@ DISTRO_TYPE ?= "alpha"
 ARCH_BYTE_SEX = "le"
 ARM_INSTRUCTION_SET = "thumb"
 TARGET_OS = "linux-uclibc"
+SLUGOS_IMAGESEX  ?= "big-endian"
 
 include conf/distro/slugos.conf
index 15a2788..4cc3388 100644 (file)
@@ -42,6 +42,7 @@
 #ARCH_BYTE_SEX "be" or "le"
 #ARM_INSTRUCTION_SET "arm" or "thumb"
 #TARGET_OS "linux" or "linux-uclibc"
+#SLUGOS_IMAGESEX "big-endian" or "little-endian" (JFFS2 format)
 
 # The following need not be set, the defaults should be adequate
 #USE_NLS = "no" or "yes"
@@ -70,9 +71,6 @@ DISTRO_BASE = ":slugos"
 # change the generated image).
 SLUGOS_IMAGENAME ?= "${DISTRO_NAME}"
 
-# default to native-endian JFFS2 partitions
-SLUGOS_IMAGESEX ?= "${@['big-endian', 'little-endian'][bb.data.getVar('ARCH_BYTE_SEX', d, 1) == 'le']}"
-
 # pull in the frozen list of bbfiles - this sets BBFILES and this will override any
 # setting in local.conf  Since this depends on ${DISTRO} it doesn't actually do
 # anything by default unless conf/distro/${DISTRO}-packages.conf exists.
index bae5e96..e01ba7e 100644 (file)
@@ -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
 }