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