[PATCH 7/7] arm: add configurable AEABI support
Sascha Hauer
s.hauer at pengutronix.de
Tue Nov 3 03:51:15 EST 2009
On Mon, Nov 02, 2009 at 07:51:31PM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote:
> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj at jcrosoft.com>
> ---
> arch/arm/Kconfig | 15 +++++++++++++++
> arch/arm/Makefile | 8 +++++++-
> 2 files changed, 22 insertions(+), 1 deletions(-)
>
> diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
> index 1ce216a..00c443d 100644
> --- a/arch/arm/Kconfig
> +++ b/arch/arm/Kconfig
> @@ -54,6 +54,21 @@ source arch/arm/mach-netx/Kconfig
> source arch/arm/mach-omap/Kconfig
> source arch/arm/mach-s3c24xx/Kconfig
>
> +config AEABI
> + bool "Use the ARM EABI to compile the kernel"
We should use u-boot and not kernel here.
Sascha
> + help
> + This option allows for the kernel to be compiled using the latest
> + ARM ABI (aka EABI). This is only useful if you are using a user
> + space environment that is also compiled with EABI.
> +
> + Since there are major incompatibilities between the legacy ABI and
> + EABI, especially with regard to structure member alignment, this
> + option also changes the kernel syscall calling convention to
> + disambiguate both ABIs and allow for backward compatibility support
> + (selected with CONFIG_OABI_COMPAT).
> +
> + To use this you need GCC version 4.0.0 or later.
> +
> endmenu
>
> menu "Arm specific settings "
> diff --git a/arch/arm/Makefile b/arch/arm/Makefile
> index 87783cb..55c2dc3 100644
> --- a/arch/arm/Makefile
> +++ b/arch/arm/Makefile
> @@ -27,7 +27,13 @@ arch-$(CONFIG_CPU_32v4T) :=-D__LINUX_ARM_ARCH__=4 -march=armv4t
> tune-$(CONFIG_CPU_ARM920T) :=-mtune=arm9tdmi
> tune-$(CONFIG_CPU_ARM926T) :=-mtune=arm9tdmi
>
> -CPPFLAGS += $(arch-y) $(tune-y)
> +ifeq ($(CONFIG_AEABI),y)
> +CFLAGS_ABI :=-mabi=aapcs-linux -mno-thumb-interwork
> +else
> +CFLAGS_ABI :=$(call cc-option,-mapcs-32,-mabi=apcs-gnu) $(call cc-option,-mno-thumb-interwork,)
> +endif
> +
> +CPPFLAGS += $(CFLAGS_ABI) $(arch-y) $(tune-y)
>
> # Machine directory name. This list is sorted alphanumerically
> # by CONFIG_* macro name.
> --
> 1.6.5
>
>
> _______________________________________________
> u-boot-v2 mailing list
> u-boot-v2 at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/u-boot-v2
>
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
More information about the u-boot-v2
mailing list