2003-01-18 22:27:22 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
2010-04-11 10:26:24 +02:00
|
|
|
# PCIUTILS
|
2003-01-18 22:27:22 +01:00
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
|
2010-04-11 10:26:24 +02:00
|
|
|
PCIUTILS_VERSION = 3.1.7
|
|
|
|
PCIUTILS_SITE = ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci
|
2008-10-31 13:14:39 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_ZLIB),y)
|
2010-04-11 10:26:24 +02:00
|
|
|
PCIUTILS_ZLIB=yes
|
2008-10-31 13:14:39 +01:00
|
|
|
else
|
2010-04-11 10:26:24 +02:00
|
|
|
PCIUTILS_ZLIB=no
|
2008-10-31 13:14:39 +01:00
|
|
|
endif
|
2010-04-11 10:26:24 +02:00
|
|
|
PCIUTILS_DNS=no
|
|
|
|
PCIUTILS_SHARED=yes
|
2008-10-31 13:14:39 +01:00
|
|
|
|
2010-04-11 10:26:24 +02:00
|
|
|
define PCIUTILS_CONFIGURE_CMDS
|
2010-05-24 08:22:26 +02:00
|
|
|
$(SED) 's/wget --no-timestamping/wget/' $(PCIUTILS_DIR)/update-pciids.sh
|
2008-10-31 13:14:39 +01:00
|
|
|
$(SED) 's/uname -s/echo Linux/' \
|
|
|
|
-e 's/uname -r/echo $(LINUX_HEADERS_VERSION)/' \
|
|
|
|
$(PCIUTILS_DIR)/lib/configure
|
2010-05-06 16:24:36 +02:00
|
|
|
$(SED) 's/^STRIP/#STRIP/' $(PCIUTILS_DIR)/Makefile
|
2010-04-11 10:26:24 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define PCIUTILS_BUILD_CMDS
|
|
|
|
$(MAKE) CC="$(TARGET_CC)" \
|
2010-05-06 16:24:36 +02:00
|
|
|
HOST="$(KERNEL_ARCH)-linux" \
|
2010-04-11 10:26:24 +02:00
|
|
|
OPT="$(TARGET_CFLAGS)" \
|
|
|
|
LDFLAGS="$(TARGET_LDFLAGS)" \
|
|
|
|
RANLIB=$(TARGET_RANLIB) \
|
|
|
|
AR=$(TARGET_AR) \
|
|
|
|
-C $(PCIUTILS_DIR) \
|
|
|
|
SHARED=$(PCIUTILS_SHARED) \
|
|
|
|
ZLIB=$(PCIUTILS_ZLIB) \
|
|
|
|
DNS=$(PCIUTILS_DNS) \
|
2010-05-24 08:22:26 +02:00
|
|
|
PREFIX=/usr
|
2010-04-11 10:26:24 +02:00
|
|
|
endef
|
|
|
|
|
2010-05-06 16:24:36 +02:00
|
|
|
# Ditch install-lib if SHARED is an option in the future
|
2010-04-11 10:26:24 +02:00
|
|
|
define PCIUTILS_INSTALL_TARGET_CMDS
|
|
|
|
$(MAKE) BUILDDIR=$(@D) -C $(@D) PREFIX=$(TARGET_DIR)/usr install
|
2010-05-06 16:24:36 +02:00
|
|
|
$(MAKE) BUILDDIR=$(@D) -C $(@D) PREFIX=$(TARGET_DIR)/usr install-lib
|
2010-04-11 10:26:24 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call GENTARGETS,package,pciutils))
|