Commit 462c50d7 authored by Brian Gerst's avatar Brian Gerst Committed by Sam Ravnborg

kbuild: Move modpost files to a new subdir scripts/mod

Move modpost and support files to scripts/mod.
Directory named mod by Sam.

From: Brian Gerst <bgerst@didntduck.org>
Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
parent c6dd36ac
......@@ -5,24 +5,11 @@
# docproc: Preprocess .tmpl file in order to generate .sgml docs
# conmakehash: Create arrays for initializing the kernel console tables
host-progs := conmakehash kallsyms modpost mk_elfconfig pnmtologo bin2c
always := $(host-progs) empty.o
modpost-objs := modpost.o file2alias.o sumversion.o
host-progs := conmakehash kallsyms pnmtologo bin2c
always := $(host-progs)
subdir-$(CONFIG_MODVERSIONS) += genksyms
subdir-y += modpost
# Let clean descend into subdirs
subdir- += basic lxdialog kconfig package
# 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
......@@ -50,7 +50,7 @@ _modpost: $(modules)
# Step 2), invoke modpost
# Includes step 3,4
quiet_cmd_modpost = MODPOST
cmd_modpost = scripts/modpost \
cmd_modpost = scripts/mod/modpost \
$(if $(KBUILD_EXTMOD),-i,-o) $(symverfile) \
$(filter-out FORCE,$^)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment