summaryrefslogtreecommitdiffstats
path: root/meta/packages/uboot/u-boot.inc
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2008-10-10 11:56:19 +0000
committerRichard Purdie <richard@openedhand.com>2008-10-10 11:56:19 +0000
commit457ae5ada547f8f03a5963f40e4f403dd0244a2b (patch)
treecb8a51afe2c96f9c11b7f04f128895e6e3b05d55 /meta/packages/uboot/u-boot.inc
parentfe795de8f54b4270bc3fcf7b87c06ccf6d837665 (diff)
downloadpoky-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.inc40
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 @@
1DESCRIPTION = "U-boot bootloader"
2HOMEPAGE = "http://u-boot.sf.net"
3SECTION = "bootloaders"
4PRIORITY = "optional"
5LICENSE = "GPL"
6PROVIDES = "virtual/bootloader"
7
8PARALLEL_MAKE=""
9
10EXTRA_OEMAKE = "CROSS_COMPILE=${TARGET_PREFIX}"
11
12UBOOT_MACHINE ?= "${MACHINE}_config"
13UBOOT_IMAGE ?= "u-boot-${MACHINE}-${PV}-${PR}.bin"
14UBOOT_SYMLINK ?= "u-boot-${MACHINE}.bin"
15
16do_compile () {
17 unset LDFLAGS
18 unset CFLAGS
19 unset CPPFLAGS
20 oe_runmake ${UBOOT_MACHINE}
21 oe_runmake all
22}
23
24do_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}
34do_deploy[dirs] = "${S}"
35addtask deploy before do_build after do_compile
36
37do_stage() {
38 install -d ${STAGING_BINDIR_NATIVE}
39 install -m 755 tools/mkimage ${STAGING_BINDIR_NATIVE}/
40}