From f1400e3b0639dbbb1f413c7712ff7359f87f77ee Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Thu, 4 Oct 2007 12:54:56 +0200 Subject: add modpost --- scripts/mod/Makefile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 scripts/mod/Makefile (limited to 'scripts/mod/Makefile') diff --git a/scripts/mod/Makefile b/scripts/mod/Makefile new file mode 100644 index 0000000000..c5aa348924 --- /dev/null +++ b/scripts/mod/Makefile @@ -0,0 +1,16 @@ +hostprogs-y := modpost mk_elfconfig +always := $(hostprogs-y) empty.o + +modpost-objs := modpost.o sumversion.o + +# dependencies on generated files need to be listed explicitly + +$(obj)/modpost.o $(obj)/file2alias.o $(obj)/sumversion.o: $(obj)/elfconfig.h + +quiet_cmd_elfconfig = MKELF $@ + cmd_elfconfig = $(obj)/mk_elfconfig $(ARCH) < $< > $@ + +$(obj)/elfconfig.h: $(obj)/empty.o $(obj)/mk_elfconfig FORCE + $(call if_changed,elfconfig) + +targets += elfconfig.h -- cgit v1.2.3