Skip to contentSkip to conversation

Remove deprecated update-modules from recipes

PATCH In review Ash Charles 2 participants 11 messages Jun 13, 2014 – Jun 27, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/6 Remove deprecated update-modules from recipes

From: Scott Ellis <[email protected]>

---
 recipes-ti/dsplink/ti-dsplink.inc                        | 16 ----------------
 .../local-power-manager/ti-local-power-manager.inc       | 13 -------------
 recipes-ti/syslink/ti-syslink.inc                        | 16 ----------------
 3 files changed, 45 deletions(-)
recipes-ti/dsplink/ti-dsplink.inc +0 -16
index ce7cbf9..fa1c9dd 100644
@@ -187,22 +187,6 @@ do_install () {
 
 PACKAGES =+ "ti-dsplink-module"
 FILES_ti-dsplink-module = "/lib/modules/${KERNEL_VERSION}/kernel/drivers/dsp/dsplinkk.ko" 
-RDEPENDS_ti-dsplink-module += "update-modules"
-
-pkg_postinst_ti-dsplink-module () {
-#!/bin/sh
-if [ -n "$D" ]; then
-	exit 1
-fi
-
-depmod -a
-update-modules || true
-}
-
-pkg_postrm_ti-dsplink-module () {
-#!/bin/sh
-update-modules || true
-}
 
 PACKAGES += "ti-dsplink-examples"
 RDEPENDS_ti-dsplink-examples_append = " ti-dsplink-module"
recipes-ti/local-power-manager/ti-local-power-manager.inc +0 -13
index 9155c76..2f2b525 100644
@@ -113,19 +113,6 @@ PACKAGE_ARCH = "${MACHINE_ARCH}"
 PACKAGES += "ti-lpm-module"
 FILES_ti-lpm-module = "/lib/modules/${KERNEL_VERSION}/kernel/drivers/dsp/*lpm*ko"
 RDEPENDS_ti-lpm-module += "ti-dsplink-module"
-RDEPENDS_ti-lpm-module += "update-modules"
-
-pkg_postinst_ti-lpm-module_append () {
-        if [ -n "$D" ]; then
-                exit 1
-        fi
-        depmod -a
-        update-modules || true
-}
-
-pkg_postrm_ti-lpm-module_append () {
-        update-modules || true
-}
 
 PACKAGES += "ti-lpm-utils"
 RDEPENDS_ti-lpm-utils += "ti-lpm-module"
recipes-ti/syslink/ti-syslink.inc +0 -16
index 70289d4..af5f896 100644
@@ -216,22 +216,6 @@ do_install () {
 
 PACKAGES =+ "ti-syslink-module"
 FILES_ti-syslink-module = "/lib/modules/${KERNEL_VERSION}/kernel/drivers/dsp/syslink.ko" 
-RDEPENDS_ti-syslink-module += "update-modules"
-
-pkg_postinst_ti-syslink-module () {
-#!/bin/sh
-if [ -n "$D" ]; then
-	exit 1
-fi
-
-depmod -a
-update-modules || true
-}
-
-pkg_postrm_ti-syslink-module () {
-#!/bin/sh
-update-modules || true
-}
 
 PACKAGES =+ "ti-syslink-examples"
 RRECOMMENDS_ti-syslink-examples_append = " ti-syslink-module"
Signature · 1 line
1.8.3.2
#1 lore raw

PATCH 2/6 Set ${TOOLCHAIN_PATH} used by some recipes

---
 recipes-ti/includes/ti-paths.inc | 1 +
 1 file changed, 1 insertion(+)
recipes-ti/includes/ti-paths.inc +1 -0
index 511b5ae..5c9b716 100644
@@ -1,5 +1,6 @@
 installdir = "${datadir}/ti"
 
+export TOOLCHAIN_PATH = "${STAGING_DIR_NATIVE}${prefix_native}/bin/${TARGET_SYS}"
 # This is where do_install will put it
 export AUDIO_SOC_INSTALL_DIR_RECIPE  = "${installdir}/ti-audio-soc-example-tree"
 export BIOS_INSTALL_DIR_RECIPE       = "${installdir}/ti-dspbios-tree"
Signature · 1 line
1.8.3.2
#2 lore raw

Re: [PATCH 2/6] Set ${TOOLCHAIN_PATH} used by some recipes

This one is not correct and will break with an external toolchain...

Quoted 24 lines · Ash Charles
---
 recipes-ti/includes/ti-paths.inc | 1 +
 1 file changed, 1 insertion(+)
recipes-ti/includes/ti-paths.inc +1 -0
index 511b5ae..5c9b716 100644
@@ -1,5 +1,6 @@
 installdir = "${datadir}/ti"
 
+export TOOLCHAIN_PATH = "${STAGING_DIR_NATIVE}${prefix_native}/bin/${TARGET_SYS}"
 # This is where do_install will put it
 export AUDIO_SOC_INSTALL_DIR_RECIPE  = "${installdir}/ti-audio-soc-example-tree"
 export BIOS_INSTALL_DIR_RECIPE       = "${installdir}/ti-dspbios-tree"
Signature · 7 lines
1.8.3.2

-- 
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti
#3 lore raw

Re: [PATCH 2/6] Set ${TOOLCHAIN_PATH} used by some recipes

Good point. Where is the right place to set the toolchain path? Or perhaps the recipes shouldn't use it at all?

--Ash

Quoted 27 lines · Denys Dmytriyenko

This one is not correct and will break with an external toolchain...

Quoted 24 lines · Ash Charles
---
 recipes-ti/includes/ti-paths.inc | 1 +
 1 file changed, 1 insertion(+)
recipes-ti/includes/ti-paths.inc +1 -1
index 511b5ae..5c9b716 100644
@@ -1,5 +1,6 @@
 installdir = "${datadir}/ti"
 
+export TOOLCHAIN_PATH = "${STAGING_DIR_NATIVE}${prefix_native}/bin/${TARGET_SYS}"
 # This is where do_install will put it
 export AUDIO_SOC_INSTALL_DIR_RECIPE  = "${installdir}/ti-audio-soc-example-tree"
 export BIOS_INSTALL_DIR_RECIPE       = "${installdir}/ti-dspbios-tree"
--

1.8.3.2

--
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti

#4 lore raw

Re: [PATCH 2/6] Set ${TOOLCHAIN_PATH} used by some recipes

Well, I set it in our Arago distro based on the toolchain used, but since meta-ti is not a distro, I was thinking it should provide a safe default, but conditional. In other words, changing your patch to conditional assignment ?= should be good enough...

Signature · 1 line
Denys
Quoted 33 lines · Ash Charles

Good point. Where is the right place to set the toolchain path? Or perhaps the recipes shouldn't use it at all?

--Ash

Quoted 27 lines · Denys Dmytriyenko

This one is not correct and will break with an external toolchain...

Quoted 24 lines · Ash Charles
---
 recipes-ti/includes/ti-paths.inc | 1 +
 1 file changed, 1 insertion(+)
recipes-ti/includes/ti-paths.inc +1 -1
index 511b5ae..5c9b716 100644
@@ -1,5 +1,6 @@
 installdir = "${datadir}/ti"
 
+export TOOLCHAIN_PATH = "${STAGING_DIR_NATIVE}${prefix_native}/bin/${TARGET_SYS}"
 # This is where do_install will put it
 export AUDIO_SOC_INSTALL_DIR_RECIPE  = "${installdir}/ti-audio-soc-example-tree"
 export BIOS_INSTALL_DIR_RECIPE       = "${installdir}/ti-dspbios-tree"
--

1.8.3.2

--
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti

#5 lore raw

Re: [PATCH 2/6] Set ${TOOLCHAIN_PATH} used by some recipes

Okay---I'll test and send a V2.

--Ash

Quoted 43 lines · Denys Dmytriyenko

Well, I set it in our Arago distro based on the toolchain used, but since meta-ti is not a distro, I was thinking it should provide a safe default, but conditional. In other words, changing your patch to conditional assignment ?= should be good enough...

--
Denys

Quoted 33 lines · Ash Charles

Good point. Where is the right place to set the toolchain path? Or perhaps the recipes shouldn't use it at all?

--Ash

Quoted 27 lines · Denys Dmytriyenko

This one is not correct and will break with an external toolchain...

Quoted 24 lines · Ash Charles
---
 recipes-ti/includes/ti-paths.inc | 1 +
 1 file changed, 1 insertion(+)
recipes-ti/includes/ti-paths.inc +1 -1
index 511b5ae..5c9b716 100644
@@ -1,5 +1,6 @@
 installdir = "${datadir}/ti"
 
+export TOOLCHAIN_PATH = "${STAGING_DIR_NATIVE}${prefix_native}/bin/${TARGET_SYS}"
 # This is where do_install will put it
 export AUDIO_SOC_INSTALL_DIR_RECIPE  = "${installdir}/ti-audio-soc-example-tree"
 export BIOS_INSTALL_DIR_RECIPE       = "${installdir}/ti-dspbios-tree"
--

1.8.3.2

--
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti

#6 lore raw

PATCH v2 1/1 Conditionally set ${TOOLCHAIN_PATH} used by some recipes

---
Oops...neglected to email the mailing list first time around.

 recipes-ti/includes/ti-paths.inc | 1 +
 1 file changed, 1 insertion(+)
recipes-ti/includes/ti-paths.inc +1 -0
index 511b5ae..4e6227e 100644
@@ -1,5 +1,6 @@
 installdir = "${datadir}/ti"
 
+export TOOLCHAIN_PATH ?= "${STAGING_DIR_NATIVE}${prefix_native}/bin/${TARGET_SYS}"
 # This is where do_install will put it
 export AUDIO_SOC_INSTALL_DIR_RECIPE  = "${installdir}/ti-audio-soc-example-tree"
 export BIOS_INSTALL_DIR_RECIPE       = "${installdir}/ti-dspbios-tree"
Signature · 1 line
1.8.3.2
#7 lore raw

PATCH 3/6 gstreamer-ti: Break packages into dev and staticdev

In reply to Ash Charles

From: Scott Ellis <[email protected]>

---
 recipes-ti/gstreamer-ti/gstreamer-ti.inc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
recipes-ti/gstreamer-ti/gstreamer-ti.inc +2 -1
index cb03266..2c503f5 100644
@@ -141,7 +141,8 @@ RRECOMMENDS_${PN}_append_omapl137  += "ti-codecs-omapl137-server ti-cmem-module
 RRECOMMENDS_${PN}_append_omapl138  += "ti-codecs-omapl138-server ti-cmem-module ti-dsplink-module"
 
 FILES_${PN}     += "${libdir}/gstreamer-0.10/*.so ${sysconfdir} ${installdir} ${base_libdir}/systemd"
-FILES_${PN}-dev += "${libdir}/gstreamer-0.10/*.a ${libdir}/gstreamer-0.10/*.la"
+FILES_${PN}-dev += "${libdir}/gstreamer-0.10/*.la"
+FILES_${PN}-staticdev += "${libdir}/gstreamer-0.10/*.a"
 FILES_${PN}-dbg += "${libdir}/gstreamer-0.10/.debug"
 
 pkg_postinst_${PN} () {
Signature · 1 line
1.8.3.2
#8 lore raw

PATCH 4/6 gstreamer-ti: Revert to build in place ${B} = ${S}

In reply to Ash Charles

This recipe use autotools and breaks when built out-of-tree (${B} != ${S}).

---
 recipes-ti/gstreamer-ti/gstreamer-ti.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-ti/gstreamer-ti/gstreamer-ti.inc +1 -1
index 2c503f5..e0e65a7 100644
@@ -9,7 +9,7 @@ LICENSE = "LGPL"
 # TODO :: Check if CPPFLAGS_append is still required
 # TODO :: Remove ENCODE/DECODE combo exports - these are not used anymore (check?)
 
-inherit autotools
+inherit autotools-brokensep
 inherit update-rc.d
 require recipes-ti/includes/ti-paths.inc
 require recipes-ti/includes/ti-staging.inc
Signature · 1 line
1.8.3.2
#9 lore raw

PATCH 5/6 Use INSANE_SKIP_${PN} = "installed-vs-shipped"

In reply to Ash Charles

A number of recipes in recipes-ti install more files than are packaged causing lots of QA errors. We choose to ignore these.

---
 recipes-ti/bios/ti-biosutils_1.02.02.bb                               | 1 +
 recipes-ti/bios/ti-dspbios_5.41.11.38.bb                              | 2 ++
 recipes-ti/codec-engine/ti-codec-engine_2.26.02.11.bb                 | 2 ++
 recipes-ti/codec-engine/ti-codecs-omap3530_4.00.00.00.bb              | 2 +-
 recipes-ti/devtools/ti-cgt6x_7.2.7.bb                                 | 2 ++
 recipes-ti/devtools/ti-xdctools_3.23.00.32.bb                         | 2 ++
 recipes-ti/dmai/ti-dmai_svn.bb                                        | 1 +
 recipes-ti/dsplink/ti-dsplink_1.65.00.03.bb                           | 1 +
 recipes-ti/edma3lld/ti-edma3lld_01.11.01.04.bb                        | 1 +
 recipes-ti/framework-components/ti-framework-components_2.26.00.01.bb | 2 +-
 recipes-ti/linuxutils/ti-linuxutils_2.26.01.02.bb                     | 1 +
 recipes-ti/local-power-manager/ti-local-power-manager_1.24.02.09.bb   | 1 +
 recipes-ti/xdais/ti-xdais_6.26.01.03.bb                               | 2 +-
 13 files changed, 17 insertions(+), 3 deletions(-)
recipes-ti/bios/ti-biosutils_1.02.02.bb +1 -0
index 918f124..5b6b4f4 100644
@@ -6,3 +6,4 @@ PVsuffix = "_02"
 SRC_URI[biosutilstarball.md5sum] = "0654e9e72b0a6fc7a6575829c0cd90c9"
 SRC_URI[biosutilstarball.sha256sum] = "df486500bdc8dbe3800fc7efe4241e6fa5b1827ba7c0dc17a71b41d42ef921e1"
 
+INSANE_SKIP_${PN} = "installed-vs-shipped"
recipes-ti/bios/ti-dspbios_5.41.11.38.bb +2 -0
index 9e3b695..f60f6c0 100644
@@ -5,3 +5,5 @@ PV = "5_41_11_38"
 SRC_URI[biosbin.md5sum] = "7fab13740c25f5b34b331bcdc759536e"
 SRC_URI[biosbin.sha256sum] = "96b8e090f79420a4c11d9c0c10d182d1d3b4afb48f11ec375c97b4c91970d0a0"
 
+
+INSANE_SKIP_${PN} = "installed-vs-shipped"
recipes-ti/codec-engine/ti-codec-engine_2.26.02.11.bb +2 -0
index bcb89b7..4a27b1d 100644
@@ -8,3 +8,5 @@ SRC_URI += "file://bypass-GCArmv5T-used-is-sealed.patch"
 
 SRC_URI[cetarball.md5sum] = "4f755f77119e4da19ab5cc7ae7ccfdb4"
 SRC_URI[cetarball.sha256sum] = "17fa053719265e0901fe3c3f90c9204957c6d0f5351d6b3ba4900df58cb7300f"
+
+INSANE_SKIP_${PN} = "installed-vs-shipped"
recipes-ti/codec-engine/ti-codecs-omap3530_4.00.00.00.bb +1 -1
index ea9f389..5c87b4c 100644
@@ -205,4 +205,4 @@ PACKAGE_ARCH = "${MACHINE_ARCH}"
 PACKAGES += "ti-codecs-omap3530-server"
 FILES_ti-codecs-omap3530-server = "${installdir}/ti-codecs-server/*"
 
-
+INSANE_SKIP_${PN} = "installed-vs-shipped"
recipes-ti/devtools/ti-cgt6x_7.2.7.bb +2 -0
index aab1b96..a226600 100644
@@ -9,3 +9,5 @@ PVwithdots = "7.2.7"
 SRC_URI[cgt6xbin.md5sum] = "71a0768a541fdebd9c35d44301019d1d"
 SRC_URI[cgt6xbin.sha256sum] = "211477f0142d603975544abe3c45cc3b77a3b38038158676c60812806378738b"
 
+
+INSANE_SKIP_${PN} = "installed-vs-shipped"
recipes-ti/devtools/ti-xdctools_3.23.00.32.bb +2 -0
index b2db76c..7f00d9e 100644
@@ -9,3 +9,5 @@ SRC_URI[xdcbin.md5sum] = "263aa11795670265551d36a8c77ad27d"
 SRC_URI[xdcbin.sha256sum] = "880b4e263850f2a3c0ea7352c5b6e0a86692361e26634c3b70dddc42c71231a5"
 
 S = "${WORKDIR}/ti/xdctools_${PV}"
+
+INSANE_SKIP_${PN} = "installed-vs-shipped"
recipes-ti/dmai/ti-dmai_svn.bb +1 -0
index 3ac7a81..536bb78 100644
@@ -36,3 +36,4 @@ SRC_URI_append = " file://omap3530-r642-remove-include-videodev.diff;striplevel=
                    file://r642-fix-config-bld.diff;striplevel=3 \
                  "
 
+INSANE_SKIP_${PN} = "installed-vs-shipped"
recipes-ti/dsplink/ti-dsplink_1.65.00.03.bb +1 -0
index a124b21..1d6fb00 100644
@@ -14,3 +14,4 @@ SRC_URI += "file://dsplink-BKL-fix.patch \
 SRC_URI[dsplinktarball.md5sum] = "1bda596b631bd2f517edc70f6be4f2ca"
 SRC_URI[dsplinktarball.sha256sum] = "4b1bda89bd8465b887f5bcdf7b95018bc1d1f8968c0c44f8cbad2a9e1c52bcb7"
 
+INSANE_SKIP_${PN} = "installed-vs-shipped"
recipes-ti/edma3lld/ti-edma3lld_01.11.01.04.bb +1 -0
index 9b03e9b..549e020 100644
@@ -7,3 +7,4 @@ SRC_URI_edma3lldsite = "sdo_tii/psp"
 SRC_URI[edma3lldbin.md5sum] = "b3c41cb946e2e4b94348fc6bcbe30b16"
 SRC_URI[edma3lldbin.sha256sum] = "617db3eadff33a88e3d42818c204f379906da3b312bc120092408043e7e2aaeb"
 
+INSANE_SKIP_${PN} = "installed-vs-shipped"
recipes-ti/framework-components/ti-framework-components_2.26.00.01.bb +1 -1
index b7ea9b8..7abe793 100644
@@ -5,4 +5,4 @@ PV = "2_26_00_01"
 SRC_URI[fctarball.md5sum] = "40b51cade2f9ae6e6f6dca73c17065af"
 SRC_URI[fctarball.sha256sum] = "3f7a12a51dfe87310828a31518d7ef8f9039e59269c0ca24f74a68433c235048"
 
-
+INSANE_SKIP_${PN} = "installed-vs-shipped"
recipes-ti/linuxutils/ti-linuxutils_2.26.01.02.bb +1 -0
index 2a67e6a..75a32da 100644
@@ -8,3 +8,4 @@ PV = "2_26_01_02"
 SRC_URI[md5sum] = "70b4918bc35c1bcfef34d6ba3fbce0c8"
 SRC_URI[sha256sum] = "51266dd928f8d629cd417c869789a6c0d596612120f165619119cbaadfd66ee2"
 
+INSANE_SKIP_${PN} = "installed-vs-shipped"
recipes-ti/local-power-manager/ti-local-power-manager_1.24.02.09.bb +1 -0
index 759561f..195b177 100644
@@ -8,3 +8,4 @@ SRC_URI += "file://lpm-BKL-fix.patch"
 SRC_URI[lpmtarball.md5sum] = "3d05453df26dfc811de04839d74c2f2b" 
 SRC_URI[lpmtarball.sha256sum] = "7335959a6217df17289f81839e6c6948f31cc0797ebc5389edef7190ed3ea589"
 
+INSANE_SKIP_${PN} = "installed-vs-shipped"
recipes-ti/xdais/ti-xdais_6.26.01.03.bb +1 -1
index f8bef79..0451b2d 100644
@@ -5,4 +5,4 @@ PV = "6_26_01_03"
 SRC_URI[xdaistarball.md5sum] = "9b2bea3408254e737ec0d819a031adf6"
 SRC_URI[xdaistarball.sha256sum] = "d7bcbd8bcfe6fdfc5f402e4b125ced6c806dc30bc5296e98d5d43b0b5a237a0d"
 
-
+INSANE_SKIP_${PN} = "installed-vs-shipped"
Signature · 1 line
1.8.3.2
#10 lore raw

PATCH 6/6 ti-dmai: Allow do_prepsources to run release.sh

In reply to Ash Charles

The do_prepsources task runs after do_unpack at which point the ${S}/patches directory has been created. In the last step of do_prepsources, code should be copied over to ${S} by the release.sh script. However, this script silently fails if the target directory (${S}) is not empty---it contains the 'patches' directory. The failure manifests in the do_patch step when trying to applying patches against the source which wasn't populated by release.sh.

Here, we pre-emptively clean out the directory release.sh intends to use. The patch directory is re-created by the do_patch step.

---
 recipes-ti/dmai/ti-dmai.inc | 1 +
 1 file changed, 1 insertion(+)
recipes-ti/dmai/ti-dmai.inc +1 -0
index 58955b5..f81b4cf 100644
@@ -74,6 +74,7 @@ do_prepsources() {
     chmod a+x ${WORKDIR}/${DMAIBRANCH}/davinci_multimedia_application_interface/release.sh
     chmod a+x ${WORKDIR}/${DMAIBRANCH}/davinci_multimedia_application_interface/tdox
     sed -i 's|tdox|./tdox|g' ${WORKDIR}/${DMAIBRANCH}/davinci_multimedia_application_interface/release.sh
+    rm -rf ${WORKDIR}/${DMAIBRANCH}/davinci_multimedia_application_interface/dmai_${PV}/*
     (cd ${WORKDIR}/${DMAIBRANCH}/davinci_multimedia_application_interface; ./release.sh ${PV})
 }
 
Signature · 1 line
1.8.3.2