blob: d6c3ff28afe4b37bf4321967368fa87734f3b5bf [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
10SRC_URI = "git://github.com/chipsec/chipsec.git;branch=master;protocol=https \
11 "
12
13SRCREV = "b2a61684826dc8b9f622a844a40efea579cd7e7d"
14
15COMPATIBLE_HOST = "(i.86|x86_64).*-linux"
16
17S = "${WORKDIR}/git"
18EXTRA_OEMAKE = "CC='${CC}' LDFLAGS='${LDFLAGS}' CFLAGS='${CFLAGS}'"
19
20DEPENDS = "virtual/kernel nasm-native python3-setuptools-native"
21RDEPENDS:${PN} += "python3 python3-modules"
22
Andrew Geissler7e0e3c02022-02-25 20:34:39 +000023inherit module setuptools3
Patrick Williams53961c22022-01-20 11:06:23 -060024
25do_compile:append() {
26 cd ${S}/drivers/linux
27 oe_runmake KSRC=${STAGING_KERNEL_BUILDDIR}
28}
29
30do_install:append() {
31 install -m 0644 ${S}/drivers/linux/chipsec.ko ${D}${PYTHON_SITEPACKAGES_DIR}/chipsec/helper/linux
32}
33
34FILES:${PN} += "${exec_prefix} \
35"