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