7 CROSS_COMPILE = arm-elf-
8 TARGET_ARCH = -mthumb -mcpu=cortex-m3
10 # set ARCH_... & MACH_... C defines
11 CFLAGS += -DARCH_$(shell echo $(ARCH) | tr a-z A-Z)
12 CFLAGS += -DMACH_$(shell echo $(MACH) | tr a-z A-Z)
13 CFLAGS += -D__BIT_TYPES_DEFINED__
15 # Set default C flags. If theese are set elsewhere (e.g. on a command
16 # line), these default flags are not used.
21 # loading function is not done yet
23 #LPCISP=~/projects/cf/lpc21isp_v179/lpc21isp
24 #TOLPC13XX=../../../arch/arm/mach-lpc13xx/tools/tolpc/tolpc -m ../../../arch/arm/mach-lpc13xx/tools/tolpc/lpc13xx.so
26 #LPC_TTY = /dev/ttyUSB0
29 #TOLPC = $(TOLPC13XX) --baud $(LPC_BAUD) --sdev $(LPC_TTY) -q $(CPU_SYS_KHZ) -L -f
30 #LOAD_CMD-ram = $(TOLPC)
31 #LOAD_CMD-flash = load() { $(TOLPC) -bin $$1 $(LPC_TTY) $(LPC_BAUD) $(CPU_SYS_KHZ); }; load
33 # This selects linker script
35 DEFAULT_LD_SCRIPT_VARIANT=flash