diff options
author | John Rigby <john.rigby@linaro.org> | 2011-03-02 18:57:21 -0700 |
---|---|---|
committer | Eric Miao <eric.miao@linaro.org> | 2011-12-03 13:24:51 +0800 |
commit | c1e085083043192cc24e98d7e36a0eb0c10a5138 (patch) | |
tree | ead25db65177c0ee10167a840adfeee7f64bdc03 /debian.linaro/config/armel/config.flavour.linaro-omap | |
parent | 789cd3af3b9c785fcb733ea5eff8c7310e339cac (diff) |
KBuild: Allow scripts/* to be cross compiled
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>
Conflicts:
scripts/kconfig/Makefile
Diffstat (limited to 'debian.linaro/config/armel/config.flavour.linaro-omap')
0 files changed, 0 insertions, 0 deletions