wok-next diff linux-libre-source/stuff/get-linux-source @ rev 12697

slitaz-tools: temp patch to tazinst removed
author Dominique Corbex <domcox@slitaz.org>
date Thu May 03 07:51:54 2012 +0200 (2012-05-03)
parents abe27fd0192d
children
line diff
     1.1 --- a/linux-libre-source/stuff/get-linux-source	Tue Mar 15 03:23:44 2011 +0100
     1.2 +++ b/linux-libre-source/stuff/get-linux-source	Thu May 03 07:51:54 2012 +0200
     1.3 @@ -6,6 +6,10 @@
     1.4  VERSION=XXX
     1.5  
     1.6  url=$(cat /usr/src/kernel-patches/slitaz/url)
     1.7 +for i in http://linux-kernel.uio.no/pub http://www.gtlib.gatech.edu/pub/kernel.org http://www.kernel.org/pub ; do
     1.8 +	busybox wget -s $url && break
     1.9 +	url=$(echo $url | sed "s|.*/linux/kernel|$i/linux/kernel|")
    1.10 +done
    1.11  
    1.12  if [ ! -d $SOURCES_REPOSITORY ]; then
    1.13  	mkdir -p $SOURCES_REPOSITORY
    1.14 @@ -40,6 +44,8 @@
    1.15  done < slitaz/patches
    1.16  [ ! -f System.map ] && cp slitaz/config .config &&
    1.17  make oldconfig && make modules_prepare
    1.18 +ln -s /usr/src/linux-$VERSION /lib/modules/$VERSION-slitaz/build
    1.19 +ln -s linux-$VERSION /usr/src/linux
    1.20  
    1.21  	cat <<EOT
    1.22  ----