Skip to contentSkip to conversation

Fix rogue driver compilation with lts prep

PATCH Superseded [email protected] 3 participants 6 messages Feb 8, 2024 – Feb 9, 2024 1 message not in the archive

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

cover Fix rogue driver compilation with lts prep

From: Randolph Sapp <[email protected]>

The kernel still doesn't have my device tree nodes yet, but we can go ahead and fix this stuff now. Please do not pull this into kirkstone.

Randolph Sapp (2):
ti-img-rogue-*: switch branches to new lts
ti-img-rogue-driver: drop kbuild patch again

 ...uild-Makefile.template-use-SECONDARY.patch | 35 -------------------
 .../ti-img-rogue-driver_23.3.6512818.bb       |  6 ++--
 .../ti-img-rogue-umlibs_23.3.6512818.bb       |  2 +-
 3 files changed, 3 insertions(+), 40 deletions(-)
 delete mode 100644 meta-ti-bsp/recipes-bsp/powervr-drivers/ti-img-rogue-driver/0001-build-kbuild-Makefile.template-use-SECONDARY.patch
Signature · 1 line
2.43.0
#1 lore raw

PATCH 1/2 ti-img-rogue-*: switch branches to new lts

From: Randolph Sapp <[email protected]>

Switch the branches to the new LTS names. These are still experimental, hence the isolation from kirkstone. The upstream branch is now carrying the equivalent to the kbuild patch so we're dropping it here.

---
 .../powervr-drivers/ti-img-rogue-driver_23.3.6512818.bb     | 6 ++----
 .../powervr-umlibs/ti-img-rogue-umlibs_23.3.6512818.bb      | 2 +-
 2 files changed, 3 insertions(+), 5 deletions(-)
meta-ti-bsp/recipes-bsp/powervr-drivers/ti-img-rogue-driver_23.3.6512818.bb +2 -4
index 0e894534..02ec9fe9 100644
@@ -16,15 +16,13 @@ COMPATIBLE_MACHINE = "j721e|j721s2|j784s4|am62xx|am62pxx|j722s"
 
 DEPENDS = "virtual/kernel"
 
-BRANCH = "linuxws/kirkstone/k6.1/${PV}"
+BRANCH = "linuxws/scarthgap/k6.6/${PV}"
 
 SRC_URI = "git://git.ti.com/git/graphics/ti-img-rogue-driver.git;protocol=https;branch=${BRANCH}"
 
-SRC_URI:append = " file://0001-build-kbuild-Makefile.template-use-SECONDARY.patch"
-
 S = "${WORKDIR}/git"
 
-SRCREV = "41a494accb30aa2f247e6a4e123a4954982f2a88"
+SRCREV = "2f409b4dd2540e896b54bff02219d4fc51129b81"
 
 TARGET_PRODUCT:j721e = "j721e_linux"
 TARGET_PRODUCT:j721s2 = "j721s2_linux"
meta-ti-bsp/recipes-graphics/powervr-umlibs/ti-img-rogue-umlibs_23.3.6512818.bb +1 -1
index 288eb52b..a0a9a295 100644
@@ -12,7 +12,7 @@ COMPATIBLE_MACHINE = "j721e|j721s2|j784s4|am62xx|am62pxx|j722s"
 
 PR = "r3"
 
-BRANCH = "linuxws/kirkstone/k6.1/${PV}"
+BRANCH = "linuxws/scarthgap/k6.6/${PV}"
 SRC_URI = "git://git.ti.com/git/graphics/ti-img-rogue-umlibs.git;protocol=https;branch=${BRANCH}"
 SRCREV = "0b9e64254269be2fa95c4f3e1dd925d6e4d58199"
 S = "${WORKDIR}/git/targetfs/${TARGET_PRODUCT}/${PVR_WS}/${PVR_BUILD}"
Signature · 1 line
2.43.0
#6 lore raw

PATCH 2/2 ti-img-rogue-driver: drop kbuild patch again

In reply to [email protected]

From: Randolph Sapp <[email protected]>

