toolchain.gccarmemb: Simplify setting of libgcc include path
Utilize the gcc -print-libgcc-file-name to determine the path to libgcc.a. Using this also resolve issues if we are building with floating point and the various ABIs to pickup the right lib. We can also simply a few Makefiles and remove the need to export _CROSS_COMPILE_arm_isa. Change-Id: I293394c921c18fa4984173ba51825d6f9a333697 Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
cad05129b9
commit
1c0bcc8cc5
2 changed files with 2 additions and 4 deletions
|
@ -25,14 +25,11 @@ cflags-cortex-m7 = $(call cc-option,-mabi=aapcs -mthumb -mcpu=cortex-m7) \
|
|||
aflags-$(CONFIG_CPU_CORTEX_M3) += $(cflags-cortex-m3)
|
||||
cflags-$(CONFIG_CPU_CORTEX_M3) += $(cflags-cortex-m3)
|
||||
cxxflags-$(CONFIG_CPU_CORTEX_M3) += $(cflags-cortex-m3)
|
||||
_arm_isa-$(CONFIG_CPU_CORTEX_M3) = armv7-m
|
||||
|
||||
aflags-$(CONFIG_CPU_CORTEX_M4) += $(cflags-cortex-m4)
|
||||
cflags-$(CONFIG_CPU_CORTEX_M4) += $(cflags-cortex-m4)
|
||||
cxxflags-$(CONFIG_CPU_CORTEX_M4) += $(cflags-cortex-m4)
|
||||
_arm_isa-$(CONFIG_CPU_CORTEX_M4) = armv7e-m
|
||||
|
||||
_CROSS_COMPILE_arm_isa = $(_arm_isa-y)
|
||||
|
||||
KBUILD_AFLAGS += $(aflags-y)
|
||||
KBUILD_CFLAGS += $(cflags-y)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue