wok-current rev 17373
linux64-module-headers: fix build link
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Nov 21 15:15:22 2014 +0100 (2014-11-21) |
parents | 86a3933bfd29 |
children | ffd943c12a7f |
files | linux-module-headers/receipt linux64-module-headers/receipt linux64/stuff/modules64.list |
line diff
1.1 --- a/linux-module-headers/receipt Fri Nov 21 14:49:30 2014 +0100 1.2 +++ b/linux-module-headers/receipt Fri Nov 21 15:15:22 2014 +0100 1.3 @@ -14,113 +14,9 @@ 1.4 # Rules to gen a SliTaz package suitable for Tazpkg. 1.5 genpkg_rules() 1.6 { 1.7 - local path 1.8 - AUFSVER=$(grep ^VERSION= $WOK/aufs/receipt | cut -d "=" -f2 | sed -e 's/"//g') 1.9 - AUFSDIR="$WOK/$WANTED/aufs-${AUFSVER}" 1.10 - path=usr/src/linux-$KVERSION 1.11 - mkdir -p $fs/lib/modules/$KVERSION 1.12 - ln -sf /$path $fs/lib/modules/$KVERSION/build 1.13 - install -D -m644 $src/Makefile \ 1.14 - $fs/$path/Makefile 1.15 - install -D -m644 $src/kernel/Makefile \ 1.16 - $fs/$path/kernel/Makefile 1.17 - install -D -m644 $src/.config \ 1.18 - $fs/$path/.config 1.19 - mkdir -p $fs/$path/include 1.20 - 1.21 - for i in acpi asm-generic config crypto drm generated linux math-emu \ 1.22 - media net pcmcia scsi sound trace video xen; do 1.23 - cp -a $src/include/$i $fs/$path/include/ 1.24 - done 1.25 - 1.26 - # copy arch includes for external modules 1.27 - mkdir -p $fs/$path/arch/x86 1.28 - cp -a $src/arch/x86/include $fs/$path/arch/x86/ 1.29 - 1.30 - # copy files necessary for later builds, like nvidia and vmware 1.31 - cp -a $src/Module.symvers-modules $fs/$path/Module.symvers 1.32 - cp -a $src/scripts $fs/$path 1.33 - # fix permissions on scripts dir 1.34 - chmod og-w -R $fs/$path/scripts 1.35 - mkdir -p $fs/$path/.tmp_versions 1.36 - 1.37 - mkdir -p $fs/$path/arch/x86/kernel 1.38 - cp -a $src/arch/x86/Makefile $fs/$path/arch/x86/ 1.39 - cp -a $src/arch/x86/Makefile_32.cpu $fs/$path/arch/x86/ 1.40 - cp -a $src/arch/x86/kernel/asm-offsets.s $fs/$path/arch/x86/kernel/ 1.41 - 1.42 - # add headers for lirc package 1.43 - mkdir -p $fs/$path/drivers/media/video 1.44 - cp -a $src/drivers/media/video/*.h $fs/$path/drivers/media/video/ 1.45 - 1.46 - for i in bt8xx cpia2 cx25840 cx88 em28xx et61x251 pwc saa7134 sn9c102 ; do 1.47 - mkdir -p $fs/$path/drivers/media/video/$i 1.48 - cp -a $src/drivers/media/video/$i/*.h $fs/$path/drivers/media/video/$i 1.49 - done 1.50 - 1.51 - # add docbook makefile 1.52 - install -D -m644 $src/Documentation/DocBook/Makefile \ 1.53 - $fs/$path/Documentation/DocBook/Makefile 1.54 - 1.55 - # add dm headers 1.56 - mkdir -p $fs/$path/drivers/md 1.57 - cp -a $src/drivers/md/*.h $fs/$path/drivers/md 1.58 - 1.59 - # add inotify.h 1.60 - mkdir -p $fs/$path/include/linux 1.61 - cp -a $src/include/linux/inotify.h $fs/$path/include/linux/ 1.62 - 1.63 - # add wireless headers 1.64 - mkdir -p $fs/$path/net/mac80211/ 1.65 - cp -a $src/net/mac80211/*.h $fs/$path/net/mac80211/ 1.66 - 1.67 - # add dvb headers for external modules 1.68 - # in reference to: 1.69 - # http://bugs.archlinux.org/task/9912 1.70 - mkdir -p $fs/$path/drivers/media/dvb/dvb-core 1.71 - cp -a $src/drivers/media/dvb/dvb-core/*.h $fs/$path/drivers/media/dvb/dvb-core/ 1.72 - 1.73 - # add dvb headers for external modules 1.74 - # in reference to: 1.75 - # http://bugs.archlinux.org/task/11194 1.76 - if [ -d $src/include/config/dvb/ ]; then 1.77 - mkdir -p $fs/$path/include/config/dvb/ 1.78 - cp $src/include/config/dvb/*.h $fs/$path/include/config/dvb/ 1.79 - fi 1.80 - 1.81 - # add dvb headers for http://mcentral.de/hg/~mrec/em28xx-new 1.82 - # in reference to: 1.83 - # http://bugs.archlinux.org/task/13146 1.84 - mkdir -p $fs/$path/drivers/media/dvb/frontends/ 1.85 - cp -a $src/drivers/media/dvb/frontends/lgdt330x.h $fs/$path/drivers/media/dvb/frontends/ 1.86 - cp -a $src/drivers/media/video/msp3400-driver.h $fs/$path/drivers/media/dvb/frontends/ 1.87 - 1.88 - # add dvb headers 1.89 - # in reference to: 1.90 - # http://bugs.archlinux.org/task/20402 1.91 - mkdir -p $fs/$path/drivers/media/dvb/dvb-usb 1.92 - cp -a $src/drivers/media/dvb/dvb-usb/*.h $fs/$path/drivers/media/dvb/dvb-usb/ 1.93 - mkdir -p $fs/$path/drivers/media/dvb/frontends 1.94 - cp -a $src/drivers/media/dvb/frontends/*.h $fs/$path/drivers/media/dvb/frontends/ 1.95 - mkdir -p $fs/$path/drivers/media/common/tuners 1.96 - cp -a $src/drivers/media/common/tuners/*.h $fs/$path/drivers/media/common/tuners/ 1.97 - 1.98 - # add xfs and shmem for aufs building 1.99 - mkdir -p $fs/$path/fs/xfs 1.100 - mkdir -p $fs/$path/mm 1.101 - cp -a $src/fs/xfs/xfs_sb.h $fs/$path/fs/xfs/xfs_sb.h 1.102 - 1.103 - # copy in Kconfig files 1.104 - for i in $(find . -name "Kconfig*"); do 1.105 - mkdir -p $fs/$path/$(echo $i | sed 's|/Kconfig.*||') 1.106 - cp -a $src/$i $fs/$path/$i 1.107 - done 1.108 - 1.109 - chown -R root.root $fs/$path 1.110 - find $fs/$path -type d -exec chmod 755 {} \; 1.111 - # remove unneeded architectures 1.112 - rm -rf $fs/$path/arch/{alpha,arm,arm26,avr32,blackfin,cris,frv,h8300,ia64,m32r,m68k,m68knommu,mips,microblaze,mn10300,parisc,powerpc,ppc,s390,sh,sh64,sparc,sparc64,um,v850,xtensa} 1.113 - 1.114 + mkdir -p $fs/lib/modules/$KVERSION $fs/usr 1.115 + ln -sf /usr/src/linux-$KVERSION $fs/lib/modules/$KVERSION/build 1.116 + cp -a $install/usr/src $fs/usr 1.117 } 1.118 1.119 pre_remove() {
2.1 --- a/linux64-module-headers/receipt Fri Nov 21 14:49:30 2014 +0100 2.2 +++ b/linux64-module-headers/receipt Fri Nov 21 15:15:22 2014 +0100 2.3 @@ -14,9 +14,8 @@ 2.4 # Rules to gen a SliTaz package suitable for Tazpkg. 2.5 genpkg_rules() 2.6 { 2.7 - local path 2.8 mkdir -p $fs/lib/modules/$KVERSION $fs/usr 2.9 - ln -sf /$path $fs/lib/modules/$KVERSION/build 2.10 + ln -sf /usr/src/linux-$KVERSION $fs/lib/modules/$KVERSION/build 2.11 cp -a $install/linux64/usr/src $fs/usr 2.12 } 2.13
3.1 --- a/linux64/stuff/modules64.list Fri Nov 21 14:49:30 2014 +0100 3.2 +++ b/linux64/stuff/modules64.list Fri Nov 21 15:15:22 2014 +0100 3.3 @@ -1,6 +1,7 @@ 3.4 drivers/acpi/video.ko.xz 3.5 drivers/acpi/button.ko.xz 3.6 arch/x86/kernel/cpuid.ko.xz 3.7 +drivers/char/virtio_console.ko.xz 3.8 drivers/char/i8k.ko.xz 3.9 drivers/char/lp.ko.xz 3.10 drivers/char/ppdev.ko.xz