Drop the kbuild patch now that we have integrated an equivalent solution into the upstream branch.

---
 ...uild-Makefile.template-use-SECONDARY.patch | 35 -------------------
 1 file changed, 35 deletions(-)
 delete mode 100644 meta-ti-bsp/recipes-bsp/powervr-drivers/ti-img-rogue-driver/0001-build-kbuild-Makefile.template-use-SECONDARY.patch
meta-ti-bsp/recipes-bsp/powervr-drivers/ti-img-rogue-driver/0001-build-kbuild-Makefile.template-use-SECONDARY.patch deleted +0 -35
deleted file mode 100644
index 0989116e..00000000
@@ -1,35 +0,0 @@
-From 738dfc1b33a83e9995ed7f65ec41ebe2fc6a90ed Mon Sep 17 00:00:00 2001
-From: Ryan Eatmon <[email protected]>
-Date: Wed, 1 Nov 2023 10:04:29 -0500
-Subject: [PATCH] build: kbuild: Makefile.template: use SECONDARY
-
-For some reason on master we are seeing an error:
-
-| make[5]: *** .NOTINTERMEDIATE and .SECONDARY are mutually exclusive.  Stop.
-
-Flip this back to .SECONDARY to fix this build issue.
-
-Signed-off-by: Ryan Eatmon <[email protected]>
-
-Upstream-Status: Pending
-
----
- build/linux/kbuild/Makefile.template | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/build/linux/kbuild/Makefile.template b/build/linux/kbuild/Makefile.template
-index aa19d66..31e37fb 100644
---- a/build/linux/kbuild/Makefile.template
-+++ b/build/linux/kbuild/Makefile.template
-@@ -54,7 +54,7 @@
- 
- include $(OUT)/config_kernel.mk
- 
--.NOTINTERMEDIATE:
-+.SECONDARY:
- 
- define symlink-source-file
- @if [ ! -e $(dir $@) ]; then mkdir -p $(dir $@); fi
--- 
-2.17.1
-
Signature · 1 line
2.43.0
#2 lore raw

Re: [meta-ti][master][PATCH 1/2] ti-img-rogue-*: switch branches to new lts

In reply to [email protected]
Quoted 17 lines · On 2/8/2024 5:37 PM, [email protected] wrote:

From: Randolph Sapp <[email protected]>

Switch the branches to the new LTS names. These are still experimental, hence the isolation from kirkstone. The upstream branch is now carrying the equivalent to the kbuild patch so we're dropping it here.

---
  .../powervr-drivers/ti-img-rogue-driver_23.3.6512818.bb     | 6 ++----
  .../powervr-umlibs/ti-img-rogue-umlibs_23.3.6512818.bb      | 2 +-
  2 files changed, 3 insertions(+), 5 deletions(-)
meta-ti-bsp/recipes-bsp/powervr-drivers/ti-img-rogue-driver_23.3.6512818.bb +0 -0
index 0e894534..02ec9fe9 100644

meta-ti-bsp/recipes-bsp/powervr-drivers/ti-img-rogue-driver_23.3.6512818.bb COMPATIBLE_MACHINE = "j721e|j721s2|j784s4|am62xx|am62pxx|j722s" · line 24

Quoted 10 lines
meta-ti-bsp/recipes-bsp/powervr-drivers/ti-img-rogue-driver_23.3.6512818.bb +1 -3
@@ -16,15 +16,13 @@ COMPATIBLE_MACHINE = "j721e|j721s2|j784s4|am62xx|am62pxx|j722s"
 
  DEPENDS = "virtual/kernel"
 
-BRANCH = "linuxws/kirkstone/k6.1/${PV}"
+BRANCH = "linuxws/scarthgap/k6.6/${PV}"
 
  SRC_URI = "git://git.ti.com/git/graphics/ti-img-rogue-driver.git;protocol=https;branch=${BRANCH}"
 
-SRC_URI:append = " file://0001-build-kbuild-Makefile.template-use-SECONDARY.patch"
-

