From 8ecf9f0b495892592f3551fca7a60d99241e064e Mon Sep 17 00:00:00 2001 From: Sam Ravnborg Date: Fri, 23 Jul 2004 05:28:19 +0200 Subject: kbuild: Fix up moving of modpost A few small issues to fix the moving of modpost. A few files was missing in the commit and one change needed. Also bk ignored the files in their new location. Signed-off-by: Sam Ravnborg --- scripts/mod/Makefile | 16 ++++++++++++++++ scripts/mod/file2alias.c | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 scripts/mod/Makefile (limited to 'scripts/mod') diff --git a/scripts/mod/Makefile b/scripts/mod/Makefile new file mode 100644 index 000000000000..f66bf5262aae --- /dev/null +++ b/scripts/mod/Makefile @@ -0,0 +1,16 @@ +host-progs := modpost mk_elfconfig +always := $(host-progs) empty.o + +modpost-objs := modpost.o file2alias.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 diff --git a/scripts/mod/file2alias.c b/scripts/mod/file2alias.c index fa8fd160b2b8..f38c6d7def2a 100644 --- a/scripts/mod/file2alias.c +++ b/scripts/mod/file2alias.c @@ -27,7 +27,7 @@ typedef unsigned char __u8; /* Big exception to the "don't include kernel headers into userspace, which * even potentially has different endianness and word sizes, since * we handle those differences explicitly below */ -#include "../include/linux/mod_devicetable.h" +#include "../../include/linux/mod_devicetable.h" #define ADD(str, sep, cond, field) \ do { \ -- cgit v1.2.3