summaryrefslogtreecommitdiff
path: root/meta/packages/uboot
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
parentfe795de8f54b4270bc3fcf7b87c06ccf6d837665 (diff)
downloadopenembedded-core-457ae5ada547f8f03a5963f40e4f403dd0244a2b.tar.gz
openembedded-core-457ae5ada547f8f03a5963f40e4f403dd0244a2b.tar.bz2
openembedded-core-457ae5ada547f8f03a5963f40e4f403dd0244a2b.tar.xz
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/uboot')
-rw-r--r--meta/packages/uboot/u-boot-omap3-git/beagleboard/name.patch14
-rw-r--r--meta/packages/uboot/u-boot-omap3_git.bb19
-rw-r--r--meta/packages/uboot/u-boot.inc40
3 files changed, 73 insertions, 0 deletions
diff --git a/meta/packages/uboot/u-boot-omap3-git/beagleboard/name.patch b/meta/packages/uboot/u-boot-omap3-git/beagleboard/name.patch
new file mode 100644
index 000000000..ac03e4777
--- /dev/null
+++ b/meta/packages/uboot/u-boot-omap3-git/beagleboard/name.patch
@@ -0,0 +1,14 @@
+--- git/Makefile.orig 2008-07-25 16:21:22.000000000 -0700
++++ git/Makefile 2008-07-27 06:49:08.000000000 -0700
+@@ -2582,8 +2582,8 @@ SMN42_config : unconfig
+ #########################################################################
+ ## ARM CORTEX Systems
+ #########################################################################
+-omap3530beagle_config : unconfig
+- @$(MKCONFIG) $(@:_config=) arm omap3 omap3530beagle
++beagleboard_config : unconfig
++ @$(MKCONFIG) omap3530beagle arm omap3 omap3530beagle
+
+ overo_config : unconfig
+ @$(MKCONFIG) $(@:_config=) arm omap3 overo
+
diff --git a/meta/packages/uboot/u-boot-omap3_git.bb b/meta/packages/uboot/u-boot-omap3_git.bb
new file mode 100644
index 000000000..50c85c7ba
--- /dev/null
+++ b/meta/packages/uboot/u-boot-omap3_git.bb
@@ -0,0 +1,19 @@
+require u-boot.inc
+
+FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/u-boot-omap3-git/${MACHINE}"
+
+SRCREV = "dcae48d0df9dd0367172677f8154eb2683de0865"
+
+PV = "2008.10-rc2+${PR}+git${SRCREV}"
+PR="r2"
+
+SRC_URI = "git://www.sakoman.net/git/u-boot-omap3.git;branch=common;protocol=git \
+ "
+
+UBOOT_MACHINE_beagleboard = "omap3_beagle_config"
+UBOOT_MACHINE_omap3evm = "omap3_evm_config"
+UBOOT_MACHINE_overo = "omap3_overo_config"
+
+S = "${WORKDIR}/git"
+
+PACKAGE_ARCH = "${MACHINE_ARCH}"
diff --git a/meta/packages/uboot/u-boot.inc b/meta/packages/uboot/u-boot.inc
new file mode 100644
index 000000000..93d603733
--- /dev/null
+++ b/meta/packages/uboot/u-boot.inc
@@ -0,0 +1,40 @@
+DESCRIPTION = "U-boot bootloader"
+HOMEPAGE = "http://u-boot.sf.net"
+SECTION = "bootloaders"
+PRIORITY = "optional"
+LICENSE = "GPL"
+PROVIDES = "virtual/bootloader"
+
+PARALLEL_MAKE=""
+
+EXTRA_OEMAKE = "CROSS_COMPILE=${TARGET_PREFIX}"
+
+UBOOT_MACHINE ?= "${MACHINE}_config"
+UBOOT_IMAGE ?= "u-boot-${MACHINE}-${PV}-${PR}.bin"
+UBOOT_SYMLINK ?= "u-boot-${MACHINE}.bin"
+
+do_compile () {
+ unset LDFLAGS
+ unset CFLAGS
+ unset CPPFLAGS
+ oe_runmake ${UBOOT_MACHINE}
+ oe_runmake all
+}
+
+do_deploy () {
+ install -d ${DEPLOY_DIR_IMAGE}
+ install ${S}/u-boot.bin ${DEPLOY_DIR_IMAGE}/${UBOOT_IMAGE}
+ package_stagefile_shell ${DEPLOY_DIR_IMAGE}/${UBOOT_IMAGE}
+
+ cd ${DEPLOY_DIR_IMAGE}
+ rm -f ${UBOOT_SYMLINK}
+ ln -sf ${UBOOT_IMAGE} ${UBOOT_SYMLINK}
+ package_stagefile_shell ${DEPLOY_DIR_IMAGE}/${UBOOT_SYMLINK}
+}
+do_deploy[dirs] = "${S}"
+addtask deploy before do_build after do_compile
+
+do_stage() {
+ install -d ${STAGING_BINDIR_NATIVE}
+ install -m 755 tools/mkimage ${STAGING_BINDIR_NATIVE}/
+}