Merge tag 'sound-fix-4.20-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai...
[linux-2.6-block.git] / scripts / mod / Makefile
CommitLineData
b2441318 1# SPDX-License-Identifier: GPL-2.0
c0dd6716
JP
2OBJECT_FILES_NON_STANDARD := y
3
1da177e4
LT
4hostprogs-y := modpost mk_elfconfig
5always := $(hostprogs-y) empty.o
6
77b0bf55
NA
7CFLAGS_REMOVE_empty.o := $(ASM_MACRO_FLAGS)
8
1da177e4
LT
9modpost-objs := modpost.o file2alias.o sumversion.o
10
6543becf
AS
11devicetable-offsets-file := devicetable-offsets.h
12
ebf003f0
MK
13$(obj)/$(devicetable-offsets-file): $(obj)/devicetable-offsets.s FORCE
14 $(call filechk,offsets,__DEVICETABLE_OFFSETS_H__)
6543becf 15
bd701343 16targets += $(devicetable-offsets-file) devicetable-offsets.s
22fc4273 17
1da177e4
LT
18# dependencies on generated files need to be listed explicitly
19
20$(obj)/modpost.o $(obj)/file2alias.o $(obj)/sumversion.o: $(obj)/elfconfig.h
6543becf 21$(obj)/file2alias.o: $(obj)/$(devicetable-offsets-file)
1da177e4
LT
22
23quiet_cmd_elfconfig = MKELF $@
9e1b9b80 24 cmd_elfconfig = $(obj)/mk_elfconfig < $< > $@
1da177e4
LT
25
26$(obj)/elfconfig.h: $(obj)/empty.o $(obj)/mk_elfconfig FORCE
27 $(call if_changed,elfconfig)
28
29targets += elfconfig.h