On 3/22/2022 12:59, Denys Dmytriyenko wrote:
On Tue, Mar 22, 2022 at 11:25:23AM -0500, Ryan Eatmon via 
lists.yoctoproject.org wrote:
From: Nikhil Devshatwar <[email protected]>

On am62xx-evm, for low power validation, the system boot using
an initramfs.

Package the tisdk-tiny-image.cpio file in the /boot of the
default filesystem to enable the demo.

Signed-off-by: Nikhil Devshatwar <[email protected]>
Signed-off-by: Ryan Eatmon <[email protected]>
---
  recipes-bsp/lpm-demo/files/GPL-2     | 340 +++++++++++++++++++++++++++
  recipes-bsp/lpm-demo/lpm-demo_1.0.bb |  28 +++
  2 files changed, 368 insertions(+)
  create mode 100644 recipes-bsp/lpm-demo/files/GPL-2
  create mode 100644 recipes-bsp/lpm-demo/lpm-demo_1.0.bb

diff --git a/recipes-bsp/lpm-demo/files/GPL-2 b/recipes-bsp/lpm-demo/files/GPL-2
new file mode 100644
index 00000000..d60c31a9
--- /dev/null
+++ b/recipes-bsp/lpm-demo/files/GPL-2

<snip>

diff --git a/recipes-bsp/lpm-demo/lpm-demo_1.0.bb 
b/recipes-bsp/lpm-demo/lpm-demo_1.0.bb
new file mode 100644
index 00000000..56b04d56
--- /dev/null
+++ b/recipes-bsp/lpm-demo/lpm-demo_1.0.bb
@@ -0,0 +1,28 @@
+SUMMARY = "Low power mode demo"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://GPL-2;md5=94d55d512a9ba36caa9b7df079bae19f"
+
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+COMPATIBLE_MACHINE = "am62xx-evm"
+
+FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
+S = "${WORKDIR}"
+
+# We need to have the license file from some source. In this case, there
+# is no source. Hence pointing to the license file only
+SRC_URI = "file://GPL-2"

That's an incorrect way of doing it.
https://git.openembedded.org/openembedded-core/tree/meta/recipes-core/busybox/busybox-inittab_1.35.0.bb#n3

Also, default license for OpenEmbedded metadata is MIT, not GPLv2. Any
specific reason for the change?
https://git.yoctoproject.org/meta-arago/tree/meta-arago-distro/recipes-tisdk/tisdk-readme/tisdk-readme.bb#n3

Copying Nikhil, the original author to answer those questions.



+LPM_RAMFS_IMAGE ?= "tisdk-tiny-image"
+
+do_install() {
+       install -d ${D}/boot
+       if [ -f ${DEPLOY_DIR_IMAGE}/${LPM_RAMFS_IMAGE}-${MACHINE}.cpio ]; then
+               install -m 0644 
${DEPLOY_DIR_IMAGE}/${LPM_RAMFS_IMAGE}-${MACHINE}.cpio ${D}/boot
+       else
+               bberror "Could not find LPM ramfs image 
(${LPM_RAMFS_IMAGE}-${MACHINE}.cpio) in deploy dir!"
+       fi
+}
+
+do_install[depends] = "${LPM_RAMFS_IMAGE}:do_image_complete"
+
+FILES_${PN} = "/boot"
--
2.17.1



--
Ryan Eatmon
[email protected]
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#14527): 
https://lists.yoctoproject.org/g/meta-ti/message/14527
Mute This Topic: https://lists.yoctoproject.org/mt/89956127/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-ti/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to