audit: Replace chunk attached to mark instead of replacing mark
[linux/fpc-iii.git] / scripts / mod / Makefile
bloba5b4af47987a7ab84af40d84d5b8b84f48973068
1 # SPDX-License-Identifier: GPL-2.0
2 OBJECT_FILES_NON_STANDARD := y
4 hostprogs-y := modpost mk_elfconfig
5 always := $(hostprogs-y) empty.o
7 CFLAGS_REMOVE_empty.o := $(ASM_MACRO_FLAGS)
9 modpost-objs := modpost.o file2alias.o sumversion.o
11 devicetable-offsets-file := devicetable-offsets.h
13 $(obj)/$(devicetable-offsets-file): $(obj)/devicetable-offsets.s FORCE
14 $(call filechk,offsets,__DEVICETABLE_OFFSETS_H__)
16 targets += $(devicetable-offsets-file) devicetable-offsets.s
18 # dependencies on generated files need to be listed explicitly
20 $(obj)/modpost.o $(obj)/file2alias.o $(obj)/sumversion.o: $(obj)/elfconfig.h
21 $(obj)/file2alias.o: $(obj)/$(devicetable-offsets-file)
23 quiet_cmd_elfconfig = MKELF $@
24 cmd_elfconfig = $(obj)/mk_elfconfig < $< > $@
26 $(obj)/elfconfig.h: $(obj)/empty.o $(obj)/mk_elfconfig FORCE
27 $(call if_changed,elfconfig)
29 targets += elfconfig.h