1
0
Kaynağa Gözat

rpi: use stable branch

The github kernel repository is extremely big (over 1GB compressed)
so use a branch to allow swallow cloning. Reducing download time
a lot. We need to bump kernel version regulary now, when the branch
is changing.
Waldemar Brodkorb 7 yıl önce
ebeveyn
işleme
8dc18bb33c
2 değiştirilmiş dosya ile 6 ekleme ve 2 silme
  1. 3 0
      mk/fetch.mk
  2. 3 2
      target/config/Config.in.kernelversion

+ 3 - 0
mk/fetch.mk

@@ -69,14 +69,17 @@ $(1):
 		  case "$${PKG_GIT}" in \
 		    tag|branch) \
 			git clone --depth 1 --branch $${PKG_VERSION} $${PKG_SITES} $${PKG_NAME}-$${PKG_VERSION} $(DL_TRACE); \
+			if [ $$? -ne 0 ]; then echo "git clone error"; exit 1; fi; \
 			;; \
 		    hash) \
 			git clone $${PKG_SITES} $${PKG_NAME}-$${PKG_VERSION} $(DL_TRACE); \
+			if [ $$? -ne 0 ]; then echo "git clone error"; exit 1; fi; \
 			(cd $${PKG_NAME}-$${PKG_VERSION}; git checkout $${PKG_VERSION}) $(DL_TRACE); \
 			;; \
 		  esac ;\
 		else \
 		  git clone --depth 1 $${PKG_SITES} $${PKG_NAME}-$${PKG_VERSION} $(DL_TRACE); \
+		  if [ $$? -ne 0 ]; then echo "git clone error"; exit 1; fi; \
 		fi; \
 		tar cJf $${PKG_NAME}-$${PKG_VERSION}.tar.xz $${PKG_NAME}-$${PKG_VERSION}; \
 		touch $$$${filename}.nohash; \

+ 3 - 2
target/config/Config.in.kernelversion

@@ -212,8 +212,8 @@ config ADK_TARGET_KERNEL_GIT_REPO_NAME
 config ADK_TARGET_KERNEL_GIT
 	string "git version"
 	depends on ADK_TARGET_KERNEL_VERSION_GIT
+	default "rpi-4.4.y" if ADK_TARGET_BOARD_BCM28XX
 	default "6a2f2e4198eaff63ee75f6085ce9f966c47b4441" if ADK_TARGET_ARCH_LM32
-	default "3b68e3a8223134801f0acccc70bef3388eab1e91" if ADK_TARGET_BOARD_BCM28XX
 	default "1d008423ab5fd12459f53342e4d17585ec63cfe4" if ADK_TARGET_SYSTEM_KINETIS_K70
 	default "902739f3353150ac9eb69ad995098f3079d862a3" if ADK_TARGET_SYSTEM_SOLIDRUN_CLEARFOG
 	default "27e61f66e7f03cc6199ddc2787340a01b80c6ed6" if ADK_TARGET_SYSTEM_SOLIDRUN_IMX6
@@ -222,7 +222,7 @@ config ADK_TARGET_KERNEL_GIT
 config ADK_TARGET_KERNEL_GIT_VER
 	string "kernel version"
 	depends on ADK_TARGET_KERNEL_VERSION_GIT
-	default "4.4.34-1-v7+" if ADK_TARGET_BOARD_BCM28XX
+	default "4.4.41-1-v7+" if ADK_TARGET_BOARD_BCM28XX
 	default "3.14.79-1+" if ADK_TARGET_SYSTEM_SOLIDRUN_IMX6
 	default "4.4.37-1+" if ADK_TARGET_SYSTEM_BEAGLEBONE_BLACK
 	default "2.6.33" if ADK_TARGET_SYSTEM_KINETIS_K70
@@ -230,4 +230,5 @@ config ADK_TARGET_KERNEL_GIT_VER
 config ADK_TARGET_KERNEL_GIT_TYPE
 	string
 	depends on ADK_TARGET_KERNEL_VERSION_GIT
+	default "branch" if ADK_TARGET_BOARD_BCM28XX
 	default "hash"