diff options
| author | Chunrong Guo <B40290@freescale.com> | 2016-07-16 00:28:35 +0800 | 
|---|---|---|
| committer | Otavio Salvador <otavio@ossystems.com.br> | 2016-07-22 11:30:51 -0300 | 
| commit | 4c5f28949235aef5f105fc5db31d6d037d32926d (patch) | |
| tree | 511fedbeb0ece2ea1fd72f2143a3634da9655c9d | |
| parent | 7d2c49acdf78a798c92b6d6fbe9cbf8ef324059c (diff) | |
| download | meta-freescale-4c5f28949235aef5f105fc5db31d6d037d32926d.tar.gz | |
ppa: add recipe
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
| -rw-r--r-- | recipes-bsp/ppa/ppa/ppa.its | 23 | ||||
| -rw-r--r-- | recipes-bsp/ppa/ppa_git.bb | 47 | 
2 files changed, 70 insertions, 0 deletions
| diff --git a/recipes-bsp/ppa/ppa/ppa.its b/recipes-bsp/ppa/ppa/ppa.its new file mode 100644 index 000000000..c157b6e53 --- /dev/null +++ b/recipes-bsp/ppa/ppa/ppa.its | |||
| @@ -0,0 +1,23 @@ | |||
| 1 | /dts-v1/; | ||
| 2 | |||
| 3 | /{ | ||
| 4 | description = "PPA Firmware"; | ||
| 5 | #address-cells = <1>; | ||
| 6 | images { | ||
| 7 | firmware@1 { | ||
| 8 | description = "PPA Firmware: Version 0.1"; | ||
| 9 | data = /incbin/("obj/monitor.bin"); | ||
| 10 | type = "firmware"; | ||
| 11 | arch = "arm64"; | ||
| 12 | compression = "none"; | ||
| 13 | }; | ||
| 14 | }; | ||
| 15 | |||
| 16 | configurations { | ||
| 17 | default = "config@1"; | ||
| 18 | config@1 { | ||
| 19 | description = "Boot PPA firmware"; | ||
| 20 | firmware = "firmware@1"; | ||
| 21 | }; | ||
| 22 | }; | ||
| 23 | }; | ||
| diff --git a/recipes-bsp/ppa/ppa_git.bb b/recipes-bsp/ppa/ppa_git.bb new file mode 100644 index 000000000..eae77f56e --- /dev/null +++ b/recipes-bsp/ppa/ppa_git.bb | |||
| @@ -0,0 +1,47 @@ | |||
| 1 | SUMMARY = "Primary Protected Application" | ||
| 2 | LICENSE = "Freescale-EULA" | ||
| 3 | LIC_FILES_CHKSUM = "file://EULA;md5=c9ae442cf1f9dd6c13dfad64b0ffe73f" | ||
| 4 | |||
| 5 | DEPENDS += "u-boot-mkimage-native" | ||
| 6 | |||
| 7 | inherit deploy | ||
| 8 | |||
| 9 | SRC_URI = "git://git.freescale.com/ppc/sdk/ls1043-ppa.git;branch=sdk-v2.0.x \ | ||
| 10 | file://ppa.its \ | ||
| 11 | " | ||
| 12 | SRCREV = "ffda4e6c2cfb535636ac8d667b0d2351d557cc66" | ||
| 13 | |||
| 14 | S = "${WORKDIR}/git" | ||
| 15 | |||
| 16 | EXTRA_OEMAKE = "CC64="${CC}" LD64="${LD}" OBJ64="${OBJCOPY}"" | ||
| 17 | |||
| 18 | PPA_NAME ?= "ppa-${MACHINE}-${DATETIME}" | ||
| 19 | PPA_NAME[vardepsexclude] = "DATETIME" | ||
| 20 | |||
| 21 | do_compile() { | ||
| 22 | if [ ! -e ${S}/ppa.its ]; then | ||
| 23 | cp ${WORKDIR}/ppa.its ${S} | ||
| 24 | fi | ||
| 25 | export ARMV8_TOOLS_DIR="${STAGING_BINDIR_TOOLCHAIN}" | ||
| 26 | export ARMV8_TOOLS_PREFIX="${TARGET_PREFIX}" | ||
| 27 | export FILE_NAMES_DIR="${S}/obj" | ||
| 28 | oe_runmake all | ||
| 29 | uboot-mkimage -f ppa.its ppa.itb | ||
| 30 | } | ||
| 31 | |||
| 32 | do_install() { | ||
| 33 | install -d ${D}/boot/ | ||
| 34 | install ${S}/ppa.itb ${D}/boot/${PPA_NAME}.itb | ||
| 35 | ln -sfT ${PPA_NAME}.itb ${D}/boot/ppa.itb | ||
| 36 | } | ||
| 37 | |||
| 38 | do_deploy(){ | ||
| 39 | install -d ${DEPLOYDIR} | ||
| 40 | install ${S}/ppa.itb ${DEPLOYDIR}/${PPA_NAME}.itb | ||
| 41 | ln -sfT ${PPA_NAME}.itb ${DEPLOYDIR}/ppa.itb | ||
| 42 | } | ||
| 43 | addtask deploy before do_build after do_install | ||
| 44 | |||
| 45 | PACKAGES += "${PN}-image" | ||
| 46 | FILES_${PN}-image += "/boot" | ||
| 47 | COMPATIBLE_MACHINE = "(ls1043ardb)" | ||
