Skip to content

Commit 2418f41

Browse files
committed
makefile: fix issues with openamp strict
1 parent bc085f0 commit 2418f41

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,13 @@ SIZE = $(CROSS_COMPILE)size
2222

2323
LINKER_SCRIPT = linker/STM32H747AIIX_FLASH.ld
2424

25-
CFLAGS = -O2 -Wall -Werror -pedantic -mcpu=cortex-m7 -mfpu=fpv5-d16 -mfloat-abi=hard -mthumb -std=gnu11 -g3 -ffunction-sections -fdata-sections -fstack-usage
25+
CFLAGS = -O2 -Wall -Werror -mcpu=cortex-m7 -mfpu=fpv5-d16 -mfloat-abi=hard -mthumb -std=gnu11 -g3 -ffunction-sections -fdata-sections -fstack-usage
2626
CXXFLAGS = -O2 -Wall -Werror -pedantic -mcpu=cortex-m7 -mfpu=fpv5-d16 -mfloat-abi=hard -mthumb -std=c++11 -g3 -ffunction-sections -fdata-sections -fstack-usage
2727
ASFLAGS = -O2 -mcpu=cortex-m7 -mfpu=fpv5-d16 -mfloat-abi=hard -mthumb -c -x assembler-with-cpp -g3
2828
LDFLAGS = --specs=nosys.specs -Wl,--gc-sections -static --specs=nano.specs -T$(LINKER_SCRIPT) -Wl,--start-group -lc -lm -Wl,--end-group
2929

30+
CFLAGS += -Wno-variadic-macros -Wno-discarded-qualifiers
31+
3032
TAG_COMMIT := $(shell git rev-list --abbrev-commit --tags --max-count=1)
3133
TAG := $(shell git describe --abbrev=0 --tags ${TAG_COMMIT} 2>/dev/null || true)
3234
COMMIT := $(shell git rev-parse --short HEAD)
@@ -48,7 +50,7 @@ DEFINES = \
4850
-DSTM32H747xx \
4951
-DVECT_TAB_SRAM \
5052
-DMETAL_INTERNAL \
51-
-DVIRTIO_MASTER_ONLY \
53+
-DVIRTIO_DRIVER_ONLY \
5254
-DNO_ATOMIC_64_SUPPORT \
5355
-DMETAL_MAX_DEVICE_REGIONS=2 \
5456
-DRPMSG_BUFFER_SIZE=2000 \

0 commit comments

Comments
 (0)