diff options
author | Richard Purdie <richard@openedhand.com> | 2008-10-10 11:56:19 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2008-10-10 11:56:19 +0000 |
commit | 457ae5ada547f8f03a5963f40e4f403dd0244a2b (patch) | |
tree | cb8a51afe2c96f9c11b7f04f128895e6e3b05d55 /meta/packages/x-load/x-load.inc | |
parent | fe795de8f54b4270bc3fcf7b87c06ccf6d837665 (diff) | |
download | openembedded-core-457ae5ada547f8f03a5963f40e4f403dd0244a2b.tar.gz openembedded-core-457ae5ada547f8f03a5963f40e4f403dd0244a2b.tar.bz2 openembedded-core-457ae5ada547f8f03a5963f40e4f403dd0244a2b.zip |
Add overo
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5477 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages/x-load/x-load.inc')
-rw-r--r-- | meta/packages/x-load/x-load.inc | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/meta/packages/x-load/x-load.inc b/meta/packages/x-load/x-load.inc new file mode 100644 index 0000000000..01db413b12 --- /dev/null +++ b/meta/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 + |