2 # scripts contains sources for various helper programs used throughout
3 # the kernel for the build process.
4 # ---------------------------------------------------------------------------
5 # docproc: Preprocess .tmpl file in order to generate .sgml docs
6 # conmakehash: Create arrays for initializing the kernel console tables
8 host-progs := conmakehash kallsyms modpost mk_elfconfig pnmtologo bin2c
9 always := $(host-progs) empty.o
11 modpost-objs := modpost.o file2alias.o sumversion.o
13 subdir-$(CONFIG_MODVERSIONS) += genksyms
15 # Let clean descend into subdirs
16 subdir- += basic lxdialog kconfig package
18 # dependencies on generated files need to be listed explicitly
20 $(obj)/modpost.o $(obj)/file2alias.o $(obj)/sumversion.o: $(obj)/elfconfig.h
22 quiet_cmd_elfconfig = MKELF $@
23 cmd_elfconfig = $(obj)/mk_elfconfig $(ARCH) < $< > $@
25 $(obj)/elfconfig.h: $(obj)/empty.o $(obj)/mk_elfconfig FORCE
26 $(call if_changed,elfconfig)
28 targets += elfconfig.h