summaryrefslogtreecommitdiffstats
path: root/meta-linaro/recipes-extra/lshw
diff options
context:
space:
mode:
Diffstat (limited to 'meta-linaro/recipes-extra/lshw')
-rw-r--r--meta-linaro/recipes-extra/lshw/files/cross-compile.patch39
-rw-r--r--meta-linaro/recipes-extra/lshw/lshw_02.16.bb33
2 files changed, 72 insertions, 0 deletions
diff --git a/meta-linaro/recipes-extra/lshw/files/cross-compile.patch b/meta-linaro/recipes-extra/lshw/files/cross-compile.patch
new file mode 100644
index 0000000..221b7e5
--- /dev/null
+++ b/meta-linaro/recipes-extra/lshw/files/cross-compile.patch
@@ -0,0 +1,39 @@
1---
2 src/Makefile | 2 +-
3 src/core/Makefile | 2 +-
4 src/gui/Makefile | 4 ++--
5 3 files changed, 4 insertions(+), 4 deletions(-)
6
7--- a/src/Makefile
8+++ b/src/Makefile
9@@ -18,7 +18,7 @@ export MANDIR
10 export DATADIR
11 export SQLITE
12
13-CXX?=c++
14+CXX?=$(CROSS_COMPILE)c++
15 INCLUDES=-I./core/
16 DEFINES=-DPREFIX=\"$(PREFIX)\" -DSBINDIR=\"$(SBINDIR)\" -DMANDIR=\"$(MANDIR)\" -DDATADIR=\"$(DATADIR)\"
17 CXXFLAGS=-g -Wall -g $(INCLUDES) $(DEFINES) $(RPM_OPT_FLAGS)
18--- a/src/core/Makefile
19+++ b/src/core/Makefile
20@@ -1,6 +1,6 @@
21 PACKAGENAME?=lshw
22
23-CXX=c++
24+CXX?=$(CROSS_COMPILE)c++
25 INCLUDES=
26 DEFINES=-DPREFIX=\"$(PREFIX)\" -DSBINDIR=\"$(SBINDIR)\" -DMANDIR=\"$(MANDIR)\" -DDATADIR=\"$(DATADIR)\"
27 CXXFLAGS?=-g -Wall $(INCLUDES) $(DEFINES) $(RPM_OPT_FLAGS)
28--- a/src/gui/Makefile
29+++ b/src/gui/Makefile
30@@ -1,7 +1,7 @@
31 PACKAGENAME?=lshw
32
33-CXX?=c++
34-CC?=cc
35+CXX?=$(CROSS_COMPILE)c++
36+CC?=$(CROSS_COMPILE)cc
37 STRIP?=strip
38 OBJCOPY?=objcopy
39
diff --git a/meta-linaro/recipes-extra/lshw/lshw_02.16.bb b/meta-linaro/recipes-extra/lshw/lshw_02.16.bb
new file mode 100644
index 0000000..214d2ba
--- /dev/null
+++ b/meta-linaro/recipes-extra/lshw/lshw_02.16.bb
@@ -0,0 +1,33 @@
1DESCRIPTION = "A small tool to provide detailed information on the hardware \
2configuration of the machine. It can report exact memory configuration, \
3firmware version, mainboard configuration, CPU version and speed, cache \
4configuration, bus speed, etc. on DMI-capable or EFI systems."
5SUMMARY = "Hardware lister"
6HOMEPAGE = "http://ezix.org/project/wiki/HardwareLiSter"
7SECTION = "console/tools"
8LICENSE = "GPLv2+"
9LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
10DEPENDS = "pciutils \
11 usbutils"
12COMPATIBLE_HOST = "(i.86|x86_64|arm|aarch64).*-linux"
13
14PR="r1"
15
16SRC_URI="http://ezix.org/software/files/lshw-B.${PV}.tar.gz \
17 file://cross-compile.patch"
18
19SRC_URI[md5sum] = "67479167add605e8f001097c30e96d0d"
20SRC_URI[sha256sum] = "809882429555b93259785cc261dbff04c16c93d064db5f445a51945bc47157cb"
21
22S="${WORKDIR}/lshw-B.${PV}"
23
24do_compile() {
25 # build core only - don't ship gui
26 oe_runmake -C src core
27}
28
29do_install() {
30 oe_runmake install DESTDIR=${D}
31 # data files provided by dependencies
32 rm -rf ${D}/usr/share/lshw
33}