Magellan Linux

Diff of /branches/R11-stable/include/kernel.sminc

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 18720 by niro, Wed Aug 14 11:08:46 2013 UTC revision 22123 by niro, Fri Sep 5 06:47:42 2014 UTC
# Line 63  fi Line 63  fi
63  : ${PCAT="sys-kernel"}  : ${PCAT="sys-kernel"}
64  : ${HOMEPAGE="http://magellan-linux.de/"}  : ${HOMEPAGE="http://magellan-linux.de/"}
65  : ${TARBALLPVER="${PVER}"}  : ${TARBALLPVER="${PVER}"}
66  : ${SRCFILE="linux-${TARBALLPVER}.tar.bz2"}  : ${SRCFILE="linux-${TARBALLPVER}.tar.xz"}
67  : ${SRCDIR="${BUILDDIR}/linux-${PVER}-${BRANCH}-${PBUILD}"}  : ${SRCDIR="${BUILDDIR}/linux-${PVER}-${BRANCH}-${PBUILD}"}
68    
69  if [[ -z ${SRC_URI[*]} ]]  if [[ -z ${SRC_URI[*]} ]]
# Line 84  then Line 84  then
84   esac   esac
85  fi  fi
86    
87    case ${PNAME} in
88     *-lts) _upparam="longterm" ;;
89     *) _upparam="stable" ;;
90    esac
91    
92    UP2DATE="updatecmd http://www.kernel.org/ | grep -A1 -i '${_upparam}:' | sed 's/.*:\ \([0-9]\.[0-9].*\)\ [0-9].*/\1/;q'"
93    
94  case ${KERNEL_TYPE} in  case ${KERNEL_TYPE} in
95   image)   image)
96   : ${PROVIDE="virtual/kernel"}   : ${PROVIDE="virtual/kernel"}
97   : ${DEPEND=">= virtual/module-tools   : ${DEPEND=">= virtual/module-tools
98   >= sys-fs/udev-115   >= sys-fs/udev-115
99     >= sys-apps/grubby-8.29-r1
100   >= virtual/initramfs-tools   >= virtual/initramfs-tools
101   >= virtual/initscripts"}   >= virtual/initscripts"}
102   if [[ ! -z ${LINUX_FIRMWARE}  ]] && [[ ${LINUX_FIRMWARE} != internal ]]   if [[ ! -z ${LINUX_FIRMWARE}  ]] && [[ ${LINUX_FIRMWARE} != internal ]]
# Line 195  kernel_src_compile() Line 203  kernel_src_compile()
203    
204   # at least alsa-drivers needs this one ...   # at least alsa-drivers needs this one ...
205   touch include/linux/autoconf.h || die   touch include/linux/autoconf.h || die
206    
207     # compat symlink for 3.7.x new version.h location until everything is fixed
208   ;;   ;;
209   esac   esac
210  }  }
# Line 409  kernel_image_preremove() Line 419  kernel_image_preremove()
419   if [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]]   if [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]]
420   then   then
421   mount /boot &> /dev/null   mount /boot &> /dev/null
  fi  
 }  
422    
 kernel_image_postremove()  
 {  
  if [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]]  
  then  
423   # remove old image entry from grub   # remove old image entry from grub
424   new-kernel-pkg -v --rminitrd --rmmoddep --remove ${KPVER}-${KBRANCH}-${KPBUILD}   new-kernel-pkg -v --rminitrd --rmmoddep --remove ${KPVER}-${KBRANCH}-${KPBUILD}
425   fi   fi
# Line 495  export_inherits kernel src_prepare src_c Line 499  export_inherits kernel src_prepare src_c
499  # export pre/postinstall functions depending on KERNEL_TYPE  # export pre/postinstall functions depending on KERNEL_TYPE
500  case ${KERNEL_TYPE} in  case ${KERNEL_TYPE} in
501   image)   image)
502   export_inherits kernel_image preinstall preremove postinstall postremove   export_inherits kernel_image preinstall preremove postinstall
503   SPECIAL_FUNCTIONS="${SPECIAL_FUNCTIONS} kernel_image_preinstall kernel_image_preremove kernel_image_postinstall kernel_image_postremove"   SPECIAL_FUNCTIONS="${SPECIAL_FUNCTIONS} kernel_image_preinstall kernel_image_preremove kernel_image_postinstall"
504   ;;   ;;
505   sources)   sources)
506   export_inherits kernel_sources postinstall   export_inherits kernel_sources postinstall

Legend:
Removed from v.18720  
changed lines
  Added in v.22123