Commit 0023fe18 authored by Seblu's avatar Seblu
Browse files

up


git-svn-id: https://seblu.net/s/archpkg@80 02741741-5192-46b8-8916-7152b19231d9
parent 00914cbe
Loading
Loading
Loading
Loading
+10 −7
Original line number Diff line number Diff line
# Maintainer: Sebastien Luttringer <seblu@seblu.net>

kernelver=3.0-rc2
kernelver=3.0-rc5
kernelsuf=-rwolf

pkgname=kernel-${kernelver}${kernelsuf}
@@ -66,13 +66,13 @@ build() {
  # Preapre compilation
  msg "Preparing compilation"
  yes "" | make config &>/dev/null
  nice make prepare &>/dev/null
  nice -n 19 make prepare &>/dev/null
  cpucount=$(grep -c processor /proc/cpuinfo 2>/dev/null)
  jc=$((${cpucount:-1}))

  # Compiling sources
  msg "Compiling (jobs=$jc)"
  nice make -j $jc bzImage modules
  nice -n 19 make -j $jc bzImage modules
}

package() {
@@ -93,8 +93,8 @@ package() {
  make INSTALL_MOD_PATH=${pkgdir} modules_install

  # install kernel and map
  cp arch/x86/boot/bzImage ${pkgdir}/boot/vmlinuz-${_compver}
  cp System.map ${pkgdir}/boot/System.map-${_compver}
  cp arch/x86/boot/bzImage ${pkgdir}/boot/vmlinuz${_compver}
  cp System.map ${pkgdir}/boot/System.map${_compver}

  # install mkinitcpio preset file for kernel
  mkdir -p "${pkgdir}/etc/mkinitcpio.d/"
@@ -105,11 +105,11 @@ PRESETS=('default' 'fallback')

#default_config="/etc/mkinitcpio.conf"
default_kver="${_compver}"
default_image="/boot/initrd-${_compver}"
default_image="/boot/kernel${_compver}.img"
#default_options=""

fallback_kver="${_compver}"
fallback_image="/boot/initrd-${_compver}-fallback"
fallback_image="/boot/kernel${_compver}-fallback.img"
fallback_options="-S autodetect"
EOF

@@ -138,6 +138,9 @@ EOF
  # check rights
  chown -R root.root ${pkgdir}/usr/src/linux-${_compver}
  chmod -R u=rwX,go=rX $pkgdir/usr/src/linux-$_compver

  # gzip -9 all modules to safe 100MB of space
  find "$pkgdir" -name '*.ko' -exec gzip -9 {} \;
}

copy_headers() {
+7 −7
Original line number Diff line number Diff line
# arg 1:  the new package version
# arg 2:  the old package version

pkgname='kernel-3.0-rc2-rwolf'
pkgname='kernel-3.0-rc5-rwolf'

post_install () {
  source /usr/share/$pkgname/info
@@ -11,9 +11,9 @@ post_install () {
  /sbin/mkinitcpio -p $pkgname
  echo "==> Updating grub2 configuration..."
  /sbin/grub-mkconfig -o /boot/grub/grub.cfg
  if test -e /usr/bin/VirtualBox; then
    compile_vbox_modules
  fi
  #if test -e /usr/bin/VirtualBox; then
  #  compile_vbox_modules
  #fi
}

pre_upgrade() {
@@ -28,8 +28,8 @@ pre_remove() {
  test -e "/usr/share/$pkgname/info" || return
  source /usr/share/$pkgname/info
  echo "==> Cleaning initcpio..."
  rm -vf /boot/kernel-${KERNEL_BUILD}.img
  rm -vf /boot/kernel-${KERNEL_BUILD}-fallback.img
  rm -vf /boot/kernel${KERNEL_BUILD}.img
  rm -vf /boot/kernel${KERNEL_BUILD}-fallback.img
  echo "==> Cleaning kernel modules"
  rm -rf /lib/modules/${KERNEL_BUILD}
}