Browse Source

nds32: do not use kernel mirrors

Waldemar Brodkorb 6 years ago
parent
commit
32a5769583
3 changed files with 14 additions and 0 deletions
  1. 7 0
      mk/mirrors.mk
  2. 6 0
      target/config/Config.in.kernelversion
  3. 1 0
      target/nds32/systems/andes-ag101p

+ 7 - 0
mk/mirrors.mk

@@ -10,10 +10,17 @@ MASTER_SITE_MIRBSD?=	\
 	http://www.mirbsd.org/MirOS/distfiles/ \
 	http://pub.allbsd.org/MirOS/distfiles/ \
 
+ifeq ($(ADK_TARGET_KERNEL_NO_MIRROR),)
 MASTER_SITE_KERNEL?=	\
 	http://www.kernel.org/pub/linux/ \
 	ftp://www.kernel.org/pub/linux/ \
 
+else
+MASTER_SITE_KERNEL?=	\
+	http://distfiles.openadk.org/ \
+
+endif
+
 MASTER_SITE_GNU?=	\
 	http://ftp.gnu.org/gnu/ \
 	ftp://ftp.gnu.org/gnu/ \

+ 6 - 0
target/config/Config.in.kernelversion

@@ -241,3 +241,9 @@ config ADK_TARGET_KERNEL_GIT_TYPE
 	string
 	depends on ADK_TARGET_KERNEL_VERSION_GIT
 	default "hash"
+
+config ADK_TARGET_KERNEL_NO_MIRROR
+	bool
+	help
+	  Select this if the kernel source is only available
+	  on OpenADK webserver.

+ 1 - 0
target/nds32/systems/andes-ag101p

@@ -5,5 +5,6 @@ config ADK_TARGET_SYSTEM_ANDES_AG101P
 	select ADK_TARGET_WITH_NET
 	select ADK_TARGET_WITH_NETDEVICE
 	select ADK_TARGET_KERNEL_IMAGE
+	select ADK_TARGET_KERNEL_NO_MIRROR
 	help
 	  Andes Technology AG101P (ADP-XC7KFF676)