summaryrefslogtreecommitdiff
path: root/conf/distro/ucslugc.conf
diff options
context:
space:
mode:
Diffstat (limited to 'conf/distro/ucslugc.conf')
-rw-r--r--conf/distro/ucslugc.conf3
1 files changed, 2 insertions, 1 deletions
diff --git a/conf/distro/ucslugc.conf b/conf/distro/ucslugc.conf
index fee0c0f9af..e155df4b30 100644
--- a/conf/distro/ucslugc.conf
+++ b/conf/distro/ucslugc.conf
@@ -79,9 +79,10 @@ FEED_URIS_append += "native##http://ipkg.nslu2-linux.org/feeds/ucslugc/native/${
# IMAGE BUILD OPTIONS
# -------------------
IMAGE_FSTYPES = "jffs2"
+IMAGE_SEX = "${@['little-endian', 'big-endian'][bb.data.getVar('UCSLUGC_ARCH_TYPE', d, 1) == 'b']}"
OPENSLUG_DEVICE_TABLE = "${@bb.which(bb.data.getVar('BBPATH', d, 1), 'files/device_table-openslug.txt')}"
-EXTRA_IMAGECMD_jffs2 = "--pad --big-endian --eraseblock=0x20000 -D ${OPENSLUG_DEVICE_TABLE}"
+EXTRA_IMAGECMD_jffs2 = "--pad --${IMAGE_SEX} --eraseblock=0x20000 -D ${OPENSLUG_DEVICE_TABLE}"
# CMDLINE* macros define the kernel command line. CMDLINE_DEBUG is provided
# to enable/disable debugging in the distro. Here noirqdebug is used to