pciutils: add support for libpci
fix install dev for packages that needs LIBPCI and add me as a mantainer Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
This commit is contained in:
parent
0745dc5d6c
commit
6b2b2b0715
1 changed files with 29 additions and 6 deletions
|
@ -9,13 +9,13 @@ include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=pciutils
|
PKG_NAME:=pciutils
|
||||||
PKG_VERSION:=3.6.2
|
PKG_VERSION:=3.6.2
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
||||||
PKG_SOURCE_URL:=@KERNEL/software/utils/pciutils
|
PKG_SOURCE_URL:=@KERNEL/software/utils/pciutils
|
||||||
PKG_HASH:=db452ec986edefd88af0d222d22f6102f8030a8633fdfe846c3ae4bde9bb93f3
|
PKG_HASH:=db452ec986edefd88af0d222d22f6102f8030a8633fdfe846c3ae4bde9bb93f3
|
||||||
|
|
||||||
PKG_MAINTAINER:=Álvaro Fernández Rojas <noltari@gmail.com>
|
PKG_MAINTAINER:=Lucian Cristian <lucian.cristian@gmail.com>
|
||||||
PKG_LICENSE:=GPL-2.0
|
PKG_LICENSE:=GPL-2.0
|
||||||
PKG_LICENSE_FILES:=COPYING
|
PKG_LICENSE_FILES:=COPYING
|
||||||
|
|
||||||
|
@ -30,7 +30,7 @@ define Package/pciutils
|
||||||
CATEGORY:=Utilities
|
CATEGORY:=Utilities
|
||||||
TITLE:=Linux PCI Utilities
|
TITLE:=Linux PCI Utilities
|
||||||
URL:=http://mj.ucw.cz/pciutils.shtml
|
URL:=http://mj.ucw.cz/pciutils.shtml
|
||||||
DEPENDS:=+libkmod +zlib
|
DEPENDS:=+libkmod +libpci
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/pciutils/description
|
define Package/pciutils/description
|
||||||
|
@ -38,6 +38,15 @@ define Package/pciutils/description
|
||||||
of PCI devices
|
of PCI devices
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define Package/libpci
|
||||||
|
SECTION:=libs
|
||||||
|
CATEGORY:=Libraries
|
||||||
|
TITLE:=Linux PCI Libraries
|
||||||
|
URL:=http://mj.ucw.cz/pciutils.shtml
|
||||||
|
DEPENDS:=
|
||||||
|
endef
|
||||||
|
|
||||||
|
|
||||||
PCI_IDS_VER:=0.319
|
PCI_IDS_VER:=0.319
|
||||||
PCI_IDS_FILE:=pci.ids.$(PCI_IDS_VER)
|
PCI_IDS_FILE:=pci.ids.$(PCI_IDS_VER)
|
||||||
define Download/pci_ids
|
define Download/pci_ids
|
||||||
|
@ -54,12 +63,15 @@ define Build/Prepare
|
||||||
$(CP) $(DL_DIR)/$(PCI_IDS_FILE) $(PKG_BUILD_DIR)/pci.ids
|
$(CP) $(DL_DIR)/$(PCI_IDS_FILE) $(PKG_BUILD_DIR)/pci.ids
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
TARGET_CFLAGS += $(FPIC)
|
||||||
|
|
||||||
MAKE_FLAGS += \
|
MAKE_FLAGS += \
|
||||||
CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \
|
CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \
|
||||||
PREFIX="/usr" \
|
PREFIX="/usr" \
|
||||||
HOST="Linux" \
|
HOST="Linux" \
|
||||||
HWDB="no" \
|
HWDB="no" \
|
||||||
ZLIB="yes"
|
ZLIB="no" \
|
||||||
|
SHARED="yes"
|
||||||
|
|
||||||
ifneq ($(CONFIG_USE_GLIBC),)
|
ifneq ($(CONFIG_USE_GLIBC),)
|
||||||
TARGET_LDFLAGS += -lresolv
|
TARGET_LDFLAGS += -lresolv
|
||||||
|
@ -67,7 +79,11 @@ endif
|
||||||
|
|
||||||
define Build/InstallDev
|
define Build/InstallDev
|
||||||
$(INSTALL_DIR) $(1)/usr/lib
|
$(INSTALL_DIR) $(1)/usr/lib
|
||||||
$(CP) $(PKG_BUILD_DIR)/lib/libpci.a $(1)/usr/lib
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libpci.so.3 \
|
||||||
|
$(PKG_INSTALL_DIR)/usr/lib/libpci.so
|
||||||
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib
|
||||||
|
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
|
||||||
|
$(CP) $(PKG_BUILD_DIR)/lib/libpci.pc $(1)/usr/lib/pkgconfig
|
||||||
$(INSTALL_DIR) $(1)/usr/include/pci
|
$(INSTALL_DIR) $(1)/usr/include/pci
|
||||||
$(CP) $(foreach i,pci.h config.h header.h types.h, \
|
$(CP) $(foreach i,pci.h config.h header.h types.h, \
|
||||||
$(PKG_BUILD_DIR)/lib/$(i)) $(1)/usr/include/pci
|
$(PKG_BUILD_DIR)/lib/$(i)) $(1)/usr/include/pci
|
||||||
|
@ -77,7 +93,14 @@ define Package/pciutils/install
|
||||||
$(INSTALL_DIR) $(1)/usr/sbin
|
$(INSTALL_DIR) $(1)/usr/sbin
|
||||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/{lspci,setpci,update-pciids} $(1)/usr/sbin/
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/{lspci,setpci,update-pciids} $(1)/usr/sbin/
|
||||||
$(INSTALL_DIR) $(1)/usr/share
|
$(INSTALL_DIR) $(1)/usr/share
|
||||||
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/pci.ids.gz $(1)/usr/share/
|
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/pci.ids $(1)/usr/share/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define Package/libpci/install
|
||||||
|
$(INSTALL_DIR) $(1)/usr/lib
|
||||||
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
|
||||||
|
endef
|
||||||
|
|
||||||
|
|
||||||
|
$(eval $(call BuildPackage,libpci))
|
||||||
$(eval $(call BuildPackage,pciutils))
|
$(eval $(call BuildPackage,pciutils))
|
||||||
|
|
Loading…
Reference in a new issue