Skip to contentSkip to conversation

meta-ti-extras: gdbc6x: Simplify for DRA7xx only build

PATCH In review Andrew Davis 2 participants 5 messages Oct 2, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/4 meta-ti-extras: gdbc6x: Simplify for DRA7xx only build

This recipe is already only compatible with the DRA7xx machine, so no need to set PLATFORM based on the only possibility. This then allows us to directly set the compile flags for the same. And now that the package does not change based on the machine, remove the PACKAGE_ARCH line.

---
 .../recipes-devtools/gdbc6x/gdbserver-c6x_git.bb          | 8 ++------
 .../gdbc6x/gdbserverproxy-module-drv_git.bb               | 8 ++------
 2 files changed, 4 insertions(+), 12 deletions(-)
meta-ti-extras/recipes-devtools/gdbc6x/gdbserver-c6x_git.bb +2 -6
index 6c538817..c73fb031 100644
@@ -8,10 +8,9 @@ PR = "${INC_PR}.0"
 
 S:append = "/gdbserver-c6x/src"
 
-PLATFORM = ""
-PLATFORM:dra7xx = "DRA7xx_PLATFORM"
+COMPATIBLE_MACHINE = "dra7xx"
 
-EXTRA_OEMAKE = "PLATFORM=${PLATFORM}"
+EXTRA_OEMAKE = "PLATFORM=DRA7xx_PLATFORM"
 
 export XDAIS_DIR = "${XDAIS_INSTALL_DIR}"
 export FC_DIR = "${FC_INSTALL_DIR}"
