18c2ecf20Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0 28c2ecf20Sopenharmony_ci# Makefile for the Linux device tree 38c2ecf20Sopenharmony_ci 48c2ecf20Sopenharmony_ciobj-$(CONFIG_EISA) += eisa-bus.o 58c2ecf20Sopenharmony_ciobj-${CONFIG_EISA_PCI_EISA} += pci_eisa.o 68c2ecf20Sopenharmony_ci 78c2ecf20Sopenharmony_ci# virtual_root.o should be the last EISA root device to initialize, 88c2ecf20Sopenharmony_ci# so leave it at the end of the list. 98c2ecf20Sopenharmony_ciobj-${CONFIG_EISA_VIRTUAL_ROOT} += virtual_root.o 108c2ecf20Sopenharmony_ci 118c2ecf20Sopenharmony_ci 128c2ecf20Sopenharmony_ci# Ugly hack to get DEVICE_NAME_SIZE value... 138c2ecf20Sopenharmony_ciDEVICE_NAME_SIZE = 50 148c2ecf20Sopenharmony_ci 158c2ecf20Sopenharmony_ci$(obj)/eisa-bus.o: $(obj)/devlist.h 168c2ecf20Sopenharmony_ci 178c2ecf20Sopenharmony_ciquiet_cmd_eisaid = GEN $@ 188c2ecf20Sopenharmony_ci cmd_eisaid = sed -e '/^\#/D' -e 's/^\([[:alnum:]]\{7\}\) \+"\([^"]\{1,$(DEVICE_NAME_SIZE)\}\).*"/EISA_DEVINFO ("\1", "\2"),/' $< > $@ 198c2ecf20Sopenharmony_ci 208c2ecf20Sopenharmony_ciclean-files := devlist.h 218c2ecf20Sopenharmony_ci$(obj)/devlist.h: $(src)/eisa.ids include/linux/device.h 228c2ecf20Sopenharmony_ci $(call cmd,eisaid) 23