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