1# SPDX-License-Identifier: GPL-2.0 2# Makefile for the Linux device tree 3 4obj-$(CONFIG_EISA) += devlist.h eisa-bus.o 5obj-${CONFIG_EISA_PCI_EISA} += pci_eisa.o 6 7# virtual_root.o should be the last EISA root device to initialize, 8# so leave it at the end of the list. 9obj-${CONFIG_EISA_VIRTUAL_ROOT} += virtual_root.o 10 11 12$(obj)/eisa-bus.o: $(obj)/devlist.h 13 14quiet_cmd_eisaid = GEN $@ 15 cmd_eisaid = sed -e '/^\#/D' -e 's/^\([[:alnum:]]\{7\}\) \+"\([^"]*\)"/EISA_DEVINFO ("\1", "\2"),/' $< > $@ 16 17clean-files := devlist.h 18$(obj)/devlist.h: $(src)/eisa.ids include/linux/device.h FORCE 19 $(call if_changed,eisaid) 20