summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenys Dmytriyenko <denys@ti.com>2016-02-23 03:54:22 +0000
committerDenys Dmytriyenko <denys@ti.com>2016-02-23 16:26:48 -0500
commitd3e3d05baab04a19a1b3f5718a47b3098c55e428 (patch)
tree6332b732cc0b7cedea0cc94c2c51fa8242865005
parentc2526d67ea9efd9e98036b569eb1829c1feab8dc (diff)
downloadmeta-ti-d3e3d05baab04a19a1b3f5718a47b3098c55e428.tar.gz
u-boot-ti-staging: add support for DRA7 and AM4 secure devices
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
-rw-r--r--recipes-bsp/u-boot/u-boot-ti-staging_2015.07.bb15
1 files changed, 14 insertions, 1 deletions
diff --git a/recipes-bsp/u-boot/u-boot-ti-staging_2015.07.bb b/recipes-bsp/u-boot/u-boot-ti-staging_2015.07.bb
index 304b0ab6..ed827fc5 100644
--- a/recipes-bsp/u-boot/u-boot-ti-staging_2015.07.bb
+++ b/recipes-bsp/u-boot/u-boot-ti-staging_2015.07.bb
@@ -7,7 +7,7 @@ DESCRIPTION = "u-boot bootloader for TI devices"
7 7
8LIC_FILES_CHKSUM = "file://Licenses/README;md5=0507cd7da8e7ad6d6701926ec9b84c95" 8LIC_FILES_CHKSUM = "file://Licenses/README;md5=0507cd7da8e7ad6d6701926ec9b84c95"
9 9
10PR = "r19" 10PR = "r20"
11PV_append = "+git${SRCPV}" 11PV_append = "+git${SRCPV}"
12 12
13SRC_URI = "git://git.ti.com/ti-u-boot/ti-u-boot.git;protocol=git;branch=${BRANCH}" 13SRC_URI = "git://git.ti.com/ti-u-boot/ti-u-boot.git;protocol=git;branch=${BRANCH}"
@@ -16,6 +16,12 @@ BRANCH ?= "ti-u-boot-2015.07"
16 16
17SRCREV = "dca348d604c0117fa7851e3a4a194bedb42b739b" 17SRCREV = "dca348d604c0117fa7851e3a4a194bedb42b739b"
18 18
19# Support for secure devices - detailed info is in doc/README.ti-secure
20TI_SECURE_DEV_PKG ?= ""
21TI_SECURE_DEV_PKG_dra7xx-hs-evm = "${TI_SECURE_DEV_PKG_DRA7}"
22TI_SECURE_DEV_PKG_am437x-hs-evm = "${TI_SECURE_DEV_PKG_AM4}"
23export TI_SECURE_DEV_PKG
24
19SPL_BINARY = "MLO" 25SPL_BINARY = "MLO"
20SPL_UART_BINARY = "u-boot-spl.bin" 26SPL_UART_BINARY = "u-boot-spl.bin"
21 27
@@ -36,6 +42,13 @@ UBOOT_SPI_SYMLINK = "u-boot-${MACHINE}.img"
36UBOOT_SPI_GPH_IMAGE = "u-boot-spi-${MACHINE}-${PV}-${PR}.gph" 42UBOOT_SPI_GPH_IMAGE = "u-boot-spi-${MACHINE}-${PV}-${PR}.gph"
37UBOOT_SPI_GPH_SYMLINK = "u-boot-spi-${MACHINE}.gph" 43UBOOT_SPI_GPH_SYMLINK = "u-boot-spi-${MACHINE}.gph"
38 44
45do_compile_append_am437x-hs-evm () {
46 if [ -f ${S}/u-boot-spl_HS_ISSW ]; then
47 rm -rf ${S}/MLO
48 cp ${S}/u-boot-spl_HS_ISSW ${S}/MLO
49 fi
50}
51
39do_install_append_keystone () { 52do_install_append_keystone () {
40 install ${S}/spl/${UBOOT_SPI_SPL_BINARY} ${D}/boot/${UBOOT_SPI_SPL_IMAGE} 53 install ${S}/spl/${UBOOT_SPI_SPL_BINARY} ${D}/boot/${UBOOT_SPI_SPL_IMAGE}
41 ln -sf ${UBOOT_SPI_SPL_IMAGE} ${D}/boot/${UBOOT_SPI_SPL_BINARY} 54 ln -sf ${UBOOT_SPI_SPL_IMAGE} ${D}/boot/${UBOOT_SPI_SPL_BINARY}