Makefile: Propagate CFLAGS from env (#1042)

Propagate the CFLAGS specified in the environment executing
the Makefile for DPI compilation. The current CFLAGS are
extended by the CFLAGS from the environment.
This commit is contained in:
Nils Wistoff 2023-02-07 23:33:26 +01:00 committed by GitHub
parent 107d29d619
commit cfef3e9c12
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -120,7 +120,7 @@ endif
dpi_hdr := $(wildcard corev_apu/tb/dpi/*.h)
dpi_hdr := $(addprefix $(root-dir), $(dpi_hdr))
CFLAGS := -I$(QUESTASIM_HOME)/include \
CFLAGS += -I$(QUESTASIM_HOME)/include \
-I$(VCS_HOME)/include \
-I$(RISCV)/include \
-I$(SPIKE_ROOT)/include \