Skip to content

Commit

Permalink
Removed -DBARE_METAL
Browse files Browse the repository at this point in the history
  • Loading branch information
vanvught committed Feb 26, 2024
1 parent 8b5cfe2 commit 08810ab
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion firmware-template-gd32/Board.mk
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ endif

ifeq ($(strip $(BOARD)),BOARD_GD32F107RC)
MCU=GD32F107RC
DEFINES+=-DCONFIG_STORE_USE_SPI
DEFINES+=-DCONFIG_STORE_USE_ROM
endif

ifeq ($(strip $(BOARD)),BOARD_GD32F207RG)
Expand Down Expand Up @@ -68,10 +68,12 @@ endif

ifeq ($(strip $(BOARD)),BOARD_GD32F470Z_EVAL)
MCU=GD32F470ZK
DEFINES+=-DCONFIG_STORE_USE_RAM
endif

ifeq ($(strip $(BOARD)),BOARD_GD32H759I_EVAL)
MCU=GD32H759IM
DEFINES+=-DCONFIG_STORE_USE_ROM
endif

ifeq ($(strip $(BOARD)),BOARD_BW_OPIDMX4)
Expand Down
2 changes: 1 addition & 1 deletion firmware-template-gd32/Rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ $(info $$DEFINES [${DEFINES}])
$(info $$LIBS [${LIBS}])
$(info $$LIBDEP [${LIBDEP}])

COPS=-DBARE_METAL -DGD32 -D$(FAMILY_UCA) -D$(LINE_UC) -D$(MCU) -D$(BOARD)
COPS=-DGD32 -D$(FAMILY_UCA) -D$(LINE_UC) -D$(MCU) -D$(BOARD)
COPS+=$(strip $(DEFINES) $(MAKE_FLAGS) $(INCLUDES) $(LIBINCDIRS))
COPS+=$(strip $(ARMOPS) $(CMSISOPS))
COPS+=-Os -nostartfiles -ffreestanding -nostdlib
Expand Down
2 changes: 1 addition & 1 deletion firmware-template-gd32/lib/Rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ INCLUDES+=-I../lib-configstore/include -I../lib-device/include -I../lib-display/
$(info $$DEFINES [${DEFINES}])
$(info $$MAKE_FLAGS [${MAKE_FLAGS}])

COPS=-DBARE_METAL -DGD32 -D$(FAMILY_UCA) -D$(LINE_UC) -D$(MCU) -D$(BOARD)
COPS=-DGD32 -D$(FAMILY_UCA) -D$(LINE_UC) -D$(MCU) -D$(BOARD)
COPS+=$(strip $(DEFINES)) $(MAKE_FLAGS) $(INCLUDES)
COPS+=$(strip $(ARMOPS) $(CMSISOPS))
COPS+=-Os -nostartfiles -ffreestanding -nostdlib
Expand Down

0 comments on commit 08810ab

Please sign in to comment.