18c2ecf20Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0 28c2ecf20Sopenharmony_ciOBJECT_FILES_NON_STANDARD := y 38c2ecf20Sopenharmony_ciCFLAGS_REMOVE_empty.o += $(CC_FLAGS_LTO) 48c2ecf20Sopenharmony_ci 58c2ecf20Sopenharmony_cihostprogs-always-y += modpost mk_elfconfig 68c2ecf20Sopenharmony_cialways-y += empty.o 78c2ecf20Sopenharmony_ci 88c2ecf20Sopenharmony_cimodpost-objs := modpost.o file2alias.o sumversion.o 98c2ecf20Sopenharmony_ci 108c2ecf20Sopenharmony_cidevicetable-offsets-file := devicetable-offsets.h 118c2ecf20Sopenharmony_ci 128c2ecf20Sopenharmony_ci$(obj)/$(devicetable-offsets-file): $(obj)/devicetable-offsets.s FORCE 138c2ecf20Sopenharmony_ci $(call filechk,offsets,__DEVICETABLE_OFFSETS_H__) 148c2ecf20Sopenharmony_ci 158c2ecf20Sopenharmony_citargets += $(devicetable-offsets-file) devicetable-offsets.s 168c2ecf20Sopenharmony_ci 178c2ecf20Sopenharmony_ci# dependencies on generated files need to be listed explicitly 188c2ecf20Sopenharmony_ci 198c2ecf20Sopenharmony_ci$(obj)/modpost.o $(obj)/file2alias.o $(obj)/sumversion.o: $(obj)/elfconfig.h 208c2ecf20Sopenharmony_ci$(obj)/file2alias.o: $(obj)/$(devicetable-offsets-file) 218c2ecf20Sopenharmony_ci 228c2ecf20Sopenharmony_ciquiet_cmd_elfconfig = MKELF $@ 238c2ecf20Sopenharmony_ci cmd_elfconfig = $(obj)/mk_elfconfig < $< > $@ 248c2ecf20Sopenharmony_ci 258c2ecf20Sopenharmony_ci$(obj)/elfconfig.h: $(obj)/empty.o $(obj)/mk_elfconfig FORCE 268c2ecf20Sopenharmony_ci $(call if_changed,elfconfig) 278c2ecf20Sopenharmony_ci 288c2ecf20Sopenharmony_citargets += elfconfig.h 29