diff options
| author | Kai Germaschewski <kai@tp1.ruhr-uni-bochum.de> | 2003-02-14 10:12:22 -0600 |
|---|---|---|
| committer | Kai Germaschewski <kai@tp1.ruhr-uni-bochum.de> | 2003-02-14 10:12:22 -0600 |
| commit | cbc98ae5392ed151ecf74ad41c3ec7b0cb5547bb (patch) | |
| tree | a9941dde3d913607f39cba911a727453b5e08fd2 /scripts/Makefile | |
| parent | 0e5064f80d41d75abbb10e040bbd7c600e08299c (diff) | |
kbuild: Figure endianness / word size at compile time
The helper file2alias had to jump through a lot of hoops because it did not
know the host and target endianness / word size at compile time.
We now build a small header scripts/elfconfig.h which contains this
information for file2alias to use.
Diffstat (limited to 'scripts/Makefile')
| -rw-r--r-- | scripts/Makefile | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/scripts/Makefile b/scripts/Makefile index cf5a1862ea1d..59bdaae2e5b7 100644 --- a/scripts/Makefile +++ b/scripts/Makefile @@ -9,11 +9,23 @@ # conmakehash: Create arrays for initializing the kernel console tables host-progs := fixdep split-include conmakehash docproc kallsyms modpost \ - file2alias -build-targets := $(host-progs) + file2alias mk_elfconfig +build-targets := $(host-progs) empty.o # Let clean descend into subdirs subdir- := lxdialog kconfig # fixdep is needed to compile other host programs $(addprefix $(obj)/,$(filter-out fixdep,$(host-progs))): $(obj)/fixdep + +# dependencies on generated files need to be listed explicitly + +$(obj)/file2alias: $(obj)/elfconfig.h + +quiet_cmd_elfconfig = MKTARGET $@ + cmd_elfconfig = $(obj)/mk_elfconfig < $< > $@ + +$(obj)/elfconfig.h: $(obj)/empty.o $(obj)/mk_elfconfig FORCE + $(call if_changed,elfconfig) + +targets += $(obj)/target.h |
