diff options
Diffstat (limited to 'packages/arm-kernel-shim/arm-kernel-shim_1.4.11.bb')
-rw-r--r-- | packages/arm-kernel-shim/arm-kernel-shim_1.4.11.bb | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/packages/arm-kernel-shim/arm-kernel-shim_1.4.11.bb b/packages/arm-kernel-shim/arm-kernel-shim_1.4.11.bb new file mode 100644 index 0000000000..3f5da24991 --- /dev/null +++ b/packages/arm-kernel-shim/arm-kernel-shim_1.4.11.bb @@ -0,0 +1,34 @@ +DESCRIPTION = "ARM Kernel Shim" +SECTION = "" +PRIORITY = "optional" +HOMEPAGE = "http://wiki.buici.com/twiki/bin/view/Main/ApexBootloader" +LICENSE = "GPL" +PR = "r1" + +SRC_URI = "ftp://ftp.buici.com/pub/apex/apex-${PV}.tar.gz \ + file://disable-commandline.patch;patch=1 \ + file://config-nslu2.h \ + file://config-nas100d.h" +S = ${WORKDIR}/apex-${PV}/arm-kernel-shim + +EXTRA_OEMAKE_append = " CROSS_COMPILE=${CROSS_DIR}/bin/${HOST_PREFIX}" + +oe_runmake() { + # 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" +} + +do_populate_staging() { + install -d ${STAGING_LOADER_DIR} + . ${CONFIG_SITE} + cp ${S}/arm-kernel-shim-nslu2.bin ${STAGING_LOADER_DIR}/ + cp ${S}/arm-kernel-shim-nas100d.bin ${STAGING_LOADER_DIR}/ +} |