diff options
author | John Rigby <john.rigby@linaro.org> | 2012-01-10 12:01:41 -0700 |
---|---|---|
committer | John Rigby <john.rigby@linaro.org> | 2012-06-24 16:04:28 -0600 |
commit | ef5e1abb062736645def0f8c1657c19b8dd4ad9b (patch) | |
tree | d83b90ef1eaa0e03e6644a825229c4ee8ef2363a /scripts/kconfig/lkc.h | |
parent | 00c677fea8252b91a8af5ecb42e810c1215d8b05 (diff) |
KBuild: Allow scripts/* to be cross compiledlinaro-ubuntu-sauce-3.4-2012.06-242204
Cross compiling the binaries in scripts/* is not possible
because various makefiles assume that $(obj)/whatever is
executable on the build host.
This patch introduces a new variable called KBUILD_SCRIPTROOT
that points to script/binaries to use while cross compiling.
Usage:
Build scripts for the build host:
make O=path/to/buildhost/buildscripts \
silentoldconfig prepare scripts
Then cross build script for target:
make O=path/to/target/buildscripts \
HOSTCC=$CROSS_COMPILE \
KBUILD_SCRIPTROOT=path/to/buildhost/buildscripts
silentoldconfig prepare scripts
This patch does not use KBUILD_SCRIPTROOT for all script invocations
it only redefines the following if KBUILD_SCRIPTROOT is defined.
scripts/Makefile.build
scripts/basic/fixdep --> $(KBUILD_SCRIPTROOT)/scripts/basic/fixdep
scripts/kconfig/Makefile
$(obj)/conf --> $(KBUILD_SCRIPTROOT)/scripts/kconfig/conf
scripts/mod/Makefile
$(obj)mk_elfconfig --> $(KBUILD_SCRIPTROOT)/scripts/mod/mk_elfconfig
Signed-off-by: John Rigby <john.rigby@linaro.org>
Diffstat (limited to 'scripts/kconfig/lkc.h')
0 files changed, 0 insertions, 0 deletions