CC: sdk: add base repository fallback
authorJo-Philipp Wich <jow@openwrt.org>
Tue, 12 Jan 2016 09:27:30 +0000 (09:27 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Tue, 12 Jan 2016 09:27:30 +0000 (09:27 +0000)
commit1d08d5cf7a8d80d92801859b3bed2943e6ed1925
tree0485bd9bf494b06cf0acc9dca1e1412bfd86a333
parent4bfa2e32d7986f134fd0725fe6a2ed0876801b85
CC: 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>
Backport of r48212

git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@48213 3c298f89-4303-0410-b956-a3cf2f4a3e73
target/sdk/Makefile