Makefile 662 B

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