diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2007-10-04 12:54:56 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2007-10-04 12:54:56 +0200 |
commit | f1400e3b0639dbbb1f413c7712ff7359f87f77ee (patch) | |
tree | 3fb9f60eb5455cdf6dab47c7d8a506ba8f5dff50 /scripts/mod/Makefile | |
parent | b02e0966412c3deaf1cd6dfcc35fbab33a53f539 (diff) | |
download | barebox-f1400e3b0639dbbb1f413c7712ff7359f87f77ee.tar.gz barebox-f1400e3b0639dbbb1f413c7712ff7359f87f77ee.tar.xz |
add modpost
Diffstat (limited to 'scripts/mod/Makefile')
-rw-r--r-- | scripts/mod/Makefile | 16 |
1 files changed, 16 insertions, 0 deletions
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 |