kinetis_ke: Switch to standard build variables

Instead of using ARM_ prefixed variables and an "arm" target,
use CROSS_COMPILE, AS, OBJCOPY. This requires to switch from ?= to =
to avoid the host assembler getting invoked.

This allows to handle kinetis_ke subdirectory like fm4 and xmc1xxx.

Change-Id: I7ea0bf119f6c4716f4d6002794004730af49eef4
Signed-off-by: Andreas Färber <afaerber@suse.de>
Reviewed-on: http://openocd.zylin.com/3505
Tested-by: jenkins
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
This commit is contained in:
Andreas Färber 2016-05-22 19:12:20 +02:00 committed by Andreas Fritiofson
parent e499502e98
commit 02f17f0ba3
2 changed files with 10 additions and 10 deletions

View File

@ -5,13 +5,13 @@ all: arm
common_dirs = \ common_dirs = \
checksum \ checksum \
erase_check \ erase_check \
flash/kinetis_ke \
watchdog watchdog
ARM_CROSS_COMPILE ?= arm-none-eabi- ARM_CROSS_COMPILE ?= arm-none-eabi-
arm_dirs = \ arm_dirs = \
flash/fm4 \ flash/fm4 \
flash/kinetis_ke \
flash/xmc1xxx flash/xmc1xxx
arm: arm:

View File

@ -1,18 +1,18 @@
BIN2C = ../../../../src/helper/bin2char.sh BIN2C = ../../../../src/helper/bin2char.sh
ARM_CROSS_COMPILE ?= arm-none-eabi- CROSS_COMPILE ?= arm-none-eabi-
ARM_AS ?= $(ARM_CROSS_COMPILE)as AS = $(CROSS_COMPILE)as
ARM_OBJCOPY ?= $(ARM_CROSS_COMPILE)objcopy OBJCOPY = $(CROSS_COMPILE)objcopy
arm: kinetis_ke_flash.inc kinetis_ke_watchdog.inc all: kinetis_ke_flash.inc kinetis_ke_watchdog.inc
kinetis_ke_%.elf: kinetis_ke_%.s %.elf: %.s
$(ARM_AS) $< -o $@ $(AS) $< -o $@
kinetis_ke_%.bin: kinetis_ke_%.elf %.bin: %.elf
$(ARM_OBJCOPY) -Obinary $< $@ $(OBJCOPY) -Obinary $< $@
kinetis_ke_%.inc: kinetis_ke_%.bin %.inc: %.bin
$(BIN2C) < $< > $@ $(BIN2C) < $< > $@
clean: clean: