diff options
Diffstat (limited to 'recipes-bsp/ppa/ppa_git.bb')
| -rw-r--r-- | recipes-bsp/ppa/ppa_git.bb | 47 |
1 files changed, 47 insertions, 0 deletions
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)" | ||
