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