pciutils.mk 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. #############################################################
  2. #
  3. # PCIUTILS
  4. #
  5. #############################################################
  6. PCIUTILS_VERSION = 3.1.7
  7. PCIUTILS_SITE = ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci
  8. ifeq ($(BR2_PACKAGE_ZLIB),y)
  9. PCIUTILS_ZLIB=yes
  10. PCIUTILS_DEPENDENCIES += zlib
  11. else
  12. PCIUTILS_ZLIB=no
  13. endif
  14. PCIUTILS_DNS=no
  15. PCIUTILS_SHARED=yes
  16. define PCIUTILS_CONFIGURE_CMDS
  17. $(SED) 's/wget --no-timestamping/wget/' $(PCIUTILS_DIR)/update-pciids.sh
  18. $(SED) 's/uname -s/echo Linux/' \
  19. -e 's/uname -r/echo $(LINUX_HEADERS_VERSION)/' \
  20. $(PCIUTILS_DIR)/lib/configure
  21. $(SED) 's/^STRIP/#STRIP/' $(PCIUTILS_DIR)/Makefile
  22. endef
  23. define PCIUTILS_BUILD_CMDS
  24. $(MAKE) CC="$(TARGET_CC)" \
  25. HOST="$(KERNEL_ARCH)-linux" \
  26. OPT="$(TARGET_CFLAGS)" \
  27. LDFLAGS="$(TARGET_LDFLAGS)" \
  28. RANLIB=$(TARGET_RANLIB) \
  29. AR=$(TARGET_AR) \
  30. -C $(PCIUTILS_DIR) \
  31. SHARED=$(PCIUTILS_SHARED) \
  32. ZLIB=$(PCIUTILS_ZLIB) \
  33. DNS=$(PCIUTILS_DNS) \
  34. PREFIX=/usr
  35. endef
  36. # Ditch install-lib if SHARED is an option in the future
  37. define PCIUTILS_INSTALL_TARGET_CMDS
  38. $(MAKE) BUILDDIR=$(@D) -C $(@D) PREFIX=$(TARGET_DIR)/usr \
  39. SHARED=$(PCIUTILS_SHARED) install
  40. $(MAKE) BUILDDIR=$(@D) -C $(@D) PREFIX=$(TARGET_DIR)/usr \
  41. SHARED=$(PCIUTILS_SHARED) install-lib
  42. endef
  43. $(eval $(call GENTARGETS))