summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mk/mirrors.mk7
-rw-r--r--target/config/Config.in.kernelversion6
-rw-r--r--target/nds32/systems/andes-ag101p1
3 files changed, 14 insertions, 0 deletions
diff --git a/mk/mirrors.mk b/mk/mirrors.mk
index 64fb084b3..a3b36be0b 100644
--- a/mk/mirrors.mk
+++ b/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/ \
diff --git a/target/config/Config.in.kernelversion b/target/config/Config.in.kernelversion
index 7293d392b..6d54420ea 100644
--- a/target/config/Config.in.kernelversion
+++ b/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.
diff --git a/target/nds32/systems/andes-ag101p b/target/nds32/systems/andes-ag101p
index 31d35a479..8da29ae28 100644
--- a/target/nds32/systems/andes-ag101p
+++ b/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)