From 1cd6237979dafaa5d1e7ec9502dc022015bbc795 Mon Sep 17 00:00:00 2001
From: Jo-Philipp Wich <jow@openwrt.org>
Date: Mon, 24 Sep 2012 18:26:48 +0000
Subject: [PATCH] version.mk: ensure that %S is always populated with a
 subtarget identifier, fallback to "generic" if no subtarget exists

SVN-Revision: 33534
---
 include/version.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/version.mk b/include/version.mk
index 4687dcc2e0..2bf709e56e 100644
--- a/include/version.mk
+++ b/include/version.mk
@@ -40,4 +40,4 @@ VERSION_SED:=$(SED) 's,%U,$(VERSION_REPO),g' \
 	-e 's,%d,\L$(subst $(space),_,$(VERSION_DIST)),g' \
 	-e 's,%R,$(REVISION),g' \
 	-e 's,%T,$(BOARD),g' \
-	-e 's,%S,$(BOARD)$(if $(SUBTARGET),/$(SUBTARGET)),g' \
+	-e 's,%S,$(BOARD)/$(if $(SUBTARGET),$(SUBTARGET),generic),g' \
-- 
2.30.2