Ledger Nano X - The secure hardware wallet
SHARE
TWEET

dieghen89

a guest Feb 3rd, 2010 91 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Maintainer: Diego Ferigo <dieghen89@gmail.com>
  2.  
  3. pkgname=kernel-netbook
  4. #pkgver=2.6.33_rc6
  5. _basekernel=2.6.32
  6. pkgver=$_basekernel.7
  7. #level="rc6"
  8. #_basekernel=2.6.33-${level}
  9. pkgrel=1
  10. _kernver="$pkgver-netbook"
  11. pkgdesc="Static kernel with KMS for netbooks with Intel Atom N270/N280/N450 such as eeepc with the add-on of external firmware - Old kernel26-901"
  12. arch=('i686')
  13. license=('GPL2')
  14. #url=('http://thedarkcornerofmymind.comxa.com/kernel26-901')
  15. groups=(eee)
  16. depends=('coreutils' 'module-init-tools')
  17. optdepends=('crda: for wireless regulatory domain support')
  18. install=${pkgname}.install
  19. patchname=patch-${pkgver}-1-ARCH
  20.  
  21. ######################
  22. #  external drivers  #
  23. ######################
  24.  
  25. #Broadcom-wl:
  26. broadcom_ver=5.10.91.9.3
  27. broadcom=hybrid-portsrc-x86_32-v${broadcom_ver}
  28. #stk11xx:
  29. stk11xx_ver=2.1.0
  30. stk11xx=stk11xx-$stk11xx_ver
  31.  
  32. ############### Sources
  33. source=(ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-${_basekernel}.tar.bz2
  34.         ftp://ftp.archlinux.org/other/kernel26/${patchname}.bz2
  35.         http://www.broadcom.com/docs/linux_sta/${broadcom}.tar.gz
  36.         http://switch.dl.sourceforge.net/sourceforge/syntekdriver/stk11xx-$stk11xx_ver.tar.gz
  37.         config
  38.         wl_linux.patch)
  39.  
  40. build() {
  41. #Section Kernel
  42.   cd ${srcdir}/linux-$_basekernel
  43.   #patching the kernel with arch patchset
  44.   patch -Np1 -i ${srcdir}/$patchname
  45.  
  46.   # copy config
  47.   cp ../config ./.config
  48.  
  49.   make prepare
  50.  
  51.   #make defconfig
  52.   # configure kernel    
  53.   # use menuconfig, if you want to change the configuration
  54.   make menuconfig
  55.   #make gconfig
  56.   #yes "" | make config
  57.  
  58.   # build kernel
  59.   make || return 1
  60.  
  61.   # install our modules
  62.   mkdir -p $pkgdir/{lib/modules,boot}
  63.   make INSTALL_MOD_PATH=$pkgdir modules_install || return 1
  64.  
  65.   # remove the junk symlinks
  66.   rm -r $pkgdir/lib/modules/$_basekernel-netbook/{source,build}
  67.  
  68.   # install the kernel
  69.   install -D -m644 System.map $startdir/pkg/boot/System.map26-netbook
  70.   install -D -m644 arch/x86/boot/bzImage ${pkgdir}/boot/vmlinuz26-netbook
  71.   install -D -m644 .config $startdir/pkg/boot/kconfig26-netbook
  72.  
  73.   # set correct depmod command for install
  74.   sed -i -e "s/KERNEL_VERSION=.*/KERNEL_VERSION=${_kernver}/g" $startdir/$pkgname.install
  75.  
  76. #Section: Broadcom-wl
  77.   cd ${srcdir}/
  78.   sed -i '190i\MODULE_LICENSE("Mixed/Proprietary"); \n' ${srcdir}/src/wl/sys/wl_linux.c
  79.   patch ${srcdir}/src/wl/sys/wl_linux.c wl_linux.patch || return 1
  80.   #KBUILD_NOPEDANTIC=1 make -C /lib/modules/$(uname -r)/build M=`pwd`
  81.   KBUILD_NOPEDANTIC=1 make -C ${srcdir}/linux-$_basekernel M=`pwd`
  82.   install -D -m 755 wl.ko ${pkgdir}/lib/modules/${_basekernel}-netbook/kernel/drivers/net/wireless/wl.ko || return 1
  83.  
  84. #Section: stk11xx
  85.   cd $srcdir/stk11xx-$stk11xx_ver || return 1
  86.   make -C $srcdir/linux-${_basekernel}/ SUBDIRS=$srcdir/stk11xx-2.1.0 modules || return 1
  87.   install -D -m 644 $srcdir/stk11xx-$stk11xx_ver/stk11xx.ko $pkgdir/lib/modules/${_basekernel}-netbook/kernel/drivers/media/video
  88.   install -D -m 644 $srcdir/stk11xx-$stk11xx_ver/README $startdir/pkg/usr/share/stk11xx
  89. }
  90.  
  91. md5sums=('260551284ac224c3a43c4adac7df4879'
  92.          'b746d6d8f3609f9dfb73803ea22d7983'
  93.          '15890e1f9afe844adf2e251d390e28ac'
  94.          '654a8f089e4cef3eac9d343b112fa7e3'
  95.          '1102479017529a0cd1f712fc3364f8ae'
  96.          '5a6b0b7c94cdead52700ac676f033bfd')
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top