summaryrefslogtreecommitdiff
path: root/packages/x-load/x-load.inc
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2008-08-02 09:03:11 +0000
committerKoen Kooi <koen@openembedded.org>2008-08-02 09:03:11 +0000
commit796c0d1eae9c63e4d1108f49f3fcfadfa8a3c0e8 (patch)
tree342d6f9ebba499ceeeccb0798ff0110e4db08b40 /packages/x-load/x-load.inc
parent5850aeeb7d0ccf93e6845855ba9a696016ff6fa7 (diff)
x-load: merge x-load recipe and patches from http://www.sakoman.net/cgi-bin/gitweb.cgi?p=org.openembedded.dev-omap3.git;a=tree;f=packages/x-load;hb=d19fc238129e7d515c731916bf3bd964c0a8a098
signgp-native: build our own signing tool
Diffstat (limited to 'packages/x-load/x-load.inc')
-rw-r--r--packages/x-load/x-load.inc46
1 files changed, 46 insertions, 0 deletions
diff --git a/packages/x-load/x-load.inc b/packages/x-load/x-load.inc
new file mode 100644
index 0000000000..01db413b12
--- /dev/null
+++ b/packages/x-load/x-load.inc
@@ -0,0 +1,46 @@
+DESCRIPTION = "x-load bootloader loader"
+SECTION = "bootloaders"
+PRIORITY = "optional"
+LICENSE = "GPL"
+
+DEPENDS = "signgp-native"
+
+PARALLEL_MAKE=""
+
+EXTRA_OEMAKE = "CROSS_COMPILE=${TARGET_PREFIX}"
+
+XLOAD_MACHINE ?= "${MACHINE}_config"
+
+XLOAD_IMAGE ?= "x-load-${MACHINE}-${PV}-${PR}.bin.ift"
+XLOAD_SYMLINK ?= "x-load-${MACHINE}.bin.ift"
+MLO_IMAGE ?= "MLO-${MACHINE}-${PV}-${PR}"
+MLO_SYMLINK ?= "MLO-${MACHINE}"
+
+do_compile () {
+ unset LDFLAGS
+ unset CFLAGS
+ unset CPPFLAGS
+ oe_runmake distclean
+ oe_runmake ${XLOAD_MACHINE}
+ oe_runmake
+}
+
+do_deploy () {
+ signGP ${S}/x-load.bin
+ install -d ${DEPLOY_DIR_IMAGE}
+ install ${S}/x-load.bin.ift ${DEPLOY_DIR_IMAGE}/${XLOAD_IMAGE}
+ install ${S}/x-load.bin.ift ${DEPLOY_DIR_IMAGE}/${MLO_IMAGE}
+ package_stagefile_shell ${DEPLOY_DIR_IMAGE}/${XLOAD_IMAGE}
+ package_stagefile_shell ${DEPLOY_DIR_IMAGE}/${MLO_IMAGE}
+
+ cd ${DEPLOY_DIR_IMAGE}
+ rm -f ${XLOAD_SYMLINK}
+ ln -sf ${XLOAD_IMAGE} ${XLOAD_SYMLINK}
+ rm -f ${MLO_SYMLINK}
+ ln -sf ${MLO_IMAGE} ${MLO_SYMLINK}
+ package_stagefile_shell ${DEPLOY_DIR_IMAGE}/${XLOAD_SYMLINK}
+ package_stagefile_shell ${DEPLOY_DIR_IMAGE}/${MLO_SYMLINK}
+}
+do_deploy[dirs] = "${S}"
+addtask deploy before do_build after do_compile
+