From: Joseph C. Lehner Date: Fri, 3 Mar 2017 14:37:01 +0000 (+0100) Subject: build: make NETGEAR_REGION optional in netgear-chk X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=2c2fc50d06cf18f7f5120a201e101aaa42f070c1;p=openwrt%2Fstaging%2Fflorian.git 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 --- 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