blob: 858ece5a06bd62429da0132842f4cee63b8dfadb [file] [log] [blame]
Patrick Williams53961c22022-01-20 11:06:23 -06001SUMMARY = "CHIPSEC: Platform Security Assessment Framework"
2
3DESCRIPTION = "CHIPSEC is a framework for analyzing the security \
4 of PC platforms including hardware, system firmware \
5 (BIOS/UEFI), and platform components."
6
Patrick Williams03907ee2022-05-01 06:28:52 -05007LICENSE = "GPL-2.0-only"
Patrick Williams53961c22022-01-20 11:06:23 -06008LIC_FILES_CHKSUM = "file://COPYING;md5=bc2d1f9b427be5fb63f6af9da56f7c5d"
9
Andrew Geissler615f2f12022-07-15 14:00:58 -050010DEPENDS = "virtual/kernel nasm-native"
Patrick Williams53961c22022-01-20 11:06:23 -060011
Andrew Geissler615f2f12022-07-15 14:00:58 -050012SRC_URI = "git://github.com/chipsec/chipsec.git;branch=main;protocol=https"
Andrew Geissler87f5cff2022-09-30 13:13:31 -050013SRCREV = "fd1a98688978fd4b8ca77b512a72eae49c3beffa"
Patrick Williams53961c22022-01-20 11:06:23 -060014
15S = "${WORKDIR}/git"
Patrick Williams53961c22022-01-20 11:06:23 -060016
Andrew Geissler7e0e3c02022-02-25 20:34:39 +000017inherit module setuptools3
Patrick Williams53961c22022-01-20 11:06:23 -060018
Andrew Geissler615f2f12022-07-15 14:00:58 -050019EXTRA_OEMAKE = "CC='${CC}' LDFLAGS='${LDFLAGS}' CFLAGS='${CFLAGS}'"
20
Patrick Williams53961c22022-01-20 11:06:23 -060021do_compile:append() {
22 cd ${S}/drivers/linux
23 oe_runmake KSRC=${STAGING_KERNEL_BUILDDIR}
24}
25
26do_install:append() {
27 install -m 0644 ${S}/drivers/linux/chipsec.ko ${D}${PYTHON_SITEPACKAGES_DIR}/chipsec/helper/linux
28}
29
Andrew Geissler615f2f12022-07-15 14:00:58 -050030COMPATIBLE_HOST = "(i.86|x86_64).*-linux"
31
32FILES:${PN} += "${exec_prefix}"
33
34RDEPENDS:${PN} = "python3 python3-modules"