1################################################################################ 2# 3# pci 4# 5################################################################################ 6 7LINUX_TOOLS += pci 8 9PCI_MAKE_OPTS = $(LINUX_MAKE_FLAGS) LDFLAGS="$(TARGET_LDFLAGS)" 10 11define PCI_BUILD_CMDS 12 $(Q)if ! grep install $(LINUX_DIR)/tools/pci/Makefile >/dev/null 2>&1 ; then \ 13 echo "Your kernel version is too old and does not have install section in the pci tools." ; \ 14 echo "At least kernel 4.20 must be used." ; \ 15 exit 1 ; \ 16 fi 17 18 $(TARGET_MAKE_ENV) $(MAKE) -C $(LINUX_DIR)/tools/pci \ 19 $(PCI_MAKE_OPTS) 20endef 21 22define PCI_INSTALL_TARGET_CMDS 23 $(TARGET_MAKE_ENV) $(MAKE) -C $(LINUX_DIR)/tools/pci \ 24 $(PCI_MAKE_OPTS) \ 25 DESTDIR=$(TARGET_DIR) \ 26 install 27endef 28