2
1

pciutils.mk 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. #############################################################
  2. #
  3. # PCIUTILS
  4. #
  5. #############################################################
  6. PCIUTILS_VERSION = 3.1.9
  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. # Build after busybox since it's got a lightweight lspci
  17. ifeq ($(BR2_PACKAGE_BUSYBOX),y)
  18. PCIUTILS_DEPENDENCIES += busybox
  19. endif
  20. define PCIUTILS_CONFIGURE_CMDS
  21. $(SED) 's/wget --no-timestamping/wget/' $(PCIUTILS_DIR)/update-pciids.sh
  22. $(SED) 's/uname -s/echo Linux/' \
  23. -e 's/uname -r/echo $(LINUX_HEADERS_VERSION)/' \
  24. $(PCIUTILS_DIR)/lib/configure
  25. $(SED) 's/^STRIP/#STRIP/' $(PCIUTILS_DIR)/Makefile
  26. endef
  27. define PCIUTILS_BUILD_CMDS
  28. $(MAKE) CC="$(TARGET_CC)" \
  29. HOST="$(KERNEL_ARCH)-linux" \
  30. OPT="$(TARGET_CFLAGS)" \
  31. LDFLAGS="$(TARGET_LDFLAGS)" \
  32. RANLIB=$(TARGET_RANLIB) \
  33. AR=$(TARGET_AR) \
  34. -C $(PCIUTILS_DIR) \
  35. SHARED=$(PCIUTILS_SHARED) \
  36. ZLIB=$(PCIUTILS_ZLIB) \
  37. DNS=$(PCIUTILS_DNS) \
  38. PREFIX=/usr
  39. endef
  40. # Ditch install-lib if SHARED is an option in the future
  41. define PCIUTILS_INSTALL_TARGET_CMDS
  42. $(MAKE) BUILDDIR=$(@D) -C $(@D) PREFIX=$(TARGET_DIR)/usr \
  43. SHARED=$(PCIUTILS_SHARED) install
  44. $(MAKE) BUILDDIR=$(@D) -C $(@D) PREFIX=$(TARGET_DIR)/usr \
  45. SHARED=$(PCIUTILS_SHARED) install-lib
  46. endef
  47. $(eval $(call GENTARGETS))