summaryrefslogtreecommitdiff
path: root/packages/arm-kernel-shim/arm-kernel-shim_1.2.bb
diff options
context:
space:
mode:
authorRod Whitby <rod@whitby.id.au>2007-02-06 07:38:17 +0000
committerRod Whitby <rod@whitby.id.au>2007-02-06 07:38:17 +0000
commit493255c0ada70a916c0cd8604ac40a7011ba728f (patch)
treeb2498068252e8bf5c6f583c31ecfbf6ddb6a68b6 /packages/arm-kernel-shim/arm-kernel-shim_1.2.bb
parent811260be4d7df7424f1827410116378929d50da3 (diff)
parentd0a0461f3a8b58803e4637a8991501c9c8565e14 (diff)
merge of '1322f90b18589872dfe43f3e8fb8fafff1f58e20'
and '1e9ea5837bfd496b91787865dfdb897abb24e773'
Diffstat (limited to 'packages/arm-kernel-shim/arm-kernel-shim_1.2.bb')
-rw-r--r--packages/arm-kernel-shim/arm-kernel-shim_1.2.bb52
1 files changed, 52 insertions, 0 deletions
diff --git a/packages/arm-kernel-shim/arm-kernel-shim_1.2.bb b/packages/arm-kernel-shim/arm-kernel-shim_1.2.bb
new file mode 100644
index 0000000000..aa7c7cd64c
--- /dev/null
+++ b/packages/arm-kernel-shim/arm-kernel-shim_1.2.bb
@@ -0,0 +1,52 @@
+DESCRIPTION = "ARM Kernel Shim"
+SECTION = ""
+PRIORITY = "optional"
+HOMEPAGE = "http://wiki.buici.com/twiki/bin/view/Main/ApexBootloader"
+LICENSE = "GPL"
+PR = "r1"
+
+COMPATIBLE_MACHINE = "(ixp4xx|nslu2)"
+
+SRC_URI = "ftp://ftp.buici.com/pub/arm/arm-kernel-shim/arm-kernel-shim-${PV}.tar.gz \
+ file://place-boot-section.patch;patch=1 \
+ file://config-nslu2.h \
+ file://config-nas100d.h \
+ file://config-dsmg600.h \
+ file://config-fsg3.h"
+
+S = ${WORKDIR}/arm-kernel-shim-${PV}
+
+EXTRA_OEMAKE_append = " CROSS_COMPILE=${CROSS_DIR}/bin/${HOST_PREFIX}"
+
+oe_runmake() {
+ mv ${S}/config.h ${S}/config.h.orig
+ # NSLU2
+ cp ${WORKDIR}/config-nslu2.h ${S}/config.h
+ rm -f ${S}/main.o
+ oenote make ${PARALLEL_MAKE} TOOLS=${CROSS_DIR}/bin/${TARGET_PREFIX} PACKAGE=arm-kernel-shim-nslu2
+ make ${PARALLEL_MAKE} TOOLS=${CROSS_DIR}/bin/${TARGET_PREFIX} PACKAGE=arm-kernel-shim-nslu2 || die "oe_runmake failed"
+ # NAS100d
+ cp ${WORKDIR}/config-nas100d.h ${S}/config.h
+ rm -f ${S}/main.o
+ oenote make ${PARALLEL_MAKE} TOOLS=${CROSS_DIR}/bin/${TARGET_PREFIX} PACKAGE=arm-kernel-shim-nas100d
+ make ${PARALLEL_MAKE} TOOLS=${CROSS_DIR}/bin/${TARGET_PREFIX} PACKAGE=arm-kernel-shim-nas100d || die "oe_runmake failed"
+ # DSMG-600
+ cp ${WORKDIR}/config-dsmg600.h ${S}/config.h
+ rm -f ${S}/main.o
+ oenote make ${PARALLEL_MAKE} TOOLS=${CROSS_DIR}/bin/${TARGET_PREFIX} PACKAGE=arm-kernel-shim-dsmg600
+ make ${PARALLEL_MAKE} TOOLS=${CROSS_DIR}/bin/${TARGET_PREFIX} PACKAGE=arm-kernel-shim-dsmg600 || die "oe_runmake failed"
+ # FSG-3
+ cp ${WORKDIR}/config-fsg3.h ${S}/config.h
+ rm -f ${S}/main.o
+ oenote make ${PARALLEL_MAKE} TOOLS=${CROSS_DIR}/bin/${TARGET_PREFIX} PACKAGE=arm-kernel-shim-fsg3
+ make ${PARALLEL_MAKE} TOOLS=${CROSS_DIR}/bin/${TARGET_PREFIX} PACKAGE=arm-kernel-shim-fsg3 || die "oe_runmake failed"
+ mv ${S}/config.h.orig ${S}/config.h
+}
+
+do_populate_staging() {
+ install -d ${STAGING_LOADER_DIR}
+ cp ${S}/arm-kernel-shim-nslu2.bin ${STAGING_LOADER_DIR}/
+ cp ${S}/arm-kernel-shim-nas100d.bin ${STAGING_LOADER_DIR}/
+ cp ${S}/arm-kernel-shim-dsmg600.bin ${STAGING_LOADER_DIR}/
+ cp ${S}/arm-kernel-shim-fsg3.bin ${STAGING_LOADER_DIR}/
+}