3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=c18e2a5f04e9abae5a42439de294f086
10 PKG_SOURCE_URL
:=http
://www.kernel.org
/pub
/software
/utils
/pciutils
/ \
11 ftp
://atrey.karlin.mff.cuni.cz
/pub
/linux
/pci
12 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
16 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
18 include $(TOPDIR
)/package
/rules.mk
20 $(eval
$(call PKG_template
,PCIUTILS
,pciutils
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
22 $(PKG_BUILD_DIR
)/.configured
:
25 $(PKG_BUILD_DIR
)/.built
:
26 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
27 CC
=$(TARGET_CC
) CFLAGS
="$(TARGET_CFLAGS)" IDSDIR
="/usr/share" HOST
=$(GNU_TARGET_NAME
)
31 install -d
-m0755
$(IDIR_PCIUTILS
)/usr
/sbin
32 install -d
-m0755
$(IDIR_PCIUTILS
)/usr
/share
33 $(CP
) $(PKG_BUILD_DIR
)/{lspci
,setpci
} $(IDIR_PCIUTILS
)/usr
/sbin
/
34 $(CP
) $(PKG_BUILD_DIR
)/pci.ids
$(IDIR_PCIUTILS
)/usr
/share
/
35 $(RSTRIP
) $(IDIR_PCIUTILS
)/
36 $(IPKG_BUILD
) $(IDIR_PCIUTILS
) $(PACKAGE_DIR
)