summaryrefslogtreecommitdiff
path: root/packages/uboot/u-boot-linkstationppc_git.bb
diff options
context:
space:
mode:
authorOyvind Repvik <nail@nslu2-linux.org>2007-03-17 18:53:20 +0000
committerOyvind Repvik <nail@nslu2-linux.org>2007-03-17 18:53:20 +0000
commitd8d64f9d0608e1d6fa81a2f8ba990dbe4cb731c9 (patch)
tree2ecb2001fc3da9e56c613fef910b15f5096b6e97 /packages/uboot/u-boot-linkstationppc_git.bb
parentecc305f911ed7d30d317ee353b8d9310134e7c79 (diff)
uboot: Add support for linkstation target
Diffstat (limited to 'packages/uboot/u-boot-linkstationppc_git.bb')
-rw-r--r--packages/uboot/u-boot-linkstationppc_git.bb40
1 files changed, 40 insertions, 0 deletions
diff --git a/packages/uboot/u-boot-linkstationppc_git.bb b/packages/uboot/u-boot-linkstationppc_git.bb
new file mode 100644
index 0000000000..2fe2f9e7ff
--- /dev/null
+++ b/packages/uboot/u-boot-linkstationppc_git.bb
@@ -0,0 +1,40 @@
+DESCRIPTION = "U-boot bootloader"
+PROVIDES = "virtual/bootloader"
+SECTION = "bootloader"
+PRIORITY = "optional"
+LICENSE = "GPL"
+
+DEFAULT_PREFERENCE = "-1"
+COMPATIBLE_MACHINE = "linkstationppc"
+
+SRC_URI = "git://www.jdl.com/software/u-boot-86xx.git;protocol=git \
+ file://u-boot-kurobox.patch;patch=1 \
+ file://u-boot-kurobox-fdt.patch;patch=1 \
+ file://defconfig_linkstationppchg \
+ file://defconfig_linkstationppchd \
+ "
+
+S = "${WORKDIR}/git"
+
+EXTRA_OEMAKE = "CROSS_COMPILE=${TARGET_PREFIX}"
+
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+
+do_compile () {
+ unset LDFLAGS CFLAGS CPPFLAGS
+ cp ${WORKDIR}/defconfig_${MACHINE} ${WORKDIR}/git/include/configs/linkstation.h
+ oe_runmake ${UBOOT_MACHINE}_config
+ oe_runmake ${UBOOT_MACHINE}
+}
+
+do_stage() {
+ install -m 755 tools/mkimage ${STAGING_BINDIR_NATIVE}
+}
+
+do_deploy () {
+ install -d ${DEPLOY_DIR_IMAGE}
+ install ${S}/u-boot-h*.flash.bin ${DEPLOY_DIR_IMAGE}/u-boot-${MACHINE}-${PV}-${PR}.bin
+}
+
+do_deploy[dirs] = "${S}"
+addtask deploy before do_build after do_compile