@@ -33,9 +32,6 @@ do_install() {
     cp -f ../lib/* ${D}${datadir}/ti/gdbc6x/lib
 }
 
-COMPATIBLE_MACHINE = "dra7xx"
-PACKAGE_ARCH = "${MACHINE_ARCH}"
-
 FILES:${PN}-dev += "\
     ${datadir}/ti/gdbc6x \
 "
meta-ti-extras/recipes-devtools/gdbc6x/gdbserverproxy-module-drv_git.bb +2 -6
index 2ee97269..fcca0bbe 100644
@@ -13,10 +13,9 @@ S:append = "/kernel_module/gdbproxy-mod"
 
 inherit module
 
-PLATFORM = ""
-PLATFORM:dra7xx = "DRA7xx_PLATFORM"
+COMPATIBLE_MACHINE = "dra7xx"
 
-EXTRA_OEMAKE = "PLATFORM=${PLATFORM} KVERSION=${KERNEL_VERSION} KERNEL_SRC=${STAGING_KERNEL_DIR}"
+EXTRA_OEMAKE = "PLATFORM=DRA7xx_PLATFORM KVERSION=${KERNEL_VERSION} KERNEL_SRC=${STAGING_KERNEL_DIR}"
 
 # The following is to prevent an unused configure.ac from erroneously
 # triggering the QA check for gettext.
@@ -25,9 +24,6 @@ do_configure() {
     :
 }
 
-COMPATIBLE_MACHINE = "dra7xx"
-PACKAGE_ARCH = "${MACHINE_ARCH}"
-
 include gdbc6x.inc
 
 KERNEL_MODULE_AUTOLOAD += "gdbserverproxy"
Signature · 1 line
2.39.2
#1 lore raw

PATCH 2/4 meta-ti-extras: dsptop: Simplify for DRA7xx only build

This recipe is already only compatible with the DRA7xx machine, so no need to set PLATFORM based on the only possibility. This then allows us to directly set the compile flags for the same. And now that the package does not change based on the machine, remove the PACKAGE_ARCH line.

---
 .../recipes-bsp/dsptop/debugss-module-drv_git.bb          | 8 ++------
 meta-ti-extras/recipes-bsp/dsptop/dsptop_git.bb           | 8 ++------
 meta-ti-extras/recipes-bsp/dsptop/libulm_git.bb           | 8 ++------
 3 files changed, 6 insertions(+), 18 deletions(-)
meta-ti-extras/recipes-bsp/dsptop/debugss-module-drv_git.bb +2 -6
index d8e759d9..262ffc9f 100644
@@ -8,13 +8,9 @@ S:append = "/debugss_module/debugss-mod"
 
 inherit module
 
-PLATFORM = ""
-PLATFORM:dra7xx = "DRA7xx_PLATFORM"
-
-EXTRA_OEMAKE = "'PLATFORM=${PLATFORM}' KVERSION=${KERNEL_VERSION} KERNEL_SRC=${STAGING_KERNEL_DIR}"
-
 COMPATIBLE_MACHINE = "dra7xx"
-PACKAGE_ARCH = "${MACHINE_ARCH}"
+
+EXTRA_OEMAKE = "PLATFORM=DRA7xx_PLATFORM KVERSION=${KERNEL_VERSION} KERNEL_SRC=${STAGING_KERNEL_DIR}"
 
 include dsptop.inc
 
meta-ti-extras/recipes-bsp/dsptop/dsptop_git.bb +2 -6
index 5e8c56b8..8d36e76f 100644
@@ -8,19 +8,15 @@ PR = "${INC_PR}.2"
 
 S:append = "/dsptop"
 
-DEVICE = ""
-DEVICE:dra7xx = "DRA7xx"
+COMPATIBLE_MACHINE = "dra7xx"
 
-EXTRA_OEMAKE = "release DEVICE=${DEVICE} CROSS_COMPILE=${TARGET_PREFIX} CC="${CC}""
+EXTRA_OEMAKE = "release DEVICE=DRA7xx CROSS_COMPILE=${TARGET_PREFIX} CC="${CC}""
 
 do_install() {
     oe_runmake install DESTDIR=${D}
     chown -R root:root ${D}
 }
 
-COMPATIBLE_MACHINE = "dra7xx"
-PACKAGE_ARCH = "${MACHINE_ARCH}"
-
 RDEPENDS:${PN} = "debugss-module-drv bash"
 
 include dsptop.inc
meta-ti-extras/recipes-bsp/dsptop/libulm_git.bb +2 -6
index 73c7831e..61d9c7f9 100644
@@ -11,10 +11,9 @@ PR = "${INC_PR}.0"
 
 S:append = "/dsptop/ulm"
 
-DEVICE = ""
-DEVICE:dra7xx = "DRA7xx"
+COMPATIBLE_MACHINE = "dra7xx"
 
-EXTRA_OEMAKE = "release DEVICE=${DEVICE} CROSS_COMPILE=${TARGET_PREFIX}"
+EXTRA_OEMAKE = "release DEVICE=DRA7xx CROSS_COMPILE=${TARGET_PREFIX}"
 
 do_compile() {
     oe_runmake arm XPORT_ONLY CC="${CC}"
@@ -31,9 +30,6 @@ do_install() {
     cp -f release/libtiulm.ae66 ${D}${datadir}/ti/ulm
 }
 
-COMPATIBLE_MACHINE = "dra7xx"
-PACKAGE_ARCH = "${MACHINE_ARCH}"
-
 FILES:${PN}-dev += "\
     ${datadir}/ti/ulm \
 "
Signature · 1 line
2.39.2
#2 lore raw

PATCH 3/4 meta-ti-extras: gdbc6x: Explicitly allow build for AM57x

In reply to Andrew Davis

This recipe builds and runs fine on both DRA7x and AM57x machines. The COMPATIBLE_MACHINE is set to just DRA7x, but this was okay as AM57x machines also set themselves as DRA7x family devices. The issue is then we cannot then differentiate between packages that are actually DRA7x- only and those that just use that family to mean both machine types. To fix this when we mean both are allowed use "omap-a15" as done here.

---
 meta-ti-extras/recipes-devtools/gdbc6x/gdbc6x_git.bb            | 2 +-
 meta-ti-extras/recipes-devtools/gdbc6x/gdbserver-c6x_git.bb     | 2 +-
 .../recipes-devtools/gdbc6x/gdbserverproxy-module-drv_git.bb    | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
meta-ti-extras/recipes-devtools/gdbc6x/gdbc6x_git.bb +1 -1
index b803ac5b..3e6dfbff 100644
@@ -5,7 +5,7 @@ LIC_FILES_CHKSUM = "file://debian/copyright;md5=bf0fe2872eb3dfeebb2cbe38206fe81f
 
 DEPENDS = "ncurses bison-native texinfo flex-native gettext"
 
-COMPATIBLE_MACHINE = "dra7xx"
+COMPATIBLE_MACHINE = "omap-a15"
 
 PR = "${INC_PR}.1"
 
meta-ti-extras/recipes-devtools/gdbc6x/gdbserver-c6x_git.bb +1 -1
index c73fb031..a2d8da75 100644
@@ -8,7 +8,7 @@ PR = "${INC_PR}.0"
 
 S:append = "/gdbserver-c6x/src"
 
-COMPATIBLE_MACHINE = "dra7xx"
+COMPATIBLE_MACHINE = "omap-a15"
 
 EXTRA_OEMAKE = "PLATFORM=DRA7xx_PLATFORM"
 
meta-ti-extras/recipes-devtools/gdbc6x/gdbserverproxy-module-drv_git.bb +1 -1
index fcca0bbe..1e4fd6c5 100644
@@ -13,7 +13,7 @@ S:append = "/kernel_module/gdbproxy-mod"
 
 inherit module
 
-COMPATIBLE_MACHINE = "dra7xx"
+COMPATIBLE_MACHINE = "omap-a15"
 
 EXTRA_OEMAKE = "PLATFORM=DRA7xx_PLATFORM KVERSION=${KERNEL_VERSION} KERNEL_SRC=${STAGING_KERNEL_DIR}"
 
Signature · 1 line
2.39.2
#3 lore raw

PATCH 4/4 meta-ti-extras: dsptop: Explicitly allow build for AM57x

In reply to Andrew Davis

This recipe builds and runs fine on both DRA7x and AM57x machines. The COMPATIBLE_MACHINE is set to just DRA7x, but this was okay as AM57x machines also set themselves as DRA7x family devices. The issue is then we cannot then differentiate between packages that are actually DRA7x- only and those that just use that family to mean both machine types. To fix this when we mean both are allowed use "omap-a15" as done here.

---
 meta-ti-extras/recipes-bsp/dsptop/debugss-module-drv_git.bb | 2 +-
 meta-ti-extras/recipes-bsp/dsptop/dsptop_git.bb             | 2 +-
 meta-ti-extras/recipes-bsp/dsptop/libulm_git.bb             | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
meta-ti-extras/recipes-bsp/dsptop/debugss-module-drv_git.bb +1 -1
index 262ffc9f..fdb16ec4 100644
@@ -8,7 +8,7 @@ S:append = "/debugss_module/debugss-mod"
 
 inherit module
 
-COMPATIBLE_MACHINE = "dra7xx"
+COMPATIBLE_MACHINE = "omap-a15"
 
 EXTRA_OEMAKE = "PLATFORM=DRA7xx_PLATFORM KVERSION=${KERNEL_VERSION} KERNEL_SRC=${STAGING_KERNEL_DIR}"
 
meta-ti-extras/recipes-bsp/dsptop/dsptop_git.bb +1 -1
index 8d36e76f..c1080468 100644
@@ -8,7 +8,7 @@ PR = "${INC_PR}.2"
 
 S:append = "/dsptop"
 
-COMPATIBLE_MACHINE = "dra7xx"
+COMPATIBLE_MACHINE = "omap-a15"
 
 EXTRA_OEMAKE = "release DEVICE=DRA7xx CROSS_COMPILE=${TARGET_PREFIX} CC="${CC}""
 
meta-ti-extras/recipes-bsp/dsptop/libulm_git.bb +1 -1
index 61d9c7f9..1bcaa0ea 100644
@@ -11,7 +11,7 @@ PR = "${INC_PR}.0"
 
 S:append = "/dsptop/ulm"
 
-COMPATIBLE_MACHINE = "dra7xx"
+COMPATIBLE_MACHINE = "omap-a15"
 
 EXTRA_OEMAKE = "release DEVICE=DRA7xx CROSS_COMPILE=${TARGET_PREFIX}"
 
Signature · 1 line
2.39.2
#4 lore raw
In reply to Andrew Davis

meta-ti / na / 20251002135453.1820662-1-afd

PRC Results: FAIL

=========================================================
check-yocto-patches: PASS
=========================================================
Patches
----------------------------------------
WARN - [meta-ti][scarthgap/master][PATCH 1/4] meta-ti-extras: gdbc6x: Simplify for DRA7xx only build
WARN: Commit message does not include file/recipe name: meta-ti-extras: gdbc6x: Simplify for DRA7xx only build. (COMMIT-MESSAGE-2)
patch

WARN: Commit message should not include directory path to recipe: meta-ti-extras: gdbc6x: Simplify for DRA7xx only build.
meta-ti-extras:
gdbc6x: (COMMIT-MESSAGE-3)
patch
WARN - [meta-ti][scarthgap/master][PATCH 2/4] meta-ti-extras: dsptop: Simplify for DRA7xx only build
WARN: Commit message should not include directory path to recipe: meta-ti-extras: dsptop: Simplify for DRA7xx only build.
meta-ti-extras:
dsptop: (COMMIT-MESSAGE-3)
patch
WARN - [meta-ti][scarthgap/master][PATCH 3/4] meta-ti-extras: gdbc6x: Explicitly allow build for AM57x
WARN: Commit message should not include directory path to recipe: meta-ti-extras: gdbc6x: Explicitly allow build for AM57x.
meta-ti-extras:
gdbc6x: (COMMIT-MESSAGE-3)
patch
WARN - [meta-ti][scarthgap/master][PATCH 4/4] meta-ti-extras: dsptop: Explicitly allow build for AM57x
WARN: Commit message should not include directory path to recipe: meta-ti-extras: dsptop: Explicitly allow build for AM57x.
meta-ti-extras:
dsptop: (COMMIT-MESSAGE-3)
patch

=========================================================
apply-yocto-patch: FAIL
=========================================================
scarthgap
=====================
Summary:
- Patch Series: [meta-ti][scarthgap/master][PATCH 1/4] meta-ti-extras: gdbc6x: Simplify for DRA7xx only build
- Submitter: From: Andrew Davis <[email protected]>
- Date: Date: Thu, 2 Oct 2025 08:54:50 -0500
- Num Patches: 4
- Mailing List (public inbox) Commit SHA: 3038a2795636df482f21bb9d51f2f5cc19c0dac1

Applied to:
- Repository: lcpd-prc-meta-ti
- Base Branch: scarthgap
- Commit Author: LCPD Automation Script <[email protected]>
- Commit Subject: CI/CD Auto-Merger: cicd.scarthgap.202509260858
- Commit SHA: 9a30c7b97a979fa66cb22b2c2ce1d3b7d466ee24

Patches
----------------------------------------
FAIL - [meta-ti][scarthgap/master][PATCH 1/4] meta-ti-extras: gdbc6x: Simplify for DRA7xx only build
error: patch failed: meta-ti-extras/recipes-devtools/gdbc6x/gdbserver-c6x_git.bb:8
error: meta-ti-extras/recipes-devtools/gdbc6x/gdbserver-c6x_git.bb: patch does not apply
Applying: meta-ti-extras: gdbc6x: Simplify for DRA7xx only build
Patch failed at 0001 meta-ti-extras: gdbc6x: Simplify for DRA7xx only build

master
=====================
Summary:
- Patch Series: [meta-ti][scarthgap/master][PATCH 1/4] meta-ti-extras: gdbc6x: Simplify for DRA7xx only build
- Submitter: From: Andrew Davis <[email protected]>
- Date: Date: Thu, 2 Oct 2025 08:54:50 -0500
- Num Patches: 4
- Mailing List (public inbox) Commit SHA: 3038a2795636df482f21bb9d51f2f5cc19c0dac1

Applied to:
- Repository: lcpd-prc-meta-ti
- Base Branch: master-wip
- Commit Author: MD Danish Anwar <[email protected]>
- Commit Subject: meta-ti-bsp: Add pruprp-fw for AM64xx
- Commit SHA: b22a780fead09cdb8ce7d827560831bed2cceb27

Patches
----------------------------------------
All patches applied