diff options
author | Joshua Lock <josh@linux.intel.com> | 2010-08-05 13:25:20 +0000 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-08-19 20:06:25 +0100 |
commit | 369920107edd8ae2487d71a324072fcfaba0731e (patch) | |
tree | 14aea71394438111dd1eda29db443ce9784aa314 /meta/packages/uboot/u-boot.inc | |
parent | 29ca8936493b2044c6926becca0ffcf3747b2528 (diff) | |
download | poky-369920107edd8ae2487d71a324072fcfaba0731e.tar.gz |
deploy.bbclass: use new style staging for deploy tasks
All tasks which implement a do_deploy should inherit this class to have the
changes in the deploy task staged.
Update recipes which include a do_deploy function to inherit this class and
to use DEPLOYDIR rather than DEPLOY_DIR_IMAGE.
Signed-off-by: Joshua Lock <josh@linux.intel.com>
Diffstat (limited to 'meta/packages/uboot/u-boot.inc')
-rw-r--r-- | meta/packages/uboot/u-boot.inc | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/meta/packages/uboot/u-boot.inc b/meta/packages/uboot/u-boot.inc index 3e926a4ea6..889f6215ed 100644 --- a/meta/packages/uboot/u-boot.inc +++ b/meta/packages/uboot/u-boot.inc | |||
@@ -5,6 +5,8 @@ PRIORITY = "optional" | |||
5 | LICENSE = "GPL" | 5 | LICENSE = "GPL" |
6 | PROVIDES = "virtual/bootloader" | 6 | PROVIDES = "virtual/bootloader" |
7 | 7 | ||
8 | inherit deploy | ||
9 | |||
8 | PARALLEL_MAKE="" | 10 | PARALLEL_MAKE="" |
9 | 11 | ||
10 | EXTRA_OEMAKE = "CROSS_COMPILE=${TARGET_PREFIX}" | 12 | EXTRA_OEMAKE = "CROSS_COMPILE=${TARGET_PREFIX}" |
@@ -22,16 +24,12 @@ do_compile () { | |||
22 | } | 24 | } |
23 | 25 | ||
24 | do_deploy () { | 26 | do_deploy () { |
25 | install -d ${DEPLOY_DIR_IMAGE} | 27 | install ${S}/u-boot.bin ${DEPLOYDIR}/${UBOOT_IMAGE} |
26 | install ${S}/u-boot.bin ${DEPLOY_DIR_IMAGE}/${UBOOT_IMAGE} | ||
27 | package_stagefile_shell ${DEPLOY_DIR_IMAGE}/${UBOOT_IMAGE} | ||
28 | 28 | ||
29 | cd ${DEPLOY_DIR_IMAGE} | 29 | cd ${DEPLOYDIR} |
30 | rm -f ${UBOOT_SYMLINK} | 30 | rm -f ${UBOOT_SYMLINK} |
31 | ln -sf ${UBOOT_IMAGE} ${UBOOT_SYMLINK} | 31 | ln -sf ${UBOOT_IMAGE} ${UBOOT_SYMLINK} |
32 | package_stagefile_shell ${DEPLOY_DIR_IMAGE}/${UBOOT_SYMLINK} | ||
33 | } | 32 | } |
34 | do_deploy[dirs] = "${S}" | ||
35 | addtask deploy before do_build after do_compile | 33 | addtask deploy before do_build after do_compile |
36 | 34 | ||
37 | do_install() { | 35 | do_install() { |