summaryrefslogtreecommitdiffstats
path: root/recipes-bsp/ppa/ppa_git.bb
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-bsp/ppa/ppa_git.bb')
-rw-r--r--recipes-bsp/ppa/ppa_git.bb47
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 @@
1SUMMARY = "Primary Protected Application"
2LICENSE = "Freescale-EULA"
3LIC_FILES_CHKSUM = "file://EULA;md5=c9ae442cf1f9dd6c13dfad64b0ffe73f"
4
5DEPENDS += "u-boot-mkimage-native"
6
7inherit deploy
8
9SRC_URI = "git://git.freescale.com/ppc/sdk/ls1043-ppa.git;branch=sdk-v2.0.x \
10 file://ppa.its \
11"
12SRCREV = "ffda4e6c2cfb535636ac8d667b0d2351d557cc66"
13
14S = "${WORKDIR}/git"
15
16EXTRA_OEMAKE = "CC64="${CC}" LD64="${LD}" OBJ64="${OBJCOPY}""
17
18PPA_NAME ?= "ppa-${MACHINE}-${DATETIME}"
19PPA_NAME[vardepsexclude] = "DATETIME"
20
21do_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
32do_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
38do_deploy(){
39 install -d ${DEPLOYDIR}
40 install ${S}/ppa.itb ${DEPLOYDIR}/${PPA_NAME}.itb
41 ln -sfT ${PPA_NAME}.itb ${DEPLOYDIR}/ppa.itb
42}
43addtask deploy before do_build after do_install
44
45PACKAGES += "${PN}-image"
46FILES_${PN}-image += "/boot"
47COMPATIBLE_MACHINE = "(ls1043ardb)"