From fc359cd9f470679d48df4d49d279cda77bd99c96 Mon Sep 17 00:00:00 2001 From: Oleg Hahm Date: Wed, 8 Jan 2014 16:46:16 +0100 Subject: [PATCH 1/2] strip BOARD variable --- Makefile.include | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile.include b/Makefile.include index cee04a2a77..e4ff6b2efd 100644 --- a/Makefile.include +++ b/Makefile.include @@ -26,6 +26,8 @@ else endif export AD +BOARD := $(strip $(BOARD)) + # mandatory includes! include $(RIOTBASE)/Makefile.modules include $(RIOTBOARD)/$(BOARD)/Makefile.include From 1a6ee4da2549605c61f71a55addf6b9f5abae8bb Mon Sep 17 00:00:00 2001 From: Oleg Hahm Date: Wed, 8 Jan 2014 16:46:46 +0100 Subject: [PATCH 2/2] cosmetics in dist Makefile --- dist/Makefile | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/dist/Makefile b/dist/Makefile index 8bf05daf14..4a776ede4c 100644 --- a/dist/Makefile +++ b/dist/Makefile @@ -7,15 +7,13 @@ #### # name of your project -export PROJECT =foobar +export PROJECT = foobar # for easy switching of boards -ifeq ($(strip $(BOARD)),) - export BOARD = native -endif +export BOARD ?= native # this has to be the absolute path of the RIOT-base dir -export RIOTBASE =$(CURDIR)/../../RIOT +export RIOTBASE = $(CURDIR)/../../RIOT # uncomment these lines if you want to use platform support from external # repositories