NAK. Your previous patch for bumping the version to 23.3.6512818 did not build on master because of this patch. So I went ahead and removed it and "fixed up" your patch with the removal. I like to have as atomic commits as possible.

I should have said something at that time, but I know you are busy.

Please rebase on master-wip and resubmit this patch.

Quoted 20 lines
meta-ti-bsp/recipes-bsp/powervr-drivers/ti-img-rogue-driver_23.3.6512818.bb +1 -1
  S = "${WORKDIR}/git"
 
-SRCREV = "41a494accb30aa2f247e6a4e123a4954982f2a88"
+SRCREV = "2f409b4dd2540e896b54bff02219d4fc51129b81"
 
  TARGET_PRODUCT:j721e = "j721e_linux"
  TARGET_PRODUCT:j721s2 = "j721s2_linux"
meta-ti-bsp/recipes-graphics/powervr-umlibs/ti-img-rogue-umlibs_23.3.6512818.bb +1 -1
index 288eb52b..a0a9a295 100644
@@ -12,7 +12,7 @@ COMPATIBLE_MACHINE = "j721e|j721s2|j784s4|am62xx|am62pxx|j722s"
 
  PR = "r3"
 
-BRANCH = "linuxws/kirkstone/k6.1/${PV}"
+BRANCH = "linuxws/scarthgap/k6.6/${PV}"
  SRC_URI = "git://git.ti.com/git/graphics/ti-img-rogue-umlibs.git;protocol=https;branch=${BRANCH}"
  SRCREV = "0b9e64254269be2fa95c4f3e1dd925d6e4d58199"
  S = "${WORKDIR}/git/targetfs/${TARGET_PRODUCT}/${PVR_WS}/${PVR_BUILD}"
Signature · 3 lines
Ryan Eatmon                [email protected]
-----------------------------------------
Texas Instruments, Inc.  -  LCPD  -  MGTS
#4 lore raw

Re: [meta-ti][master][PATCH 1/2] ti-img-rogue-*: switch branches to new lts

In reply to a message not in the archive
Quoted 24 lines · Ryan Eatmon via lists.yoctoproject.org
Quoted 21 lines · On 2/8/2024 5:37 PM, [email protected] wrote:

From: Randolph Sapp <[email protected]>

Switch the branches to the new LTS names. These are still experimental, hence the isolation from kirkstone. The upstream branch is now carrying the equivalent to the kbuild patch so we're dropping it here.

---
  .../powervr-drivers/ti-img-rogue-driver_23.3.6512818.bb     | 6 ++---- .../powervr-umlibs/ti-img-rogue-umlibs_23.3.6512818.bb      | 2 +-

  2 files changed, 3 insertions(+), 5 deletions(-)
meta-ti-bsp/recipes-bsp/powervr-drivers/ti-img-rogue-driver_23.3.6512818.bb +0 -1
index 0e894534..02ec9fe9 100644
--- 

a/meta-ti-bsp/recipes-bsp/powervr-drivers/ti-img-rogue-driver_23.3.6512818.bb
+++
b/meta-ti-bsp/recipes-bsp/powervr-drivers/ti-img-rogue-driver_23.3.6512818.bb

meta-ti-bsp/recipes-bsp/powervr-drivers/ti-img-rogue-driver_23.3.6512818.bb +0 -0
@@ -16,15 +16,13 @@ COMPATIBLE_MACHINE = 

"j721e|j721s2|j784s4|am62xx|am62pxx|j722s"
  DEPENDS = "virtual/kernel"

Quoted 8 lines
Quoted 6 lines
meta-ti-bsp/recipes-bsp/powervr-drivers/ti-img-rogue-driver_23.3.6512818.bb +1 -1
-BRANCH = "linuxws/kirkstone/k6.1/${PV}"
+BRANCH = "linuxws/scarthgap/k6.6/${PV}"

  SRC_URI = "git://git.ti.com/git/graphics/ti-img-rogue-driver.git;protocol=https;branch=${BRANCH}" -SRC_URI:append = "
file://0001-build-kbuild-Makefile.template-use-SECONDARY.patch"
-

