Makefile 652 B

1234567891011121314151617181920
  1. # SPDX-License-Identifier: GPL-2.0
  2. # Makefile for the Linux device tree
  3. always-$(CONFIG_EISA) += devlist.h
  4. obj-$(CONFIG_EISA) += eisa-bus.o
  5. obj-${CONFIG_EISA_PCI_EISA} += pci_eisa.o
  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. $(obj)/eisa-bus.o: $(obj)/devlist.h
  10. quiet_cmd_eisaid = GEN $@
  11. cmd_eisaid = sed -e '/^\#/D' -e 's/^\([[:alnum:]]\{7\}\) \+"\([^"]*\)"/EISA_DEVINFO ("\1", "\2"),/' $< > $@
  12. clean-files := devlist.h
  13. $(obj)/devlist.h: $(src)/eisa.ids include/linux/device.h FORCE
  14. $(call if_changed,eisaid)