diff options
author | Liwei Song <liwei.song@windriver.com> | 2021-10-08 15:32:17 +0800 |
---|---|---|
committer | Armin Kuster <akuster808@gmail.com> | 2021-10-18 21:50:22 -0700 |
commit | 7f9a5b311e98bb3932b1c8a0647ae0b1c6aee2e8 (patch) | |
tree | c4bf3b398ce700255bbe417460e3a5d5e44992f1 /recipes-security | |
parent | 01bdc2918cfe74da7d6615711d5544b505429ddc (diff) | |
download | meta-security-7f9a5b311e98bb3932b1c8a0647ae0b1c6aee2e8.tar.gz |
recipes-security/chipsec: platform security assessment framework
Add chipsec, tools to dump and analyzing hardware, system firmware
components, like PCH register, ioport or iomem configuration space.
Signed-off-by: Liwei Song <liwei.song@windriver.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Diffstat (limited to 'recipes-security')
-rw-r--r-- | recipes-security/chipsec/chipsec_git.bb | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/recipes-security/chipsec/chipsec_git.bb b/recipes-security/chipsec/chipsec_git.bb new file mode 100644 index 0000000..3339dc1 --- /dev/null +++ b/recipes-security/chipsec/chipsec_git.bb | |||
@@ -0,0 +1,35 @@ | |||
1 | SUMMARY = "CHIPSEC: Platform Security Assessment Framework" | ||
2 | |||
3 | DESCRIPTION = "CHIPSEC is a framework for analyzing the security \ | ||
4 | of PC platforms including hardware, system firmware \ | ||
5 | (BIOS/UEFI), and platform components." | ||
6 | |||
7 | LICENSE = "GPLv2" | ||
8 | LIC_FILES_CHKSUM = "file://COPYING;md5=bc2d1f9b427be5fb63f6af9da56f7c5d" | ||
9 | |||
10 | SRC_URI = "git://github.com/chipsec/chipsec.git;branch=master \ | ||
11 | " | ||
12 | |||
13 | SRCREV = "b2a61684826dc8b9f622a844a40efea579cd7e7d" | ||
14 | |||
15 | COMPATIBLE_HOST = "(i.86|x86_64).*-linux" | ||
16 | |||
17 | S = "${WORKDIR}/git" | ||
18 | EXTRA_OEMAKE = "CC='${CC}' LDFLAGS='${LDFLAGS}' CFLAGS='${CFLAGS}'" | ||
19 | |||
20 | DEPENDS = "virtual/kernel nasm-native python3-setuptools-native" | ||
21 | RDEPENDS:${PN} += "python3 python3-modules" | ||
22 | |||
23 | inherit module distutils3 | ||
24 | |||
25 | do_compile:append() { | ||
26 | cd ${S}/drivers/linux | ||
27 | oe_runmake KSRC=${STAGING_KERNEL_BUILDDIR} | ||
28 | } | ||
29 | |||
30 | do_install:append() { | ||
31 | install -m 0644 ${S}/drivers/linux/chipsec.ko ${D}${PYTHON_SITEPACKAGES_DIR}/chipsec/helper/linux | ||
32 | } | ||
33 | |||
34 | FILES:${PN} += "${exec_prefix} \ | ||
35 | " | ||