NAK.  Your previous patch for bumping the version to 23.3.6512818 did not build on master because of this patch.  So I went ahead and removed it and "fixed up" your patch with the removal.  I like to have as atomic commits as possible.

Sent that without rereading it... I was referring to the 0001-build-kbuild-Makefile.template-use-SECONDARY.patch patch file... I already removed that and deleted it as part of your previous patch when I applied it to master.

Quoted 35 lines

I should have said something at that time, but I know you are busy.

Please rebase on master-wip and resubmit this patch.

Quoted 16 lines

  S = "${WORKDIR}/git"

meta-ti-bsp/recipes-bsp/powervr-drivers/ti-img-rogue-driver_23.3.6512818.bb +1 -1
-SRCREV = "41a494accb30aa2f247e6a4e123a4954982f2a88"
+SRCREV = "2f409b4dd2540e896b54bff02219d4fc51129b81"

  TARGET_PRODUCT:j721e = "j721e_linux"
  TARGET_PRODUCT:j721s2 = "j721s2_linux"

meta-ti-bsp/recipes-graphics/powervr-umlibs/ti-img-rogue-umlibs_23.3.6512818.bb +0 -1
index 288eb52b..a0a9a295 100644
--- 

a/meta-ti-bsp/recipes-graphics/powervr-umlibs/ti-img-rogue-umlibs_23.3.6512818.bb
+++
b/meta-ti-bsp/recipes-graphics/powervr-umlibs/ti-img-rogue-umlibs_23.3.6512818.bb

meta-ti-bsp/recipes-graphics/powervr-umlibs/ti-img-rogue-umlibs_23.3.6512818.bb +0 -0
@@ -12,7 +12,7 @@ COMPATIBLE_MACHINE = 

"j721e|j721s2|j784s4|am62xx|am62pxx|j722s"
  PR = "r3"

meta-ti-bsp/recipes-graphics/powervr-umlibs/ti-img-rogue-umlibs_23.3.6512818.bb +1 -1
-BRANCH = "linuxws/kirkstone/k6.1/${PV}"
+BRANCH = "linuxws/scarthgap/k6.6/${PV}"
Quoted 3 lines

  SRC_URI = "git://git.ti.com/git/graphics/ti-img-rogue-umlibs.git;protocol=https;branch=${BRANCH}" SRCREV = "0b9e64254269be2fa95c4f3e1dd925d6e4d58199"
  S = "${WORKDIR}/git/targetfs/${TARGET_PRODUCT}/${PVR_WS}/${PVR_BUILD}"

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

Signature · 3 lines
Ryan Eatmon                [email protected]
-----------------------------------------
Texas Instruments, Inc.  -  LCPD  -  MGTS
#5 lore raw

Re: [meta-ti][master][PATCH 1/2] ti-img-rogue-*: switch branches to new lts

Quoted 32 lines · Ryan Eatmon via lists.yoctoproject.org
Quoted 22 lines · Ryan Eatmon via lists.yoctoproject.org
Quoted 21 lines · On 2/8/2024 5:37 PM, [email protected] wrote:

From: Randolph Sapp <[email protected]>

Switch the branches to the new LTS names. These are still experimental, hence the isolation from kirkstone. The upstream branch is now carrying the equivalent to the kbuild patch so we're dropping it here.

---
  .../powervr-drivers/ti-img-rogue-driver_23.3.6512818.bb     | 6 ++---- .../powervr-umlibs/ti-img-rogue-umlibs_23.3.6512818.bb      | 2 +-

  2 files changed, 3 insertions(+), 5 deletions(-)
meta-ti-bsp/recipes-bsp/powervr-drivers/ti-img-rogue-driver_23.3.6512818.bb +0 -1
index 0e894534..02ec9fe9 100644
--- 

a/meta-ti-bsp/recipes-bsp/powervr-drivers/ti-img-rogue-driver_23.3.6512818.bb
+++
b/meta-ti-bsp/recipes-bsp/powervr-drivers/ti-img-rogue-driver_23.3.6512818.bb

