pciutils.mk 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. else
  11. PCIUTILS_ZLIB=no
  12. endif
  13. PCIUTILS_DNS=no
  14. PCIUTILS_SHARED=yes
  15. define PCIUTILS_CONFIGURE_CMDS
  16. $(SED) 's/wget --no-timestamping/wget/' $(PCIUTILS_DIR)/update-pciids.sh
  17. $(SED) 's/uname -s/echo Linux/' \
  18. -e 's/uname -r/echo $(LINUX_HEADERS_VERSION)/' \
  19. $(PCIUTILS_DIR)/lib/configure
  20. $(SED) 's/^STRIP/#STRIP/' $(PCIUTILS_DIR)/Makefile
  21. endef
  22. define PCIUTILS_BUILD_CMDS
  23. $(MAKE) CC="$(TARGET_CC)" \
  24. HOST="$(KERNEL_ARCH)-linux" \
  25. OPT="$(TARGET_CFLAGS)" \
  26. LDFLAGS="$(TARGET_LDFLAGS)" \
  27. RANLIB=$(TARGET_RANLIB) \
  28. AR=$(TARGET_AR) \
  29. -C $(PCIUTILS_DIR) \
  30. SHARED=$(PCIUTILS_SHARED) \
  31. ZLIB=$(PCIUTILS_ZLIB) \
  32. DNS=$(PCIUTILS_DNS) \
  33. PREFIX=/usr
  34. endef
  35. # Ditch install-lib if SHARED is an option in the future
  36. define PCIUTILS_INSTALL_TARGET_CMDS
  37. $(MAKE) BUILDDIR=$(@D) -C $(@D) PREFIX=$(TARGET_DIR)/usr install
  38. $(MAKE) BUILDDIR=$(@D) -C $(@D) PREFIX=$(TARGET_DIR)/usr install-lib
  39. endef
  40. $(eval $(call GENTARGETS,package,pciutils))