sdk: add base repository fallback
authorjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Tue, 12 Jan 2016 09:25:45 +0000 (09:25 +0000)
committerjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Tue, 12 Jan 2016 09:25:45 +0000 (09:25 +0000)
commit098488b60fbe67212d92d51fa352b9563be44ca2
tree249abff95a4ee6b9ea66ec37e251be4327008ac3
parent8940a38646143014097b6242d0a1c314f6cf066e
sdk: add base repository fallback

When the build system cannot infer its own repository url then let it fall
back to http://git.openwrt.org/ for the base feed.

The path to openwrt.git is guessed from the VERSION_NUMBER variable:

 "unknown" or "r12345" -> http://git.openwrt.org/openwrt.git
 "15.05.1"             -> http://git.openwrt.org/15.05/openwrt.git

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48212 3c298f89-4303-0410-b956-a3cf2f4a3e73
target/sdk/Makefile