[meta-freescale] [meta-fsl-arm][PATCH 20/41] ppa: add recipe

ting.liu at nxp.com ting.liu at nxp.com
Fri Jun 24 03:41:15 PDT 2016


From: Chunrong Guo <B40290 at freescale.com>

---
 recipes-bsp/ppa/ppa/ppa.its | 23 ++++++++++++++++++++++
 recipes-bsp/ppa/ppa_git.bb  | 47 +++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 70 insertions(+)
 create mode 100644 recipes-bsp/ppa/ppa/ppa.its
 create mode 100644 recipes-bsp/ppa/ppa_git.bb

diff --git a/recipes-bsp/ppa/ppa/ppa.its b/recipes-bsp/ppa/ppa/ppa.its
new file mode 100644
index 0000000..c157b6e
--- /dev/null
+++ b/recipes-bsp/ppa/ppa/ppa.its
@@ -0,0 +1,23 @@
+/dts-v1/;
+
+/{
+	description = "PPA Firmware";
+#address-cells = <1>;
+	images {
+		firmware at 1 {
+			description = "PPA Firmware: Version 0.1";
+			data = /incbin/("obj/monitor.bin");
+			type = "firmware";
+			arch = "arm64";
+			compression = "none";
+		};
+	};
+
+	configurations {
+		default = "config at 1";
+		config at 1 {
+			description = "Boot PPA firmware";
+			firmware = "firmware at 1";
+		};
+	};
+};
diff --git a/recipes-bsp/ppa/ppa_git.bb b/recipes-bsp/ppa/ppa_git.bb
new file mode 100644
index 0000000..b3bb416
--- /dev/null
+++ b/recipes-bsp/ppa/ppa_git.bb
@@ -0,0 +1,47 @@
+DESCRIPTION = "PPA code"
+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)"
-- 
1.9.2



More information about the meta-freescale mailing list