arch: improve definition of gcc mtune, mcpu, etc.
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thu, 15 Nov 2012 03:53:48 +0000 (03:53 +0000)
committerPeter Korsgaard <jacmet@sunsite.dk>
Thu, 15 Nov 2012 15:12:46 +0000 (16:12 +0100)
commit44c04a2b4aa998e9c52c4d30f45b1ded933b966a
tree1afb81a4dfab41d14a269c8630deab29a33d75eb
parent53adfc5f4976704d426681a0404c1643db009552
arch: improve definition of gcc mtune, mcpu, etc.

As suggested by Yann E. Morin, there is a better way than our current
big Config.in.common to define the gcc mtune, mcpu, march,
etc. values. We can split the setting of those values in each
architecture file, which makes a lot more sense.

Therefore, the Config.in file now creates empty kconfig variables
BR2_ARCH, BR2_ENDIAN, BR2_GCC_TARGET_TUNE, BR2_GCC_TARGET_ARCH,
BR2_GCC_TARGET_ABI and BR2_GCC_TARGET_CPU. The values of those
variables are set by the individual Config.in.<arch> files. This is
possible because such files are now only conditionally included
depending on the top-level architecture that has been selected.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
13 files changed:
arch/Config.in
arch/Config.in.aarch64 [new file with mode: 0644]
arch/Config.in.arm
arch/Config.in.avr32 [new file with mode: 0644]
arch/Config.in.bfin
arch/Config.in.common [deleted file]
arch/Config.in.m68k [new file with mode: 0644]
arch/Config.in.microblaze [new file with mode: 0644]
arch/Config.in.mips
arch/Config.in.powerpc
arch/Config.in.sh
arch/Config.in.sparc
arch/Config.in.x86