diff options
author | Michael Smith <msmith@cbnco.com> | 2009-08-12 09:17:31 -0400 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2009-08-13 08:14:09 -0700 |
commit | 4c5f1096fa0c191951f929f3699c9704d0411a46 (patch) | |
tree | 4fbab89b0e66fce499bbe2b68de144e7d7e36458 /recipes | |
parent | 43100bfa8ec1d7eebb9cecb491719e3491ef8f77 (diff) |
pciutils: fix generation of pci.ids.gz
Set ZLIB=yes to prevent auto-detection by the lib/configure script,
which only looks in /usr/include.
Ship pci.ids in pci-ids-uncompressed for users of old hal versions.
Pass PREFIX to Make and use the install-lib target to save work.
Signed-off-by: Michael Smith <msmith@cbnco.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'recipes')
-rw-r--r-- | recipes/pciutils/pciutils_3.1.2.bb | 46 |
1 files changed, 18 insertions, 28 deletions
diff --git a/recipes/pciutils/pciutils_3.1.2.bb b/recipes/pciutils/pciutils_3.1.2.bb index f23e6dde3d..ae7b3a73f0 100644 --- a/recipes/pciutils/pciutils_3.1.2.bb +++ b/recipes/pciutils/pciutils_3.1.2.bb @@ -12,15 +12,10 @@ SRC_URI_append_nylon = "file://gcc-3-compatibility.patch;patch=1 " PARALLEL_MAKE = "" -PR ="r4" +PR = "r5" -EXTRA_OEMAKE += "'STRIP = '" +EXTRA_OEMAKE += "'STRIP = ' PREFIX=${prefix} LIBDIR=${libdir}" export SHARED=yes - -do_configure () { - (cd lib && ./configure ${datadir} ${PV} ${TARGET_OS} 2.4.21 ${TARGET_ARCH}) -} - export DESTDIR = "${D}" export PREFIX = "${prefix}" export SBINDIR = "${sbindir}" @@ -28,35 +23,30 @@ export SHAREDIR = "${datadir}" export MANDIR = "${mandir}" export IDSDIR = "${datadir}" -do_install () { - oe_runmake install +do_configure () { + export ZLIB=yes + (cd lib && ./configure ${datadir} ${PV} ${TARGET_OS} 2.4.21 ${TARGET_ARCH}) } -do_install_append () { - install -d ${D}/${datadir} - install -m 6440 ${WORKDIR}/${PN}-${PV}/pci.ids ${D}/${datadir} - - # The makefile does not install the development files: - # libpci.so pci.h header.h config.h types.h - install -d ${D}/${libdir} - install -d ${D}/${includedir}/pci +do_install () { + oe_runmake install install-lib + # "make install" misses the debug file for the library oe_libinstall -so -C lib libpci ${D}/${libdir} - install -m 0644 ${S}/lib/pci.h ${D}/${includedir}/pci/ - install -m 0644 ${S}/lib/header.h ${D}/${includedir}/pci/ - install -m 0644 ${S}/lib/config.h ${D}/${includedir}/pci/ - install -m 0644 ${S}/lib/types.h ${D}/${includedir}/pci/ + + # Some older versions of hal may need the uncompressed version. + # We install it in a separate package, pciutils-ids-uncompressed. + install -m 0644 ${S}/pci.ids ${D}/${datadir} } do_stage () { + oe_runmake install-lib DESTDIR=${STAGING_DIR_HOST} + + # "make install-lib" misses the symlink libpci.so.3 oe_libinstall -so -C lib libpci ${STAGING_LIBDIR} - install -m 0755 -d ${STAGING_INCDIR}/pci - install -m 0644 ${S}/lib/pci.h ${STAGING_INCDIR}/pci/ - install -m 0644 ${S}/lib/header.h ${STAGING_INCDIR}/pci/ - install -m 0644 ${S}/lib/config.h ${STAGING_INCDIR}/pci/ - install -m 0644 ${S}/lib/types.h ${STAGING_INCDIR}/pci/ } -PACKAGES =+ "pciutils-ids" -FILES_pciutils-ids="${datadir}/pci.ids" +PACKAGES =+ "${PN}-ids ${PN}-ids-uncompressed" +FILES_${PN}-ids = "${datadir}/pci.ids.gz" +FILES_${PN}-ids-uncompressed = "${datadir}/pci.ids" |