2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=http
://www.kernel.org
/pub
/software
/utils
/pciutils
/ \
17 ftp
://atrey.karlin.mff.cuni.cz
/pub
/linux
/pci
18 PKG_MD5SUM
:=c18e2a5f04e9abae5a42439de294f086
21 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
23 include $(INCLUDE_DIR
)/package.mk
25 define Package
/pciutils
28 TITLE
:=Linux PCI Utilities
30 This package contains various utilities for inspecting and setting of
\\\
31 devices connected to the PCI bus.
32 URL
:=http
://www.kernel.org
/pub
/software
/utils
/pciutils
/
35 define Package
/pciutils
/postinst
37 $${IPKG_INSTROOT}/usr
/sbin
/update-pciids.sh
40 define Build
/Configure
44 $(call Build
/Compile
/Default
, \
45 CFLAGS
="$(TARGET_CFLAGS)" \
47 HOST
="$(GNU_TARGET_NAME)" \
51 define Build
/InstallDev
52 $(INSTALL_DIR
) $(STAGING_DIR
)/usr
/lib
53 $(CP
) $(PKG_BUILD_DIR
)/lib
/libpci.a
$(STAGING_DIR
)/usr
/lib
54 $(INSTALL_DIR
) $(STAGING_DIR
)/usr
/include/pci
55 $(CP
) $(PKG_BUILD_DIR
)/lib
/pci.h
$(STAGING_DIR
)/usr
/include/pci
56 $(CP
) $(PKG_BUILD_DIR
)/lib
/config.h
$(STAGING_DIR
)/usr
/include/pci
57 $(CP
) $(PKG_BUILD_DIR
)/lib
/header.h
$(STAGING_DIR
)/usr
/include/pci
58 $(CP
) $(PKG_BUILD_DIR
)/lib
/types.h
$(STAGING_DIR
)/usr
/include/pci
61 define Build
/UninstallDev
63 $(STAGING_DIR
)/usr
/include/pci \
64 $(STAGING_DIR
)/usr
/lib
/libpci.a
67 define Package
/pciutils
/install
68 $(INSTALL_DIR
) $(1)/usr
/sbin
69 $(CP
) $(PKG_BUILD_DIR
)/{lspci
,setpci
,update-pciids.sh
} $(1)/usr
/sbin
/
70 $(INSTALL_DIR
) $(1)/usr
/share
71 $(CP
) $(PKG_BUILD_DIR
)/pci.ids
$(1)/usr
/share
/
74 $(eval
$(call BuildPackage
,pciutils
))