diff mbox series

[meta-ti,scarthgap/master,v6,3/3] recipes-graphics: port gc320 libs to work on kernel 6.12

Message ID 20250319212729.336516-4-a-christidis@ti.com
State Not Applicable
Delegated to: Ryan Eatmon
Headers show
Series Enabiling gc320 5 driver for am57 in k6.12 | expand

Commit Message

Antonios Christidis March 19, 2025, 9:27 p.m. UTC
From: Antonios Christidis <a-christidis@ti.com>

The user mode libraries needed recompiling with the scarthgap revision of gcc to
remove all the warnings about 32bit API usage during the linking stage, new
SRCREV includes this changes. Versions of the libraries remain the same.

Signed-off-by: Antonios Christidis <a-christidis@ti>
---
v6:
 - Instead of"append" on the FILES variable, use "+=", also
   specifically state which file in the ${libdir} we want to include
   in the ${PN} package. Makes it easier to read and understand why
   appending to the default FILES rules for a ${PN} is necessary, the reason
   being it's a symb link which would not typically be included.

v5:
 - Move the symb link of libGAL.so within the ${PN} package. While making
   sure the header files are part of the ${PN}-dev package.
  
 v3:
 - Removed commented lines and extra lib directory that was being created
   in do_install()
 
 v2:
 - No longer include withing the PN package /usr/include file and symb
   link to library file. This is done by not chaning the FILES/PACKAGES
   variables, thus creating a -dev package.

 .../recipes-graphics/libgal/ti-gc320-libs_5.0.11.p7.bb    | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/meta-ti-bsp/recipes-graphics/libgal/ti-gc320-libs_5.0.11.p7.bb b/meta-ti-bsp/recipes-graphics/libgal/ti-gc320-libs_5.0.11.p7.bb
index 807f421c..fc70e1ed 100644
--- a/meta-ti-bsp/recipes-graphics/libgal/ti-gc320-libs_5.0.11.p7.bb
+++ b/meta-ti-bsp/recipes-graphics/libgal/ti-gc320-libs_5.0.11.p7.bb
@@ -14,7 +14,7 @@  CLEANBROKEN = "1"
 BRANCH = "ti-${PV}"
 
 SRC_URI = "git://git.ti.com/git/graphics/ti-gc320-libs.git;protocol=https;branch=${BRANCH}"
-SRCREV = "c0afab259de59909cfe74c01f3f7fbaa147f94b5"
+SRCREV = "85c175e8425c33dda6e272aeb45afe0f69a79096"
 
 RRECOMMENDS:${PN} = "ti-gc320-driver"
 
@@ -43,4 +43,8 @@  do_install() {
     chown -R root:root ${D}
 }
 
-INSANE_SKIP:${PN} += "ldflags"
+PACKAGES = "${PN} ${PN}-dev"
+FILES:${PN} += "${libdir}/libGAL.so"
+FILES:${PN}-dev = "/usr/include"
+
+INSANE_SKIP:${PN} += "ldflags already-stripped dev-so"