From 7fff977c8853a9c30f0017f4e47dd838b529997d Mon Sep 17 00:00:00 2001 From: Bunnaroath Sou Date: Wed, 27 Mar 2019 18:05:49 -0700 Subject: Update Makefile to handle special ENV require for coremark, dhrystone --- Makefile | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index c19045b..e742c35 100644 --- a/Makefile +++ b/Makefile @@ -20,6 +20,13 @@ endif PROGRAM ?= hello TARGET ?= sifive-hifive1 +# Coremark require PORT_DIR set for different OS, freedom-metal for us! +ifeq ($(PROGRAM),coremark) +ifeq ($(PORT_DIR),) +PORT_DIR = freedom-metal +endif +endif + TARGET_ROOT ?= $(abspath .) PROGRAM_ROOT ?= $(abspath .) @@ -102,9 +109,9 @@ clean: ############################################################# # Enumerate BSPs and Programs # -# List all available boards and programs in a form that -# Freedom Studio knows how to parse. Do not change the -# format or fixed text of the output without consulting the +# List all available boards and programs in a form that +# Freedom Studio knows how to parse. Do not change the +# format or fixed text of the output without consulting the # Freedom Studio dev team. ############################################################# @@ -194,6 +201,9 @@ standalone: \ cp release.mk $ $ $> $> $ $ $> $> $