diff mbox series

[meta-arago,scarthgap/master,1/2] tisdk-uenv: Do not deploy to prebuilt images dir from recipe

Message ID 20250728183922.580652-1-afd@ti.com
State Under Review
Delegated to: Ryan Eatmon
Headers show
Series [meta-arago,scarthgap/master,1/2] tisdk-uenv: Do not deploy to prebuilt images dir from recipe | expand

Commit Message

Andrew Davis July 28, 2025, 6:39 p.m. UTC
The "prebuilt-images" dir is not part of any normal filesystem, it is
for our "TI-SDK" bundle, so this file should be placed there by that
bbclass, not as part of normal package building.

Signed-off-by: Andrew Davis <afd@ti.com>
---
 meta-arago-distro/classes/tisdk-bundle.bbclass       |  6 ++++++
 .../recipes-tisdk/tisdk-uenv/tisdk-uenv.bb           | 12 +++---------
 2 files changed, 9 insertions(+), 9 deletions(-)
diff mbox series

Patch

diff --git a/meta-arago-distro/classes/tisdk-bundle.bbclass b/meta-arago-distro/classes/tisdk-bundle.bbclass
index a554a261..fb2073ef 100644
--- a/meta-arago-distro/classes/tisdk-bundle.bbclass
+++ b/meta-arago-distro/classes/tisdk-bundle.bbclass
@@ -179,6 +179,12 @@  tisdk_image_build () {
         return 1
     fi
 
+    # Copy the U-Boot uEnv.txt file if is exists
+    if [ -e ${DEPLOY_DIR_IMAGE}/uEnv.txt ]
+    then
+        cp ${DEPLOY_DIR_IMAGE}/uEnv.txt ${prebuilt_dir}/
+    fi
+
     # Copy the Kernel image if it exists
     if [ -e ${DEPLOY_DIR_IMAGE}/zImage-${MACHINE}.bin ]
     then
diff --git a/meta-arago-distro/recipes-tisdk/tisdk-uenv/tisdk-uenv.bb b/meta-arago-distro/recipes-tisdk/tisdk-uenv/tisdk-uenv.bb
index 1fb83acd..2f17d973 100644
--- a/meta-arago-distro/recipes-tisdk/tisdk-uenv/tisdk-uenv.bb
+++ b/meta-arago-distro/recipes-tisdk/tisdk-uenv/tisdk-uenv.bb
@@ -1,4 +1,4 @@ 
-SUMMARY = "Install a uEnv.txt file into the SDK prebuilt-binaries directory"
+SUMMARY = "Add a uEnv.txt file into the deploy directory"
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
 
@@ -6,20 +6,14 @@  SRC_URI = "\
     file://uEnv.txt \
 "
 
-PR = "r3"
+PR = "r4"
 PV = "1.0"
 
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
 S = "${WORKDIR}"
 
-do_install () {
-    install -d ${D}/board-support/prebuilt-images
-
-    install -m 0644 ${S}/uEnv.txt ${D}/board-support/prebuilt-images/
-}
-
-FILES:${PN} += "board-support/*"
+inherit nopackages
 
 # deploy files for wic image
 inherit deploy