mirror of
https://git.yoctoproject.org/meta-security
synced 2026-04-20 23:40:05 +00:00
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>
39 lines
1.2 KiB
BlitzBasic
39 lines
1.2 KiB
BlitzBasic
SUMMARY = "CHIPSEC: Platform Security Assessment Framework"
|
|
|
|
DESCRIPTION = "CHIPSEC is a framework for analyzing the security \
|
|
of PC platforms including hardware, system firmware \
|
|
(BIOS/UEFI), and platform components."
|
|
|
|
LICENSE = "GPL-2.0-only"
|
|
LIC_FILES_CHKSUM = "file://COPYING;md5=bc2d1f9b427be5fb63f6af9da56f7c5d"
|
|
|
|
DEPENDS = "virtual/kernel nasm-native"
|
|
|
|
SRC_URI = "git://github.com/chipsec/chipsec.git;branch=main;protocol=https"
|
|
SRCREV = "d8c2a606bf440c32196c6289a7a458f3ae3107cc"
|
|
|
|
S = "${UNPACKDIR}/git"
|
|
|
|
inherit module setuptools3
|
|
|
|
EXTRA_OEMAKE = "CC='${CC}' LDFLAGS='${LDFLAGS}' CFLAGS='${CFLAGS}'"
|
|
|
|
do_compile:append() {
|
|
cd ${S}/drivers/linux
|
|
oe_runmake KSRC=${STAGING_KERNEL_BUILDDIR}
|
|
}
|
|
|
|
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
|
|
}
|
|
|
|
COMPATIBLE_HOST = "(i.86|x86_64).*-linux"
|
|
|
|
FILES:${PN} += "${exec_prefix}"
|
|
|
|
RDEPENDS:${PN} = "python3 python3-modules"
|
|
INSANE_SKIP:${PN} = "already-stripped"
|