aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2019-12-06 20:07:06 +0100
committerHarald Welte <laforge@osmocom.org>2019-12-06 20:08:33 +0100
commit87940f1f83a24683360e723477be88d9a50c723c (patch)
treecb573eac22f0e9d326f372130f17796044b45f1b
parent36f888f8b586c06400b8a4b816862f00efb2e111 (diff)
Build only 'reasonable' combinations of APP/MEMORY0.7.0
There's no point in building a DFU loeader that is to be flashed via DFU - nor is there really any need for regular cardem/trace that can be flahsed directly without DFU. If anyone needs those, they can still build them - but let's not confuse the average other user. Change-Id: I0abe86c6a942a59e5b2417d0532dffae654d7a18 Closes: OS#4087
-rw-r--r--firmware/Makefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/firmware/Makefile b/firmware/Makefile
index a684424..79e9a31 100644
--- a/firmware/Makefile
+++ b/firmware/Makefile
@@ -37,12 +37,14 @@ GIT_VERSION=$(shell $(TOP)/git-version-gen $(TOP)/.tarvers)
# (can be overriden by adding CHIP=chip and BOARD=board to the command-line)
CHIP ?= sam3s4
BOARD ?= qmod
+APP ?= dfu
# Defines which are the available memory targets for the SAM3S-EK board.
-MEMORIES ?= flash dfu
-
-# Output file basename
-APP ?= dfu
+ifeq ($(APP), dfu)
+MEMORIES ?= flash
+else
+MEMORIES ?= dfu
+endif
# Output directories and filename
OUTPUT = $(BOARD)-$(APP)