]> git.openpandora.org Git - openembedded.git/commitdiff
slugos: Enabled JFFS2 endianness to be controlled.
authorRod Whitby <rod@whitby.id.au>
Wed, 11 Jan 2006 10:23:01 +0000 (10:23 +0000)
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>
Wed, 11 Jan 2006 10:23:01 +0000 (10:23 +0000)
conf/distro/debianslug.conf
conf/distro/ludeos.conf
conf/distro/openslug.conf
conf/distro/slugos.conf
conf/distro/ucslugc.conf
packages/linux/nas100d-kernel.inc
packages/linux/nslu2-kernel.inc
packages/meta/slugos-image.bb

index 163e4cd1b63a878399763f0e94741dc5c2832f77..9d448ea8264f7296068477412b3a933eb73fa92f 100644 (file)
@@ -10,6 +10,7 @@ DISTRO_VERSION = "3.1-beta"
 DISTRO_FEED = "unstable"
 DISTRO_TYPE = "beta"
 SLUGOS_IMAGENAME = "debianslug"
+SLUGOS_IMAGESEX  = "little-endian"
 
 # debianslug builds a complete image (not just the parts)
 SLUGOS_FLASH_IMAGE = "yes"
index 21e8e553c770cfdf610e865d41bc5f59aaea8773..87fee2bd53f128c7d88ef8aa8d850966bd144ed6 100644 (file)
@@ -6,6 +6,8 @@ DISTRO_NAME    = "LudeOS"
 DISTRO_VERSION = "0.1-alpha"
 DISTRO_FEED    = "unstable"
 DISTRO_TYPE    = "beta"
+SLUGOS_IMAGENAME = "ludeos"
+SLUGOS_IMAGESEX  = "big-endian"
 
 ARCH_BYTE_SEX = "le"
 ARM_INSTRUCTION_SET = "arm"
index 85f17b18ac271a0067081e5fffe3d25c73ba61c7..e21859b0823076d9b86c5fc3764686789bb388a7 100644 (file)
@@ -10,6 +10,7 @@ DISTRO_VERSION = "3.1-beta"
 DISTRO_FEED = "unstable"
 DISTRO_TYPE = "beta"
 SLUGOS_IMAGENAME = "openslug"
+SLUGOS_IMAGESEX  = "big-endian"
 
 # openslug builds a complete image (not just the parts)
 SLUGOS_FLASH_IMAGE = "yes"
index 4146e4a9a0d57fe24a1cfc25275bef66a402d164..15a2788958959ffc3246f64d5ed5d66c1137a41e 100644 (file)
@@ -70,6 +70,9 @@ 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 ea6b14f3104b7881332f6b054205e74ad6903197..c9c70ca5447709fc9fb5e28cb16fd6d950bb62b5 100644 (file)
@@ -8,6 +8,7 @@ DISTRO_VERSION = "3-beta"
 DISTRO_FEED = "unstable"
 DISTRO_TYPE = "beta"
 SLUGOS_IMAGENAME = "ucslugc"
+SLUGOS_IMAGESEX  = "big-endian"
 
 # NOTE: to build new packages set UCSLUGC_EXTRA_BBFILES to the full path name to
 # the .bb files for the packages to build - see ucslugc-packages.conf in this
index 6dd8a46001f526348e3608205df71fa60073794a..69e9f4d28558c8c481503be6ae3ab732f322f23e 100644 (file)
@@ -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
 }
index f41b61c03337b8a09b07339d887944c541a127cb..ee0d233ac29f5bace2328d9d1f0e14187fedf865 100644 (file)
@@ -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
 }
index 6a4db265d89699a37ff7ce67844c3238c12d8004..b80b6f7b3a57ff6d54255fb974cbd7b36f56ec6a 100644 (file)
@@ -22,9 +22,8 @@ N2K_SUFFIX ?= "nslu2${ARCH_BYTE_SEX}"
 # Why have anything in the config file to control the image build - why not
 # just select a different image .bb file (e.g. slugos-ramdisk-image.bb) to
 # build with different options.
-# IMAGE_SEX = "${@['big-endian', 'little-endian'][bb.data.getVar('ARCH_BYTE_SEX', d, 1) == 'le']}"
 SLUGOS_DEVICE_TABLE = "${@bb.which(bb.data.getVar('BBPATH', d, 1), 'files/device_table-slugos.txt')}"
-EXTRA_IMAGECMD_jffs2 = "--pad --big-endian --eraseblock=0x20000 -D ${SLUGOS_DEVICE_TABLE}"
+EXTRA_IMAGECMD_jffs2 = "--pad --${SLUGOS_IMAGESEX} --eraseblock=0x20000 -D ${SLUGOS_DEVICE_TABLE}"
 
 # IMAGE_PREPROCESS_COMMAND is run before making the image.  In SlugOS the
 # kernel image is removed from the root file system to recover the space used -