makefile clean up

allow board to define CROSS_COMPILE (default to arm gcc)
This commit is contained in:
hathach
2020-03-25 14:06:51 +07:00
parent 435485b524
commit d74a92bf45
4 changed files with 36 additions and 41 deletions

View File

@@ -5,6 +5,9 @@ CFLAGS += \
-nostdlib \
-DCFG_TUSB_MCU=OPT_MCU_VALENTYUSB_EPTRI
# Cross Compiler for RISC-V
CROSS_COMPILE = riscv-none-embed-
MCU_DIR = hw/mcu/fomu
BSP_DIR = hw/bsp/fomu

View File

@@ -6,6 +6,9 @@ CFLAGS += \
#-mmcu=msp430f5529
# Cross Compiler for MSP430
CROSS_COMPILE = msp430-elf-
# All source paths should be relative to the top level.
LD_FILE = hw/mcu/ti/msp430/msp430-gcc-support-files/include/msp430f5529.ld
LDINC += $(TOP)/hw/mcu/ti/msp430/msp430-gcc-support-files/include