meta-ti-bsp/recipes-bsp/powervr-drivers/ti-img-rogue-driver_23.3.6512818.bb +0 -0
@@ -16,15 +16,13 @@ COMPATIBLE_MACHINE = 

"j721e|j721s2|j784s4|am62xx|am62pxx|j722s"
  DEPENDS = "virtual/kernel"

Quoted 8 lines
Quoted 6 lines
meta-ti-bsp/recipes-bsp/powervr-drivers/ti-img-rogue-driver_23.3.6512818.bb +1 -1
-BRANCH = "linuxws/kirkstone/k6.1/${PV}"
+BRANCH = "linuxws/scarthgap/k6.6/${PV}"

  SRC_URI = "git://git.ti.com/git/graphics/ti-img-rogue-driver.git;protocol=https;branch=${BRANCH}" -SRC_URI:append = "
file://0001-build-kbuild-Makefile.template-use-SECONDARY.patch"
-

NAK.  Your previous patch for bumping the version to 23.3.6512818 did not build on master because of this patch.  So I went ahead and removed it and "fixed up" your patch with the removal.  I like to have as atomic commits as possible.

Quoted 2 lines

Sent that without rereading it...  I was referring to the 0001-build-kbuild-Makefile.template-use-SECONDARY.patch patch file...  I already removed that and deleted it as part of your previous patch when I applied it to master.

Oh, you do know that .SECONDARY thing is based on both the version of make and the version of the kernel you are building against right?

Building against 6.1 it isn't necessary but anything after 6.2 with make > 4.4 or something breaks it. Full logic for the fix here: https://git.ti.com/cgit/graphics/ti-img-rogue-driver/commit/?h=linuxws/kirkstone/k6.1/23.3.6512818&id=303425c1202a3fee194fda67b8953ca9938c6732

Inspired/required by:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=875ef1a57f32fcb91010dc9bc8bd1166956a579e

Quoted 41 lines
Quoted 17 lines

I should have said something at that time, but I know you are busy.

Please rebase on master-wip and resubmit this patch.

Quoted 11 lines

  S = "${WORKDIR}/git"

meta-ti-bsp/recipes-bsp/powervr-drivers/ti-img-rogue-driver_23.3.6512818.bb +1 -1
-SRCREV = "41a494accb30aa2f247e6a4e123a4954982f2a88"
+SRCREV = "2f409b4dd2540e896b54bff02219d4fc51129b81"

  TARGET_PRODUCT:j721e = "j721e_linux"
  TARGET_PRODUCT:j721s2 = "j721s2_linux"

meta-ti-bsp/recipes-graphics/powervr-umlibs/ti-img-rogue-umlibs_23.3.6512818.bb +0 -1
index 288eb52b..a0a9a295 100644
--- 

a/meta-ti-bsp/recipes-graphics/powervr-umlibs/ti-img-rogue-umlibs_23.3.6512818.bb
+++
b/meta-ti-bsp/recipes-graphics/powervr-umlibs/ti-img-rogue-umlibs_23.3.6512818.bb

Quoted 13 lines
Quoted 8 lines
meta-ti-bsp/recipes-graphics/powervr-umlibs/ti-img-rogue-umlibs_23.3.6512818.bb +0 -0
@@ -12,7 +12,7 @@ COMPATIBLE_MACHINE = 

"j721e|j721s2|j784s4|am62xx|am62pxx|j722s"
  PR = "r3"

meta-ti-bsp/recipes-graphics/powervr-umlibs/ti-img-rogue-umlibs_23.3.6512818.bb +1 -1
-BRANCH = "linuxws/kirkstone/k6.1/${PV}"
+BRANCH = "linuxws/scarthgap/k6.6/${PV}"

  SRC_URI = "git://git.ti.com/git/graphics/ti-img-rogue-umlibs.git;protocol=https;branch=${BRANCH}" SRCREV = "0b9e64254269be2fa95c4f3e1dd925d6e4d58199"
  S = "${WORKDIR}/git/targetfs/${TARGET_PRODUCT}/${PVR_WS}/${PVR_BUILD}"

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