2003-01-19 05:27:22 +08:00
|
|
|
#############################################################
|
|
|
|
#
|
2010-04-11 16:26:24 +08:00
|
|
|
# PCIUTILS
|
2003-01-19 05:27:22 +08:00
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
|
2012-06-29 08:43:00 +08:00
|
|
|
PCIUTILS_VERSION = 3.1.10
|
2010-04-11 16:26:24 +08:00
|
|
|
PCIUTILS_SITE = ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci
|
2012-06-02 14:13:56 +08:00
|
|
|
PCIUTILS_INSTALL_STAGING = YES
|
2012-11-13 09:05:54 +08:00
|
|
|
PCIUTILS_LICENSE = GPLv2+
|
|
|
|
PCIUTILS_LICENSE_FILES = COPYING
|
|
|
|
|
2008-10-31 20:14:39 +08:00
|
|
|
ifeq ($(BR2_PACKAGE_ZLIB),y)
|
2010-04-11 16:26:24 +08:00
|
|
|
PCIUTILS_ZLIB=yes
|
2010-11-16 03:23:30 +08:00
|
|
|
PCIUTILS_DEPENDENCIES += zlib
|
2008-10-31 20:14:39 +08:00
|
|
|
else
|
2010-04-11 16:26:24 +08:00
|
|
|
PCIUTILS_ZLIB=no
|
2008-10-31 20:14:39 +08:00
|
|
|
endif
|
2010-04-11 16:26:24 +08:00
|
|
|
PCIUTILS_DNS=no
|
|
|
|
PCIUTILS_SHARED=yes
|
2008-10-31 20:14:39 +08:00
|
|
|
|
2011-10-15 11:07:26 +08:00
|
|
|
# Build after busybox since it's got a lightweight lspci
|
|
|
|
ifeq ($(BR2_PACKAGE_BUSYBOX),y)
|
|
|
|
PCIUTILS_DEPENDENCIES += busybox
|
|
|
|
endif
|
|
|
|
|
2010-04-11 16:26:24 +08:00
|
|
|
define PCIUTILS_CONFIGURE_CMDS
|
2010-05-24 14:22:26 +08:00
|
|
|
$(SED) 's/wget --no-timestamping/wget/' $(PCIUTILS_DIR)/update-pciids.sh
|
2008-10-31 20:14:39 +08:00
|
|
|
$(SED) 's/uname -s/echo Linux/' \
|
|
|
|
-e 's/uname -r/echo $(LINUX_HEADERS_VERSION)/' \
|
|
|
|
$(PCIUTILS_DIR)/lib/configure
|
2010-05-06 22:24:36 +08:00
|
|
|
$(SED) 's/^STRIP/#STRIP/' $(PCIUTILS_DIR)/Makefile
|
2010-04-11 16:26:24 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
define PCIUTILS_BUILD_CMDS
|
|
|
|
$(MAKE) CC="$(TARGET_CC)" \
|
2010-05-06 22:24:36 +08:00
|
|
|
HOST="$(KERNEL_ARCH)-linux" \
|
2010-04-11 16:26:24 +08: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 14:22:26 +08:00
|
|
|
PREFIX=/usr
|
2010-04-11 16:26:24 +08:00
|
|
|
endef
|
|
|
|
|
2010-05-06 22:24:36 +08:00
|
|
|
# Ditch install-lib if SHARED is an option in the future
|
2010-04-11 16:26:24 +08:00
|
|
|
define PCIUTILS_INSTALL_TARGET_CMDS
|
2011-01-10 21:47:23 +08:00
|
|
|
$(MAKE) BUILDDIR=$(@D) -C $(@D) PREFIX=$(TARGET_DIR)/usr \
|
2012-06-12 04:42:29 +08:00
|
|
|
SHARED=$(PCIUTILS_SHARED) install install-lib
|
2010-04-11 16:26:24 +08:00
|
|
|
endef
|
|
|
|
|
2012-06-02 14:13:56 +08:00
|
|
|
define PCIUTILS_INSTALL_STAGING_CMDS
|
|
|
|
$(MAKE) BUILDDIR=$(@D) -C $(@D) PREFIX=$(STAGING_DIR)/usr \
|
2012-06-12 04:42:29 +08:00
|
|
|
SHARED=$(PCIUTILS_SHARED) install install-lib
|
2012-06-02 14:13:56 +08:00
|
|
|
endef
|
|
|
|
|
2012-07-03 06:07:32 +08:00
|
|
|
$(eval $(generic-package))
|