configs: switch to a wget download for kernels on github
authorYann E. MORIN <yann.morin.1998@free.fr>
Sun, 1 Apr 2018 09:04:55 +0000 (11:04 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Mon, 2 Apr 2018 09:35:48 +0000 (11:35 +0200)
commit7e7b9db61a8f35eef9b6fee3e502628432ba0a5a
treec15ba840bda8efa8587911aa291308f096b7f345
parentf66bd4805d34e898781e5aca6e7d429cbc2265d4
configs: switch to a wget download for kernels on github

The linux git trees on github can be huge, and takes a long time to
download, which is not very nice nor convenient for newcomers.

Switch them to using a wget, with the github macro.

A nice side effect of this conversion, is that we no longer need to wait
for the git clone to finish to notice that the ref is gone; doing a wget
will instantly fail in that case.

Mechanical patch, obtained by running (hang-on tight):

$ sed -r -i -e 's/BR2_LINUX_KERNEL_CUSTOM_GIT/BR2_LINUX_KERNEL_CUSTOM_TARBALL/; /BR2_LINUX_KERNEL_CUSTOM_REPO_URL/N; s:BR2_LINUX_KERNEL_CUSTOM_REPO_URL="https\://github.com/([^/]+)/(.+)"\nBR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="(.+)":BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="$(call github,\1,\2,\3)/linux-\3.tar.gz":; s/(call github.*)\.git/\1/;' $(grep -l 'BR2_LINUX_KERNEL_CUSTOM_REPO_URL="https://github.com' configs/*)

olimex_a20_olinuxino_lime_mali had a comment in between, so it was
manually fixed thereafter; that comment was also moved.

Except for socrates_cyclone5 which did not work previously (missing tag
in git tree?), all the affected defconfigs still download their sources.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
36 files changed:
configs/amarula_vyasa_rk3288_defconfig
configs/arcturus_ucls1012a_defconfig
configs/at91sam9x5ek_defconfig
configs/at91sam9x5ek_dev_defconfig
configs/at91sam9x5ek_mmc_defconfig
configs/at91sam9x5ek_mmc_dev_defconfig
configs/atmel_sama5d27_som1_ek_mmc_dev_defconfig
configs/atmel_sama5d2_xplained_mmc_defconfig
configs/atmel_sama5d2_xplained_mmc_dev_defconfig
configs/atmel_sama5d3_xplained_defconfig
configs/atmel_sama5d3_xplained_dev_defconfig
configs/atmel_sama5d3_xplained_mmc_defconfig
configs/atmel_sama5d3_xplained_mmc_dev_defconfig
configs/atmel_sama5d3xek_defconfig
configs/atmel_sama5d4_xplained_defconfig
configs/atmel_sama5d4_xplained_dev_defconfig
configs/atmel_sama5d4_xplained_mmc_defconfig
configs/atmel_sama5d4_xplained_mmc_dev_defconfig
configs/ci20_defconfig
configs/galileo_defconfig
configs/odroidc2_defconfig
configs/olimex_a20_olinuxino_lime_mali_defconfig
configs/raspberrypi0_defconfig
configs/raspberrypi0w_defconfig
configs/raspberrypi2_defconfig
configs/raspberrypi3_64_defconfig
configs/raspberrypi3_defconfig
configs/raspberrypi3_qt5we_defconfig
configs/raspberrypi_defconfig
configs/roseapplepi_defconfig
configs/socrates_cyclone5_defconfig
configs/solidrun_macchiatobin_marvell_defconfig
configs/ts7680_defconfig
configs/zynq_microzed_defconfig
configs/zynq_zc706_defconfig
configs/zynq_zed_defconfig