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/uboot/u-boot.inc | |
parent | fe795de8f54b4270bc3fcf7b87c06ccf6d837665 (diff) | |
download | poky-457ae5ada547f8f03a5963f40e4f403dd0244a2b.tar.gz |
Add overo
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5477 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages/uboot/u-boot.inc')
-rw-r--r-- | meta/packages/uboot/u-boot.inc | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/meta/packages/uboot/u-boot.inc b/meta/packages/uboot/u-boot.inc new file mode 100644 index 0000000000..93d6037339 --- /dev/null +++ b/meta/packages/uboot/u-boot.inc | |||
@@ -0,0 +1,40 @@ | |||
1 | DESCRIPTION = "U-boot bootloader" | ||
2 | HOMEPAGE = "http://u-boot.sf.net" | ||
3 | SECTION = "bootloaders" | ||
4 | PRIORITY = "optional" | ||
5 | LICENSE = "GPL" | ||
6 | PROVIDES = "virtual/bootloader" | ||
7 | |||
8 | PARALLEL_MAKE="" | ||
9 | |||
10 | EXTRA_OEMAKE = "CROSS_COMPILE=${TARGET_PREFIX}" | ||
11 | |||
12 | UBOOT_MACHINE ?= "${MACHINE}_config" | ||
13 | UBOOT_IMAGE ?= "u-boot-${MACHINE}-${PV}-${PR}.bin" | ||
14 | UBOOT_SYMLINK ?= "u-boot-${MACHINE}.bin" | ||
15 | |||
16 | do_compile () { | ||
17 | unset LDFLAGS | ||
18 | unset CFLAGS | ||
19 | unset CPPFLAGS | ||
20 | oe_runmake ${UBOOT_MACHINE} | ||
21 | oe_runmake all | ||
22 | } | ||
23 | |||
24 | do_deploy () { | ||
25 | install -d ${DEPLOY_DIR_IMAGE} | ||
26 | install ${S}/u-boot.bin ${DEPLOY_DIR_IMAGE}/${UBOOT_IMAGE} | ||
27 | package_stagefile_shell ${DEPLOY_DIR_IMAGE}/${UBOOT_IMAGE} | ||
28 | |||
29 | cd ${DEPLOY_DIR_IMAGE} | ||
30 | rm -f ${UBOOT_SYMLINK} | ||
31 | ln -sf ${UBOOT_IMAGE} ${UBOOT_SYMLINK} | ||
32 | package_stagefile_shell ${DEPLOY_DIR_IMAGE}/${UBOOT_SYMLINK} | ||
33 | } | ||
34 | do_deploy[dirs] = "${S}" | ||
35 | addtask deploy before do_build after do_compile | ||
36 | |||
37 | do_stage() { | ||
38 | install -d ${STAGING_BINDIR_NATIVE} | ||
39 | install -m 755 tools/mkimage ${STAGING_BINDIR_NATIVE}/ | ||
40 | } | ||