D5035-01: more natural Makefile variable use

This commit is contained in:
Jean Gressmann 2020-10-06 17:39:36 +02:00
parent a2379060b6
commit f92fe1e23e
1 changed files with 3 additions and 5 deletions

View File

@ -13,11 +13,9 @@ CFLAGS += \
-DD5035_01=1 \
-DBOARD_NAME="\"D5035-01\""
ifdef HWREV
CFLAGS += -DHWREV=$(HWREV)
else
CFLAGS += -DHWREV=1
endif
HWREV ?= 1
CFLAGS += -DHWREV=$(HWREV)
# All source paths should be relative to the top level.
LD_FILE = hw/bsp/$(BOARD)/same51j19a_flash.ld