* Version 0.0.7 updates PA firmwares to 3.0.2.3
* New name matches image content
* Move version to filename - this is not git recipe
* Install as machine-suffixed image and symlink to short name
* Update packagegroup dependency accordingly

Signed-off-by: Denys Dmytriyenko <[email protected]>
---
 .../k2-fw-initrd_0.0.7.bb}                         | 24 ++++++++++++++--------
 .../packagegroup-arago-base-tisdk-server-extra.bb  |  4 ++--
 2 files changed, 17 insertions(+), 11 deletions(-)
 rename meta-arago-distro/recipes-bsp/{k2-initramfs/k2-initramfs_git.bb => 
k2-fw-initrd/k2-fw-initrd_0.0.7.bb} (46%)

diff --git a/meta-arago-distro/recipes-bsp/k2-initramfs/k2-initramfs_git.bb 
b/meta-arago-distro/recipes-bsp/k2-fw-initrd/k2-fw-initrd_0.0.7.bb
similarity index 46%
rename from meta-arago-distro/recipes-bsp/k2-initramfs/k2-initramfs_git.bb
rename to meta-arago-distro/recipes-bsp/k2-fw-initrd/k2-fw-initrd_0.0.7.bb
index edfe725..b9eb57f 100644
--- a/meta-arago-distro/recipes-bsp/k2-initramfs/k2-initramfs_git.bb
+++ b/meta-arago-distro/recipes-bsp/k2-fw-initrd/k2-fw-initrd_0.0.7.bb
@@ -3,35 +3,41 @@ DESCRIPTION = "Prebuilt Keystone2 initramfs with SerDes, QMSS 
and NETCP PA firmw
 LICENSE = "TI-TFL"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=c5e02be633f1499c109d1652514d85ec"
 
-PV = "0.0.6"
-PR = "r0"
-
 CLEANBROKEN = "1"
 
 COMPATIBLE_MACHINE = "keystone"
 
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
-SRC_URI = "http://arago-project.org/files/releases/k2-fw/${P}.tar.gz";
+SRC_URI = 
"http://arago-project.org/files/releases/k2-fw/k2-initramfs-${PV}.tar.gz";
 
-SRC_URI[md5sum] = "1a4052bdb659de4180c7e71271fe0451"
-SRC_URI[sha256sum] = 
"0af426ec1bdbf59f9ad4a84d6df123300f0d921feb74d4f1de701b9a0fa1ca76"
+SRC_URI[md5sum] = "27fb248cbfe08ed8344bdc4451067c8f"
+SRC_URI[sha256sum] = 
"beb19d685ee0d20281266726e4c2ba4b245af9450c1bd5155ff06d8c1656dd26"
 
 S = "${WORKDIR}"
 TARGET = "k2-fw-initrd.cpio.gz"
+TARGETM = "k2-fw-initrd-${MACHINE}.cpio.gz"
 
 do_install() {
        install -d ${D}/boot
-       install -m 0644 ${S}/${TARGET} ${D}/boot/${TARGET}
+       install -m 0644 ${S}/${TARGET} ${D}/boot/${TARGETM}
+       ln -s ${TARGETM} ${D}/boot/${TARGET}
 }
 
 FILES_${PN} = "/boot"
 
 inherit deploy
 
-do_deploy () {
+do_deploy() {
        install -d ${DEPLOYDIR}
-       install -m 0644 ${S}/${TARGET} ${DEPLOYDIR}/${TARGET}
+       install -m 0644 ${S}/${TARGET} ${DEPLOYDIR}/${TARGETM}
+       ln -s ${TARGETM} ${DEPLOYDIR}/${TARGET}
 }
 
 addtask deploy before do_build after do_compile
+
+do_image_complete() {
+       :
+}
+
+addtask image_complete after do_deploy before do_build
diff --git 
a/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-base-tisdk-server-extra.bb
 
b/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-base-tisdk-server-extra.bb
index 784c5b4..aec9e5a 100644
--- 
a/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-base-tisdk-server-extra.bb
+++ 
b/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-base-tisdk-server-extra.bb
@@ -1,7 +1,7 @@
 DESCRIPTION = "Additional packages beyond console packages shared by TI SDKs"
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = 
"file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
-PR = "r16"
+PR = "r17"
 
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
@@ -104,7 +104,7 @@ ARAGO_TI_KEYSTONE_PKGS = "\
     pktlib \
     cppi-lld \
     ipsecmgr-mod \
-    k2-initramfs \
+    k2-fw-initrd \
     parse-ip \
     "
 
-- 
2.7.4

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

Reply via email to