summaryrefslogtreecommitdiffstats
path: root/recipes-bsp
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-bsp')
-rw-r--r--recipes-bsp/u-boot/u-boot-keystone_2013.01.bb53
1 files changed, 48 insertions, 5 deletions
diff --git a/recipes-bsp/u-boot/u-boot-keystone_2013.01.bb b/recipes-bsp/u-boot/u-boot-keystone_2013.01.bb
index 788d813e..6717e629 100644
--- a/recipes-bsp/u-boot/u-boot-keystone_2013.01.bb
+++ b/recipes-bsp/u-boot/u-boot-keystone_2013.01.bb
@@ -4,13 +4,56 @@ DESCRIPTION = "u-boot bootloader for Multi-Core BU devices"
4 4
5COMPATIBLE_MACHINE = "keystone" 5COMPATIBLE_MACHINE = "keystone"
6 6
7PR = "r2+gitr${SRCPV}" 7PR = "r3+gitr${SRCPV}"
8
9SRC_URI = "git://arago-project.org/git/projects/u-boot-keystone.git;protocol=git;branch=${BRANCH}"
10 8
9# Tag "K2_UBOOT_2013_01_14.03_02"
10SRCREV = "0b9b4be2f3097b5bdc3b0ea7aa5e8f465097e365"
11BRANCH = "master" 11BRANCH = "master"
12 12
13# DEV.MCSDK-03.00.00.07 13SRC_URI = "git://git.ti.com/keystone-linux/u-boot.git;protocol=git;branch=${BRANCH}"
14SRCREV = "82f40e857d853165310d0753e79235aefb65d7ba" 14
15S = "${WORKDIR}/git"
15 16
16UBOOT_SUFFIX = "bin" 17UBOOT_SUFFIX = "bin"
18UBOOT_MAKE_TARGET = "u-boot-spi.gph"
19
20# SPI NOR Flash binaries
21UBOOT_SPI_SPL_BINARY = "u-boot-spl.bin"
22UBOOT_SPI_BINARY = "u-boot.img"
23UBOOT_SPI_GPH_BINARY = "u-boot-spi.gph"
24
25# SPI NOR Flash deployed images
26UBOOT_SPI_SPL_IMAGE = "u-boot-spl-${MACHINE}-${PV}-${PR}.bin"
27UBOOT_SPI_SPL_SYMLINK = "u-boot-spl-${MACHINE}.bin"
28UBOOT_SPI_IMAGE = "u-boot-${MACHINE}-${PV}-${PR}.img"
29UBOOT_SPI_SYMLINK = "u-boot-${MACHINE}.img"
30UBOOT_SPI_GPH_IMAGE = "u-boot-spi-${MACHINE}-${PV}-${PR}.gph"
31UBOOT_SPI_GPH_SYMLINK = "u-boot-spi-${MACHINE}.gph"
32
33do_install_append () {
34 install ${S}/spl/${UBOOT_SPI_SPL_BINARY} ${D}/boot/${UBOOT_SPI_SPL_IMAGE}
35 ln -sf ${UBOOT_SPI_SPL_IMAGE} ${D}/boot/${UBOOT_SPI_SPL_BINARY}
36
37 install ${S}/${UBOOT_SPI_BINARY} ${D}/boot/${UBOOT_SPI_IMAGE}
38 ln -sf ${UBOOT_SPI_IMAGE} ${D}/boot/${UBOOT_SPI_BINARY}
39
40 install ${S}/${UBOOT_SPI_GPH_BINARY} ${D}/boot/${UBOOT_SPI_GPH_IMAGE}
41 ln -sf ${UBOOT_SPI_GPH_IMAGE} ${D}/boot/${UBOOT_SPI_GPH_BINARY}
42}
43
44do_deploy_append () {
45 install ${S}/spl/${UBOOT_SPI_SPL_BINARY} ${DEPLOYDIR}/${UBOOT_SPI_SPL_IMAGE}
46 rm -f ${UBOOT_SPI_SPL_BINARY} ${UBOOT_SPI_SPL_SYMLINK}
47 ln -sf ${UBOOT_SPI_SPL_IMAGE} ${UBOOT_SPI_SPL_SYMLINK}
48 ln -sf ${UBOOT_SPI_SPL_IMAGE} ${UBOOT_SPI_SPL_BINARY}
49
50 install ${S}/${UBOOT_SPI_BINARY} ${DEPLOYDIR}/${UBOOT_SPI_IMAGE}
51 rm -f ${UBOOT_SPI_BINARY} ${UBOOT_SPI_SYMLINK}
52 ln -sf ${UBOOT_SPI_IMAGE} ${UBOOT_SPI_SYMLINK}
53 ln -sf ${UBOOT_SPI_IMAGE} ${UBOOT_SPI_BINARY}
54
55 install ${S}/${UBOOT_SPI_GPH_BINARY} ${DEPLOYDIR}/${UBOOT_SPI_GPH_IMAGE}
56 rm -f ${UBOOT_SPI_GPH_BINARY} ${UBOOT_SPI_GPH_SYMLINK}
57 ln -sf ${UBOOT_SPI_GPH_IMAGE} ${UBOOT_SPI_GPH_SYMLINK}
58 ln -sf ${UBOOT_SPI_GPH_IMAGE} ${UBOOT_SPI_GPH_BINARY}
59}