From: Zhenhua Luo Date: Thu, 4 Sep 2014 04:33:15 +0000 (+0800) Subject: u-boot-ls1: Add recipe for Layerscape1 support X-Git-Tag: 2.1~844 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=90791a0837b2faae713602344219bbc17bf11e2a;p=meta-freescale.git u-boot-ls1: Add recipe for Layerscape1 support * u-boot-ls1-tools-native: provides the tcl script for endian swap * u-boot-ls1: the u-boot recipes for ls1021aqds and ls1021atwr support Signed-off-by: Zhenhua Luo Signed-off-by: Otavio Salvador --- diff --git a/meta-fsl-arm/recipes-bsp/u-boot/u-boot-ls1-tools-native_2013.10.bb b/meta-fsl-arm/recipes-bsp/u-boot/u-boot-ls1-tools-native_2013.10.bb new file mode 100644 index 00000000..9d15bb6f --- /dev/null +++ b/meta-fsl-arm/recipes-bsp/u-boot/u-boot-ls1-tools-native_2013.10.bb @@ -0,0 +1,13 @@ +require u-boot-ls1.inc + +RDEPENDS += "tcl-native" + +inherit native + +do_configure[noexec] = "1" +do_compile[noexec] = "1" + +do_install () { + install -d ${D}/${bindir} + install -m 755 ${S}/byte_swap.tcl ${D}/${bindir} +} diff --git a/meta-fsl-arm/recipes-bsp/u-boot/u-boot-ls1.inc b/meta-fsl-arm/recipes-bsp/u-boot/u-boot-ls1.inc new file mode 100644 index 00000000..ca840478 --- /dev/null +++ b/meta-fsl-arm/recipes-bsp/u-boot/u-boot-ls1.inc @@ -0,0 +1,14 @@ +LICENSE = "GPLv2 & BSD-3-Clause & BSD-2-Clause & LGPL-2.0 & LGPL-2.1" +LIC_FILES_CHKSUM = " \ + file://Licenses/gpl-2.0.txt;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ + file://Licenses/bsd-2-clause.txt;md5=6a31f076f5773aabd8ff86191ad6fdd5 \ + file://Licenses/bsd-3-clause.txt;md5=4a1190eac56a9db675d58ebe86eaf50c \ + file://Licenses/lgpl-2.0.txt;md5=5f30f0716dfdd0d91eb439ebec522ec2 \ + file://Licenses/lgpl-2.1.txt;md5=4fbd65380cdd255951079008b364516c \ +" + +SRCBRANCH = "LS1-dev" +SRC_URI = "git://git.freescale.com/layerscape/ls1021a/u-boot.git;branch=${SRCBRANCH}" +SRCREV = "48bfc6985a0524bc5c388bb9a9a6a6bc4a121ec5" + +S = "${WORKDIR}/git" diff --git a/meta-fsl-arm/recipes-bsp/u-boot/u-boot-ls1_2013.10.bb b/meta-fsl-arm/recipes-bsp/u-boot/u-boot-ls1_2013.10.bb new file mode 100644 index 00000000..f50c1444 --- /dev/null +++ b/meta-fsl-arm/recipes-bsp/u-boot/u-boot-ls1_2013.10.bb @@ -0,0 +1,24 @@ +require recipes-bsp/u-boot/u-boot.inc +require u-boot-ls1.inc +inherit fsl-u-boot-localversion + +LOCALVERSION ?= "+ls1" + +DEPENDS += "u-boot-ls1-tools-native" +PROVIDES += "u-boot" + +do_compile_append () { + case "${UBOOT_MACHINE}" in + *spi*) tclsh byte_swap.tcl ${S}/u-boot.bin ${S}/u-boot.swap.bin 8 + mv ${S}/u-boot.swap.bin ${S}/u-boot.bin;; + esac +} + +PACKAGES += "${PN}-images" +FILES_${PN}-images += "/boot" + +ALLOW_EMPTY_${PN} = "1" + +PACKAGE_ARCH = "${MACHINE_ARCH}" +COMPATIBLE_MACHINE = "(ls102xa)" +