1*b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0 21da177e4SLinus Torvalds# Makefile for the Linux device tree 31da177e4SLinus Torvalds 41da177e4SLinus Torvaldsobj-$(CONFIG_EISA) += eisa-bus.o 51da177e4SLinus Torvaldsobj-${CONFIG_EISA_PCI_EISA} += pci_eisa.o 61da177e4SLinus Torvalds 71da177e4SLinus Torvalds# virtual_root.o should be the last EISA root device to initialize, 81da177e4SLinus Torvalds# so leave it at the end of the list. 91da177e4SLinus Torvaldsobj-${CONFIG_EISA_VIRTUAL_ROOT} += virtual_root.o 101da177e4SLinus Torvalds 111da177e4SLinus Torvalds 121da177e4SLinus Torvalds# Ugly hack to get DEVICE_NAME_SIZE value... 13ca52a498SKay SieversDEVICE_NAME_SIZE = 50 141da177e4SLinus Torvalds 151da177e4SLinus Torvalds$(obj)/eisa-bus.o: $(obj)/devlist.h 161da177e4SLinus Torvalds 171da177e4SLinus Torvaldsquiet_cmd_eisaid = GEN $@ 181da177e4SLinus Torvalds cmd_eisaid = sed -e '/^\#/D' -e 's/^\([[:alnum:]]\{7\}\) \+"\([^"]\{1,$(DEVICE_NAME_SIZE)\}\).*"/EISA_DEVINFO ("\1", "\2"),/' $< > $@ 191da177e4SLinus Torvalds 201da177e4SLinus Torvaldsclean-files := devlist.h 211da177e4SLinus Torvalds$(obj)/devlist.h: $(src)/eisa.ids include/linux/device.h 221da177e4SLinus Torvalds $(call cmd,eisaid) 23