cookutils rev 451
cross: dont extract the kernel each time
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Thu May 31 15:31:38 2012 +0200 (2012-05-31) |
parents | 3328c900f6cd |
children | baf7550d0e44 |
files | cross |
line diff
1.1 --- a/cross Thu May 31 15:28:32 2012 +0200 1.2 +++ b/cross Thu May 31 15:31:38 2012 +0200 1.3 @@ -111,8 +111,11 @@ 1.4 # 2. Kernel headers could use CROSS_COMPILE but gcc is not yet build. 1.5 linux_headers() { 1.6 init_compile 1.7 - echo "Extracting: $LINUX_TARBALL" 1.8 - tar xjf $SRC/$LINUX_TARBALL 1.9 + if [ ! -d "linux-$LINUX_VERSION" ]; then 1.10 + echo "Extracting: $LINUX_TARBALL" 1.11 + tar xjf $SRC/$LINUX_TARBALL 1.12 + fi 1.13 + rm -rf linux-headers 1.14 cd linux-$LINUX_VERSION 1.15 make mrproper 1.16 make ARCH=$ARCH headers_check