0001
0002 OBJECT_FILES_NON_STANDARD := y
0003 CFLAGS_REMOVE_empty.o += $(CC_FLAGS_LTO)
0004
0005 hostprogs-always-y += modpost mk_elfconfig
0006 always-y += empty.o
0007
0008 modpost-objs := modpost.o file2alias.o sumversion.o
0009
0010 devicetable-offsets-file := devicetable-offsets.h
0011
0012 $(obj)/$(devicetable-offsets-file): $(obj)/devicetable-offsets.s FORCE
0013 $(call filechk,offsets,__DEVICETABLE_OFFSETS_H__)
0014
0015 targets += $(devicetable-offsets-file) devicetable-offsets.s
0016
0017
0018
0019 $(obj)/modpost.o $(obj)/file2alias.o $(obj)/sumversion.o: $(obj)/elfconfig.h
0020 $(obj)/file2alias.o: $(obj)/$(devicetable-offsets-file)
0021
0022 quiet_cmd_elfconfig = MKELF $@
0023 cmd_elfconfig = $(obj)/mk_elfconfig < $< > $@
0024
0025 $(obj)/elfconfig.h: $(obj)/empty.o $(obj)/mk_elfconfig FORCE
0026 $(call if_changed,elfconfig)
0027
0028 targets += elfconfig.h