1*73bd93f1SPatrick WilliamsDESCRIPTION = "A small tool to provide detailed information on the hardware \
2*73bd93f1SPatrick Williamsconfiguration of the machine. It can report exact memory configuration, \
3*73bd93f1SPatrick Williamsfirmware version, mainboard configuration, CPU version and speed, cache \
4*73bd93f1SPatrick Williamsconfiguration, bus speed, etc. on DMI-capable or EFI systems."
5*73bd93f1SPatrick WilliamsSUMMARY = "Hardware lister"
6*73bd93f1SPatrick WilliamsHOMEPAGE = "http://ezix.org/project/wiki/HardwareLiSter"
7*73bd93f1SPatrick WilliamsSECTION = "console/tools"
8*73bd93f1SPatrick Williams
9*73bd93f1SPatrick WilliamsLICENSE = "GPL-2.0-or-later"
10*73bd93f1SPatrick WilliamsLIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
11*73bd93f1SPatrick Williams
12*73bd93f1SPatrick WilliamsCOMPATIBLE_HOST = "(i.86|x86_64|arm|aarch64|riscv64).*-linux"
13*73bd93f1SPatrick Williams
14*73bd93f1SPatrick WilliamsPV .= "+git"
15*73bd93f1SPatrick WilliamsSRCREV = "4c6497c8b0a67cd9fa9693e9101a7cafd3297e81"
16*73bd93f1SPatrick WilliamsSRC_URI = " \
17*73bd93f1SPatrick Williams    git://github.com/lyonel/lshw.git;protocol=https;branch=master \
18*73bd93f1SPatrick Williams    file://0001-disable-docbook2man.patch \
19*73bd93f1SPatrick Williams"
20*73bd93f1SPatrick Williams
21*73bd93f1SPatrick WilliamsS = "${WORKDIR}/git"
22*73bd93f1SPatrick Williams
23*73bd93f1SPatrick Williamsinherit pkgconfig
24*73bd93f1SPatrick Williams
25*73bd93f1SPatrick WilliamsDEPENDS = "gettext-native"
26*73bd93f1SPatrick Williams
27*73bd93f1SPatrick WilliamsPACKAGECONFIG ??= "zlib"
28*73bd93f1SPatrick WilliamsPACKAGECONFIG[sqlite] = "SQLITE=1,SQLITE=0,sqlite3"
29*73bd93f1SPatrick WilliamsPACKAGECONFIG[zlib]   = "ZLIB=1,ZLIB=0,zlib gzip-native"
30*73bd93f1SPatrick Williams
31*73bd93f1SPatrick Williams# use the PACKAGECONFIG configurations arguments
32*73bd93f1SPatrick WilliamsEXTRA_OEMAKE = "${PACKAGECONFIG_CONFARGS} RPM_OPT_FLAGS='${CFLAGS}'"
33*73bd93f1SPatrick Williams
34*73bd93f1SPatrick Williamsdo_compile() {
35*73bd93f1SPatrick Williams    # build core only - don't ship gui
36*73bd93f1SPatrick Williams    oe_runmake -C src core
37*73bd93f1SPatrick Williams}
38*73bd93f1SPatrick Williams
39*73bd93f1SPatrick Williamsdo_install() {
40*73bd93f1SPatrick Williams    oe_runmake install DESTDIR=${D}
41*73bd93f1SPatrick Williams}
42*73bd93f1SPatrick Williams
43*73bd93f1SPatrick WilliamsBBCLASSEXTEND = "native"
44