From d9ebe0579907976bad03ce8cf4eb4bdf0873b841 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Fri, 28 Mar 2014 21:56:27 +0100 Subject: [PATCH] u-boot: Add something that could build for the sysmocom-odu We do not intend to use u-boot right now but at least this version will build. In the first version we will use the barebox images provided to us by the producer of the SoM. --- recipes-sysmobts/uboot/u-boot_sysmocom.inc | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/recipes-sysmobts/uboot/u-boot_sysmocom.inc b/recipes-sysmobts/uboot/u-boot_sysmocom.inc index d1e1e5d103..ec2f4e1dd6 100644 --- a/recipes-sysmobts/uboot/u-boot_sysmocom.inc +++ b/recipes-sysmobts/uboot/u-boot_sysmocom.inc @@ -3,7 +3,14 @@ SRCREV = "40d74c99ac9d741857d1298617b186b1d4e148de" PV = "v2011.12+git${SRCPV}" S = "${WORKDIR}/git" -PRINC = "11" +# We can't build the normal build for sysmocom-odu yet.. build the TI branch +SRCREV_sysmocom-odu = "f2dcae2f9e9434392673fea7584641afa98f4232" +UBOOT_MACHINE_sysmocom-odu = "am335x_evm_config" +SPL_BINARY_sysmocom-odu = "MLO" +SPL_UART_BINARY_sysmocom-odu = "u-boot-spl.bin" + + +PRINC = "13" LIC_FILES_CHKSUM = "file://COPYING;md5=1707d6db1d42237583f50183a5651ecb \ file://README;beginline=1;endline=22;md5=5ba4218ac89af7846802d0348df3fb90" @@ -11,7 +18,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=1707d6db1d42237583f50183a5651ecb \ UBOOT_MACHINE_sysmobts-v1 = "davinci_sysmobts_v1_config" UBOOT_MACHINE_sysmobts-v2 = "davinci_sysmobts_v2_config" UBOOT_MACHINE_sysmobts-2050 = "davinci_sysmobts_v2_config" -COMPATIBLE_MACHINE = "(sysmobts-v1|sysmobts-v2|sysmobts-2050)" +COMPATIBLE_MACHINE = "(sysmobts-v1|sysmobts-v2|sysmobts-2050|sysmocom-odu)" UBOOT_IMAGE = "u-boot-${MACHINE}-${PV}-${PR}" UBOOT_SYMLINK = "u-boot-${MACHINE}" @@ -25,5 +32,15 @@ do_deploy_prepend () { rm -f ${UBOOT_SYMLINK}.elf ln -sf ${UBOOT_IMAGE}.bin ${UBOOT_SYMLINK}.bin ln -sf ${UBOOT_IMAGE}.elf ${UBOOT_SYMLINK}.elf + + if [ "x${SPL_UART_BINARY}" != "x" ] + then + install ${S}/spl/${SPL_UART_BINARY} ${DEPLOYDIR}/${SPL_UART_IMAGE} + rm -f ${DEPLOYDIR}/${SPL_UART_BINARY} ${DEPLOYDIR}/${SPL_UART_SYMLINK} + ln -sf ${SPL_UART_IMAGE} ${DEPLOYDIR}/${SPL_UART_BINARY} + ln -sf ${SPL_UART_IMAGE} ${DEPLOYDIR}/${SPL_UART_SYMLINK} + fi + + # Stop the processing now return }