kbuild: include localarch for simple cross overrides
PATCH 1/1 kbuild: include localarch for simple cross overrides
For people banging on kernel trees which are dedicated to a specific arch, it'd be nice to allow the repo itself to declare the default ARCH (and CROSS_COMPILE) easily. Just like the "localversion-*" files, people can just do:
echo 'ARCH ?= blackfin' > localarch
and the tree will default to 'blackfin' all the time rather than whatever the build machine happens to be.
--- Makefile | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
Makefile +1 -0
@@ -180,6 +180,7 @@ SUBARCH := $(shell uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc64/ \ # make ARCH=ia64 # Another way is to have ARCH set in the environment. # The default ARCH is the host where make is executed. +-include localarch # CROSS_COMPILE specify the prefix used for all executables used # during compilation. Only gcc and related bin-utils executables
Signature · 1 line
1.6.0.2
Quoted 18 lines · Mike Frysinger
For people banging on kernel trees which are dedicated to a specific arch, it'd be nice to allow the repo itself to declare the default ARCH (and
CROSS_COMPILE) easily. Just like the "localversion-*" files, people can just do:
echo 'ARCH ?= blackfin' > localarch
and the tree will default to 'blackfin' all the time rather than whatever the build machine happens to be.Signed-off-by Mike Frysinger <[email protected]>--- Makefile | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)Makefile +0
-0
Makefile SUBARCH := $(shell uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc64/ \ · line 186
Quoted 7 lines
Makefile +1
-0@@ -180,6 +180,7 @@ SUBARCH := $(shell uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc64/ \ # make ARCH=ia64 # Another way is to have ARCH set in the environment. # The default ARCH is the host where make is executed. +-include localarch # CROSS_COMPILE specify the prefix used for all executables used # during compilation. Only gcc and related bin-utils executables
Last time I did something similar it broke a few archs. But then it was automatically done where this approach is mnually.
I will apply this to kbuild-next but it will most likely change sometime in the future.
Sam