]> err.no Git - linux-2.6/blob - drivers/eisa/Makefile
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/roland...
[linux-2.6] / drivers / eisa / Makefile
1 # Makefile for the Linux device tree
2
3 obj-$(CONFIG_EISA)              += eisa-bus.o
4 obj-${CONFIG_EISA_PCI_EISA}     += pci_eisa.o
5
6 # virtual_root.o should be the last EISA root device to initialize,
7 # so leave it at the end of the list.
8 obj-${CONFIG_EISA_VIRTUAL_ROOT} += virtual_root.o
9
10
11 # Ugly hack to get DEVICE_NAME_SIZE value...
12 DEVICE_NAME_SIZE =$(shell awk '$$1=="\#define" && $$2=="DEVICE_NAME_SIZE" {print $$3-1}' $(srctree)/include/linux/device.h)
13
14 $(obj)/eisa-bus.o: $(obj)/devlist.h
15
16 quiet_cmd_eisaid = GEN     $@
17       cmd_eisaid = sed -e '/^\#/D' -e 's/^\([[:alnum:]]\{7\}\) \+"\([^"]\{1,$(DEVICE_NAME_SIZE)\}\).*"/EISA_DEVINFO ("\1", "\2"),/' $< > $@
18
19 clean-files := devlist.h
20 $(obj)/devlist.h: $(src)/eisa.ids include/linux/device.h
21         $(call cmd,eisaid)