From: Chunrong Guo Date: Fri, 15 Jul 2016 16:28:35 +0000 (+0800) Subject: ppa: add recipe X-Git-Tag: 2.2~390 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=4c5f28949235aef5f105fc5db31d6d037d32926d;p=meta-freescale.git ppa: add recipe Signed-off-by: Otavio Salvador --- diff --git a/recipes-bsp/ppa/ppa/ppa.its b/recipes-bsp/ppa/ppa/ppa.its new file mode 100644 index 00000000..c157b6e5 --- /dev/null +++ b/recipes-bsp/ppa/ppa/ppa.its @@ -0,0 +1,23 @@ +/dts-v1/; + +/{ + description = "PPA Firmware"; +#address-cells = <1>; + images { + firmware@1 { + description = "PPA Firmware: Version 0.1"; + data = /incbin/("obj/monitor.bin"); + type = "firmware"; + arch = "arm64"; + compression = "none"; + }; + }; + + configurations { + default = "config@1"; + config@1 { + description = "Boot PPA firmware"; + firmware = "firmware@1"; + }; + }; +}; diff --git a/recipes-bsp/ppa/ppa_git.bb b/recipes-bsp/ppa/ppa_git.bb new file mode 100644 index 00000000..eae77f56 --- /dev/null +++ b/recipes-bsp/ppa/ppa_git.bb @@ -0,0 +1,47 @@ +SUMMARY = "Primary Protected Application" +LICENSE = "Freescale-EULA" +LIC_FILES_CHKSUM = "file://EULA;md5=c9ae442cf1f9dd6c13dfad64b0ffe73f" + +DEPENDS += "u-boot-mkimage-native" + +inherit deploy + +SRC_URI = "git://git.freescale.com/ppc/sdk/ls1043-ppa.git;branch=sdk-v2.0.x \ + file://ppa.its \ +" +SRCREV = "ffda4e6c2cfb535636ac8d667b0d2351d557cc66" + +S = "${WORKDIR}/git" + +EXTRA_OEMAKE = "CC64="${CC}" LD64="${LD}" OBJ64="${OBJCOPY}"" + +PPA_NAME ?= "ppa-${MACHINE}-${DATETIME}" +PPA_NAME[vardepsexclude] = "DATETIME" + +do_compile() { + if [ ! -e ${S}/ppa.its ]; then + cp ${WORKDIR}/ppa.its ${S} + fi + export ARMV8_TOOLS_DIR="${STAGING_BINDIR_TOOLCHAIN}" + export ARMV8_TOOLS_PREFIX="${TARGET_PREFIX}" + export FILE_NAMES_DIR="${S}/obj" + oe_runmake all + uboot-mkimage -f ppa.its ppa.itb +} + +do_install() { + install -d ${D}/boot/ + install ${S}/ppa.itb ${D}/boot/${PPA_NAME}.itb + ln -sfT ${PPA_NAME}.itb ${D}/boot/ppa.itb +} + +do_deploy(){ + install -d ${DEPLOYDIR} + install ${S}/ppa.itb ${DEPLOYDIR}/${PPA_NAME}.itb + ln -sfT ${PPA_NAME}.itb ${DEPLOYDIR}/ppa.itb +} +addtask deploy before do_build after do_install + +PACKAGES += "${PN}-image" +FILES_${PN}-image += "/boot" +COMPATIBLE_MACHINE = "(ls1043ardb)"