aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoseph C. Lehner <joseph.c.lehner@gmail.com>2017-03-03 15:37:01 +0100
committerMathias Kresin <dev@kresin.me>2017-03-12 09:28:19 +0100
commit2c2fc50d06cf18f7f5120a201e101aaa42f070c1 (patch)
tree93857151916517fa6422fce6ef9b9812fcca3260
parent38bee61dab029a7608088f64da71c19cfc8cf267 (diff)
downloadupstream-2c2fc50d06cf18f7f5120a201e101aaa42f070c1.tar.gz
upstream-2c2fc50d06cf18f7f5120a201e101aaa42f070c1.tar.bz2
upstream-2c2fc50d06cf18f7f5120a201e101aaa42f070c1.zip
build: make NETGEAR_REGION optional in netgear-chk
This patch makes specifying NETGEAR_REGION optional, in which case mkchkimage will default to region 1 (WW). Signed-off-by: Joseph C. Lehner <joseph.c.lehner@gmail.com>
-rw-r--r--include/image-commands.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/image-commands.mk b/include/image-commands.mk
index c513f19d3a..c1d89825a3 100644
--- a/include/image-commands.mk
+++ b/include/image-commands.mk
@@ -49,7 +49,7 @@ define Build/netgear-chk
-o $@.new \
-k $@ \
-b $(NETGEAR_BOARD_ID) \
- -r $(NETGEAR_REGION)
+ $(if $(NETGEAR_REGION),-r $(NETGEAR_REGION),)
mv $@.new $@
endef