CC: sdk: add base repository fallback
authorjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Tue, 12 Jan 2016 09:27:30 +0000 (09:27 +0000)
committerjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Tue, 12 Jan 2016 09:27:30 +0000 (09:27 +0000)
commite4200df6b4949c151bfa7860018f20d0a806e64e
tree0485bd9bf494b06cf0acc9dca1e1412bfd86a333
parentac2d3bc7d9c5ccbb11b6a6d9490f5484bb85a04b
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