Makefile 791 B

1234567891011121314151617181920212223242526
  1. OBJECT_FILES_NON_STANDARD := y
  2. hostprogs-y := modpost mk_elfconfig
  3. always := $(hostprogs-y) empty.o
  4. modpost-objs := modpost.o file2alias.o sumversion.o
  5. devicetable-offsets-file := devicetable-offsets.h
  6. $(obj)/$(devicetable-offsets-file): $(obj)/devicetable-offsets.s FORCE
  7. $(call filechk,offsets,__DEVICETABLE_OFFSETS_H__)
  8. targets += $(devicetable-offsets-file) devicetable-offsets.s
  9. # dependencies on generated files need to be listed explicitly
  10. $(obj)/modpost.o $(obj)/file2alias.o $(obj)/sumversion.o: $(obj)/elfconfig.h
  11. $(obj)/file2alias.o: $(obj)/$(devicetable-offsets-file)
  12. quiet_cmd_elfconfig = MKELF $@
  13. cmd_elfconfig = $(obj)/mk_elfconfig < $< > $@
  14. $(obj)/elfconfig.h: $(obj)/empty.o $(obj)/mk_elfconfig FORCE
  15. $(call if_changed,elfconfig)
  16. targets += elfconfig.h