From f92fe1e23e3e8689b6f001c5232a5960acdb3b7f Mon Sep 17 00:00:00 2001 From: Jean Gressmann Date: Tue, 6 Oct 2020 17:39:36 +0200 Subject: [PATCH] D5035-01: more natural Makefile variable use --- hw/bsp/d5035-01/board.mk | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/hw/bsp/d5035-01/board.mk b/hw/bsp/d5035-01/board.mk index 20ce0fac3..ac2146475 100644 --- a/hw/bsp/d5035-01/board.mk +++ b/hw/bsp/d5035-01/board.mk @@ -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