1*4882a593SmuzhiyunSUMMARY = "Firmware testsuite" 2*4882a593SmuzhiyunDESCRIPTION = "The tool fwts comprises of over fifty tests that are designed to exercise and test different aspects of a machine's firmware. Many of these tests need super user access to read BIOS data and ACPI tables, so the tool requires running with super user privileges (e.g. with sudo)." 3*4882a593SmuzhiyunHOMEPAGE = "https://wiki.ubuntu.com/Kernel/Reference/fwts" 4*4882a593Smuzhiyun 5*4882a593SmuzhiyunLICENSE = "GPL-2.0-or-later" 6*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://src/main.c;beginline=1;endline=16;md5=31da590f3e9f3bd34dcdb9e4db568519" 7*4882a593Smuzhiyun 8*4882a593SmuzhiyunSRC_URI = "http://fwts.ubuntu.com/release/fwts-V${PV}.tar.gz;subdir=${BP} \ 9*4882a593Smuzhiyun file://0001-Add-correct-printf-qualifier-for-off_t.patch \ 10*4882a593Smuzhiyun file://0003-Remove-Werror-from-build.patch \ 11*4882a593Smuzhiyun file://0004-Define-__SWORD_TYPE-if-not-defined-by-libc.patch \ 12*4882a593Smuzhiyun file://0005-Undefine-PAGE_SIZE.patch \ 13*4882a593Smuzhiyun file://0006-use-intptr_t-to-fix-pointer-to-int-cast-issues.patch \ 14*4882a593Smuzhiyun " 15*4882a593SmuzhiyunSRC_URI[sha256sum] = "45045a095d9933d9ff39712372ab1f3078ca8e29c007b3f97b810cdb8c27b5c3" 16*4882a593Smuzhiyun 17*4882a593SmuzhiyunCOMPATIBLE_HOST = "(i.86|x86_64|aarch64|powerpc64).*-linux" 18*4882a593Smuzhiyun 19*4882a593SmuzhiyunDEPENDS = "libpcre glib-2.0 dtc bison-native libbsd" 20*4882a593SmuzhiyunDEPENDS:append:libc-musl = " libexecinfo" 21*4882a593Smuzhiyun 22*4882a593Smuzhiyuninherit autotools bash-completion pkgconfig 23*4882a593Smuzhiyun 24*4882a593SmuzhiyunLDFLAGS:append:libc-musl = " -lexecinfo" 25*4882a593Smuzhiyun 26*4882a593Smuzhiyun# We end up linker barfing with undefined symbols on ppc64 but not on other arches 27*4882a593Smuzhiyun# surprisingly 28*4882a593SmuzhiyunASNEEDED:powerpc64le = "" 29*4882a593Smuzhiyun 30*4882a593SmuzhiyunFILES:${PN} += "${libdir}/fwts/lib*${SOLIBS}" 31*4882a593SmuzhiyunFILES:${PN}-dev += "${libdir}/fwts/lib*${SOLIBSDEV} ${libdir}/fwts/lib*.la" 32*4882a593SmuzhiyunFILES:${PN}-staticdev += "${libdir}/fwts/lib*a" 33*4882a593Smuzhiyun 34*4882a593SmuzhiyunRDEPENDS:${PN} += "dtc" 35