diff options
Diffstat (limited to 'meta-linaro/recipes-extra/lshw')
-rw-r--r-- | meta-linaro/recipes-extra/lshw/files/cross-compile.patch | 39 | ||||
-rw-r--r-- | meta-linaro/recipes-extra/lshw/lshw_02.16.bb | 33 |
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 @@ | |||
1 | DESCRIPTION = "A small tool to provide detailed information on the hardware \ | ||
2 | configuration of the machine. It can report exact memory configuration, \ | ||
3 | firmware version, mainboard configuration, CPU version and speed, cache \ | ||
4 | configuration, bus speed, etc. on DMI-capable or EFI systems." | ||
5 | SUMMARY = "Hardware lister" | ||
6 | HOMEPAGE = "http://ezix.org/project/wiki/HardwareLiSter" | ||
7 | SECTION = "console/tools" | ||
8 | LICENSE = "GPLv2+" | ||
9 | LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" | ||
10 | DEPENDS = "pciutils \ | ||
11 | usbutils" | ||
12 | COMPATIBLE_HOST = "(i.86|x86_64|arm|aarch64).*-linux" | ||
13 | |||
14 | PR="r1" | ||
15 | |||
16 | SRC_URI="http://ezix.org/software/files/lshw-B.${PV}.tar.gz \ | ||
17 | file://cross-compile.patch" | ||
18 | |||
19 | SRC_URI[md5sum] = "67479167add605e8f001097c30e96d0d" | ||
20 | SRC_URI[sha256sum] = "809882429555b93259785cc261dbff04c16c93d064db5f445a51945bc47157cb" | ||
21 | |||
22 | S="${WORKDIR}/lshw-B.${PV}" | ||
23 | |||
24 | do_compile() { | ||
25 | # build core only - don't ship gui | ||
26 | oe_runmake -C src core | ||
27 | } | ||
28 | |||
29 | do_install() { | ||
30 | oe_runmake install DESTDIR=${D} | ||
31 | # data files provided by dependencies | ||
32 | rm -rf ${D}/usr/share/lshw | ||
33 | } | ||