summaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorhathach <[email protected]>2020-03-25 14:06:51 +0700
committerhathach <[email protected]>2020-03-25 14:06:51 +0700
commitd74a92bf4596d229a3176fab2f91c45eabff6d3a (patch)
treee148e4ce88c328b56f4c50f97f2bc77584d48b49 /hw
parent435485b524f7d5299f489b34555a0c9d5f616159 (diff)
makefile clean up
allow board to define CROSS_COMPILE (default to arm gcc)
Diffstat (limited to 'hw')
-rw-r--r--hw/bsp/fomu/board.mk3
-rw-r--r--hw/bsp/msp_exp430f5529lp/board.mk3
2 files changed, 6 insertions, 0 deletions
diff --git a/hw/bsp/fomu/board.mk b/hw/bsp/fomu/board.mk
index b824b6979..403a7fb95 100644
--- a/hw/bsp/fomu/board.mk
+++ b/hw/bsp/fomu/board.mk
@@ -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
diff --git a/hw/bsp/msp_exp430f5529lp/board.mk b/hw/bsp/msp_exp430f5529lp/board.mk
index 13e3b7217..8e857eb66 100644
--- a/hw/bsp/msp_exp430f5529lp/board.mk
+++ b/hw/bsp/msp_exp430f5529lp/board.mk
@@ -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