linuxOS_D21X/package/third-party/linux-tools/linux-tool-pci.mk.in
2024-11-29 16:13:46 +08:00

31 lines
810 B
Makefile

################################################################################
#
# pci
#
################################################################################
LINUX_TOOLS += pci
PCI_MAKE_OPTS = $(LINUX_MAKE_FLAGS)
define PCI_BUILD_CMDS
$(Q)if ! grep install $(LINUX_SRCDIR)/tools/pci/Makefile >/dev/null 2>&1 ; then \
echo "Your kernel version is too old and does not have install section in the pci tools." ; \
echo "At least kernel 4.20 must be used." ; \
exit 1 ; \
fi
$(Q)mkdir -p $(@D)/tools/
$(Q)$(TARGET_MAKE_ENV) $(MAKE) -C $(LINUX_SRCDIR)/tools/ \
O=$(@D)/tools/ \
$(PCI_MAKE_OPTS) pci
endef
define PCI_INSTALL_TARGET_CMDS
$(Q)$(TARGET_MAKE_ENV) $(MAKE) -C $(LINUX_SRCDIR)/tools/ \
O=$(@D)/tools/ \
$(PCI_MAKE_OPTS) \
DESTDIR=$(TARGET_DIR) \
pci_install
endef