2003-01-18 22:27:22 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# pciutils
|
|
|
|
#
|
|
|
|
#############################################################
|
2004-10-08 18:00:05 +02:00
|
|
|
PCIUTILS_VER:=2.1.11
|
|
|
|
PCIUTILS_SOURCE:=pciutils-$(PCIUTILS_VER).tar.gz
|
2003-01-18 22:27:22 +01:00
|
|
|
PCIUTILS_SITE:=ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci
|
2004-10-08 18:00:05 +02:00
|
|
|
PCIUTILS_DIR:=$(BUILD_DIR)/pciutils-$(PCIUTILS_VER)
|
2003-01-18 22:27:22 +01:00
|
|
|
PCIUTILS_CAT:=zcat
|
|
|
|
|
|
|
|
# Yet more targets...
|
|
|
|
PCIIDS_SITE:=http://pciids.sourceforge.net/
|
|
|
|
PCIIDS_SOURCE:=pci.ids.bz2
|
|
|
|
PCIIDS_CAT:=bzcat
|
|
|
|
|
|
|
|
$(DL_DIR)/$(PCIUTILS_SOURCE):
|
|
|
|
$(WGET) -P $(DL_DIR) $(PCIUTILS_SITE)/$(PCIUTILS_SOURCE)
|
|
|
|
|
|
|
|
$(DL_DIR)/$(PCIIDS_SOURCE):
|
|
|
|
$(WGET) -P $(DL_DIR) $(PCIIDS_SITE)/$(PCIIDS_SOURCE)
|
|
|
|
|
|
|
|
pciutils-source: $(DL_DIR)/$(PCIUTILS_SOURCE) $(DL_DIR)/$(PCIIDS_SOURCE)
|
|
|
|
|
|
|
|
$(PCIUTILS_DIR)/.unpacked: $(DL_DIR)/$(PCIUTILS_SOURCE) $(DL_DIR)/$(PCIIDS_SOURCE)
|
2004-10-09 23:19:47 +02:00
|
|
|
$(PCIUTILS_CAT) $(DL_DIR)/$(PCIUTILS_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
2006-01-09 03:46:26 +01:00
|
|
|
$(PCIIDS_CAT) $(DL_DIR)/$(PCIIDS_SOURCE) > $(PCIUTILS_DIR)/pci.ids
|
2005-06-24 10:36:13 +02:00
|
|
|
toolchain/patch-kernel.sh $(PCIUTILS_DIR) package/pciutils pciutils\*.patch
|
2003-01-18 22:27:22 +01:00
|
|
|
touch $(PCIUTILS_DIR)/.unpacked
|
|
|
|
|
2004-10-08 18:00:05 +02:00
|
|
|
$(PCIUTILS_DIR)/.compiled: $(PCIUTILS_DIR)/.unpacked
|
2004-12-11 14:04:28 +01:00
|
|
|
$(MAKE1) CC=$(TARGET_CC) OPT="$(TARGET_CFLAGS)" -C $(PCIUTILS_DIR)
|
2004-10-08 18:00:05 +02:00
|
|
|
touch $(PCIUTILS_DIR)/.compiled
|
2003-01-18 22:27:22 +01:00
|
|
|
|
2004-10-08 18:00:05 +02:00
|
|
|
$(TARGET_DIR)/sbin/lspci: $(PCIUTILS_DIR)/.compiled
|
2003-01-18 22:27:22 +01:00
|
|
|
install -c $(PCIUTILS_DIR)/lspci $(TARGET_DIR)/sbin/lspci
|
|
|
|
|
2004-10-08 18:00:05 +02:00
|
|
|
$(TARGET_DIR)/sbin/setpci: $(PCIUTILS_DIR)/.compiled
|
2003-01-18 22:27:22 +01:00
|
|
|
install -c $(PCIUTILS_DIR)/setpci $(TARGET_DIR)/sbin/setpci
|
|
|
|
|
2004-10-08 18:00:05 +02:00
|
|
|
$(TARGET_DIR)/usr/share/misc/pci.ids: $(PCIUTILS_DIR)/.compiled
|
2003-01-18 22:27:22 +01:00
|
|
|
install -Dc $(PCIUTILS_DIR)/pci.ids $(TARGET_DIR)/usr/share/misc/pci.ids
|
|
|
|
|
|
|
|
pciutils: uclibc $(TARGET_DIR)/sbin/setpci $(TARGET_DIR)/sbin/lspci $(TARGET_DIR)/usr/share/misc/pci.ids
|
|
|
|
|
|
|
|
pciutils-clean:
|
2004-10-08 22:10:56 +02:00
|
|
|
rm $(TARGET_DIR)/sbin/lspci $(TARGET_DIR)/sbin/setpci $(TARGET_DIR)/usr/share/misc/pci.ids
|
2003-01-18 22:27:22 +01:00
|
|
|
-$(MAKE) -C $(PCIUTILS_DIR) clean
|
|
|
|
|
|
|
|
pciutils-dirclean:
|
|
|
|
rm -rf $(PCIUTILS_DIR)
|
|
|
|
|
2005-02-10 04:06:39 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# Toplevel Makefile options
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
ifeq ($(strip $(BR2_PACKAGE_PCIUTILS)),y)
|
|
|
|
TARGETS+=pciutils
|
|
|
|
endif
|