diff mbox series

[meta-security] chipsec: Fix QA Warnings

Message ID 20240729132641.3066494-1-akuster808@gmail.com
State New
Headers show
Series [meta-security] chipsec: Fix QA Warnings | expand

Commit Message

akuster808 July 29, 2024, 1:26 p.m. UTC
ERROR: chipsec-1.9.1-r0 do_package_qa: QA Issue: File /usr/lib/python3.12/site-packages/chipsec/helper/linux/chipsec.ko in package chipsec contains reference to TMPDIR [buildpaths]
ERROR: chipsec-1.9.1-r0 do_package_qa: QA Issue: File /usr/lib/python3.12/site-packages/chipsec/helper/linux/.debug/chipsec.ko in package chipsec-dbg contains reference to TMPDIR [buildpaths]

Signed-off-by: Armin Kuster <akuster808@gmail.com>
---
 recipes-security/chipsec/chipsec_1.9.1.bb | 4 ++++
 1 file changed, 4 insertions(+)
diff mbox series

Patch

diff --git a/recipes-security/chipsec/chipsec_1.9.1.bb b/recipes-security/chipsec/chipsec_1.9.1.bb
index 24451f8..213b047 100644
--- a/recipes-security/chipsec/chipsec_1.9.1.bb
+++ b/recipes-security/chipsec/chipsec_1.9.1.bb
@@ -24,6 +24,9 @@  do_compile:append() {
 }
 
 do_install:append() {
+    sed -i -e 's#${S}##g' ${S}/drivers/linux/chipsec.ko
+    sed -i -e 's#${STAGING_KERNEL_BUILDDIR}##g' ${S}/drivers/linux/chipsec.ko
+    sed -i -e 's#${STAGING_KERNEL_DIR}##g' ${S}/drivers/linux/chipsec.ko
 	install -m 0644 ${S}/drivers/linux/chipsec.ko ${D}${PYTHON_SITEPACKAGES_DIR}/chipsec/helper/linux
 }
 
@@ -32,3 +35,4 @@  COMPATIBLE_HOST = "(i.86|x86_64).*-linux"
 FILES:${PN} += "${exec_prefix}"
 
 RDEPENDS:${PN} = "python3 python3-modules"
+INSANE_SKIP:${PN} = "already-stripped"