summaryrefslogtreecommitdiff
path: root/packages/apex/apex_1.4.5.bb
diff options
context:
space:
mode:
authorRod Whitby <rod@whitby.id.au>2006-09-23 02:03:06 +0000
committerRod Whitby <rod@whitby.id.au>2006-09-23 02:03:06 +0000
commite664c9a7751b0b75b1bcebb77dc42108af42208d (patch)
treebfce5e4384f5dfb0e2aa82af45ebf4d07a5de39e /packages/apex/apex_1.4.5.bb
parenta56c24ff15fdd6f51cc2cd606c459b76388162c7 (diff)
apex: Updated to 1.4.5
Diffstat (limited to 'packages/apex/apex_1.4.5.bb')
-rw-r--r--packages/apex/apex_1.4.5.bb46
1 files changed, 46 insertions, 0 deletions
diff --git a/packages/apex/apex_1.4.5.bb b/packages/apex/apex_1.4.5.bb
new file mode 100644
index 0000000000..97e20ec271
--- /dev/null
+++ b/packages/apex/apex_1.4.5.bb
@@ -0,0 +1,46 @@
+DESCRIPTION = "APEX Boot Loader"
+SECTION = ""
+PRIORITY = "optional"
+MAINTAINER = "NSLU2 Linux <www.nslu2-linux.org>"
+HOMEPAGE = "http://wiki.buici.com/twiki/bin/view/Main/ApexBootloader"
+LICENSE = "GPL"
+PR = "r0"
+
+SRC_URI = "ftp://ftp.buici.com/pub/apex/apex-${PV}.tar.gz \
+ file://defconfig"
+
+EXTRA_OEMAKE_append = " CROSS_COMPILE=${CROSS_DIR}/bin/${HOST_PREFIX}"
+
+oe_runmake() {
+ oenote make ${PARALLEL_MAKE} CROSS_COMPILE=${CROSS_DIR}/bin/${TARGET_PREFIX} "$@"
+ make ${PARALLEL_MAKE} LDFLAGS= CROSS_COMPILE=${CROSS_DIR}/bin/${TARGET_PREFIX} "$@" || die "oe_runmake failed"
+}
+
+# FIXME - make this the same as the distro kernel compilation
+CMDLINE="console=ttyS0,115200 rootfstype=jffs2 root=/dev/mtdblock4 rw init=/linuxrc noirqdebug"
+
+# Set the correct CONFIG_USER_xxx_ENDIAN and CONFIG_CMDLINE at the head
+# of the .config file and remove any settings in defconfig then append
+# defconfig to .config
+do_configure() {
+ rm -f ${S}/.config
+ echo "CONFIG_ENV_DEFAULT_CMDLINE=\"${CMDLINE}\"" >>'${S}/.config'
+ if test '${ARCH_BYTE_SEX}' = be
+ then
+ echo 'CONFIG_USER_BIGENDIAN=y' >>'${S}/.config'
+ echo 'CONFIG_BIGENDIAN=y' >>'${S}/.config'
+ else
+ echo 'CONFIG_USER_LITTLEENDIAN=y' >>'${S}/.config'
+ echo 'CONFIG_LITTLEENDIAN=y' >>'${S}/.config'
+ fi
+ sed -e '/CONFIG_USER_BIGENDIAN/d' -e '/CONFIG_USER_LITTLEENDIAN/d' \
+ -e '/CONFIG_ENV_DEFAULT_CMDLINE/d' \
+ ${S}/src/mach-ixp42x/debian-nslu2-arm_config >>${S}/.config
+ oe_runmake oldconfig
+}
+
+do_populate_staging() {
+ install -d ${STAGING_LOADER_DIR}
+ # FIXME - arch-arm should not be hard-coded
+ install -m 0755 src/arch-arm/rom/apex.bin ${STAGING_LOADER_DIR}/apex.bin
+}