Linux 6.13-rc4
[linux.git] / drivers / eisa / Makefile
bloba1dd0eaec2d46fd1ce83d21851eb1bc56ec89a0e
1 # SPDX-License-Identifier: GPL-2.0
2 # Makefile for the Linux device tree
4 obj-$(CONFIG_EISA) += eisa-bus.o
5 obj-${CONFIG_EISA_PCI_EISA} += pci_eisa.o
7 # virtual_root.o should be the last EISA root device to initialize,
8 # so leave it at the end of the list.
9 obj-${CONFIG_EISA_VIRTUAL_ROOT} += virtual_root.o
12 # Ugly hack to get DEVICE_NAME_SIZE value...
13 DEVICE_NAME_SIZE = 50
15 $(obj)/eisa-bus.o: $(obj)/devlist.h
17 quiet_cmd_eisaid = GEN $@
18 cmd_eisaid = sed -e '/^\#/D' -e 's/^\([[:alnum:]]\{7\}\) \+"\([^"]\{1,$(DEVICE_NAME_SIZE)\}\).*"/EISA_DEVINFO ("\1", "\2"),/' $< > $@
20 clean-files := devlist.h
21 $(obj)/devlist.h: $(src)/eisa.ids include/linux/device.h
22 $(call cmd,eisaid)