Merge pull request #2217 from blshkv/master

chipsec-1.13.8.ebuild
This commit is contained in:
github-actions[bot] 2025-01-26 21:31:25 +00:00 committed by GitHub
commit 10cb071b2b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 55 additions and 0 deletions

View file

@ -1 +1,2 @@
DIST chipsec-1.13.3.tar.gz 3486337 BLAKE2B ac55a15e6e82a926044be7c951e0388855b31825f901bd11b0b574c48c0c25943c6935ae9e15eb593db51998143345294fe2a6173016c109e7335e520d49e66f SHA512 e73c9cc5b5a357c14bf080ae0cc109921fbceeba55afa25af720c7640cdd2227cba8da25b38cd6bf6fdbccda7f5f3ddb40afb1b7da182b7bc0829fd34e1eee68
DIST chipsec-1.13.8.tar.gz 3499310 BLAKE2B e1bae8c64c4e22a6fb9767b1742769631be003121a68399d5018e34fe16f63cfc9c9d178169234bf332d4172d23eb25d68760e9e22c35abd960543c3b96aa548 SHA512 821b459f673eb02f0affafb014e24821d9f8f631e89e5e2c9efb9d6417be9af64b5895ca84073c48bb142c46babad51e8157d2ffa2713ebc9934a29275e2bc87

View file

@ -0,0 +1,54 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_EXT=1
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{11..13} )
inherit linux-mod-r1 distutils-r1 pypi
DESCRIPTION="Platform Security Assessment Framework"
HOMEPAGE="https://github.com/chipsec/chipsec"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ~arm64 ~x86"
IUSE="+chipsec-driver"
RDEPEND="app-arch/brotli[${PYTHON_USEDEP}]"
DEPEND="${RDEPEND}"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
# compile against selected (not running) target
pkg_setup() {
if use chipsec-driver; then
linux-mod-r1_pkg_setup
else
die "Could not determine proper ${PN} package"
fi
}
src_prepare(){
# https://github.com/chipsec/chipsec/issues/1755
sed -i "/data_files/d" setup.py || die
distutils-r1_src_prepare
eapply_user
}
src_compile() {
if use chipsec-driver; then
local modlist=( chipsec=misc:drivers/linux )
local modargs=( KVER="${KV_FULL}" KSRC="${KERNEL_DIR}" )
linux-mod-r1_src_compile
fi
distutils-r1_src_compile
}
src_install() {
if use chipsec-driver; then
linux-mod-r1_src_install
fi
distutils-r1_src_install
}