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 21:05:40 +02:00
|
|
|
$(PCIUTILS_CAT) $(DL_DIR)/$(PCIUTILS_SOURCE) | tar -C $(BUILD_DIR) -x$(TAR_VERBOSITY)f -
|
2003-01-18 22:27:22 +01:00
|
|
|
$(PCIIDS_CAT) $(DL_DIR)/$(PCIIDS_SOURCE) > $(PCIUTILS_DIR)/pci.id
|
2004-10-09 04:49:33 +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-10-08 23:11:14 +02:00
|
|
|
$(MAKE) 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)
|
|
|
|
|