Magellan Linux

Diff of /trunk/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 30421 by niro, Thu Jan 18 14:48:44 2018 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 139  kernel_src_prepare() Line 147  kernel_src_prepare()
147   cd ${SRCDIR}   cd ${SRCDIR}
148   kernel_apply_patches || die   kernel_apply_patches || die
149    
150     # fix permissions after the patchwork
151     # gnu patch doesn't support git-style file mode
152     if [ -e tools/objtool/sync-check.sh ]
153     then
154     chmod +x tools/objtool/sync-check.sh || die
155     fi
156    
157   # fixes INSTALL_PATH to /boot and EXTRAVERSION   # fixes INSTALL_PATH to /boot and EXTRAVERSION
158   sed -i -e 's:#export\tINSTALL_PATH:export\tINSTALL_PATH:' \   sed -i -e 's:#export\tINSTALL_PATH:export\tINSTALL_PATH:' \
159   -e "s:^\(EXTRAVERSION =\).*:\1 ${EXTRAVERSION}:" Makefile || die   -e "s:^\(EXTRAVERSION =\).*:\1 ${EXTRAVERSION}:" Makefile || die
# Line 195  kernel_src_compile() Line 210  kernel_src_compile()
210    
211   # at least alsa-drivers needs this one ...   # at least alsa-drivers needs this one ...
212   touch include/linux/autoconf.h || die   touch include/linux/autoconf.h || die
213    
214     # compat symlink for 3.7.x new version.h location until everything is fixed
215   ;;   ;;
216   esac   esac
217  }  }
# Line 409  kernel_image_preremove() Line 426  kernel_image_preremove()
426   if [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]]   if [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]]
427   then   then
428   mount /boot &> /dev/null   mount /boot &> /dev/null
  fi  
 }  
429    
 kernel_image_postremove()  
 {  
  if [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]]  
  then  
430   # remove old image entry from grub   # remove old image entry from grub
431   new-kernel-pkg -v --rminitrd --rmmoddep --remove ${KPVER}-${KBRANCH}-${KPBUILD}   new-kernel-pkg -v --rminitrd --rmmoddep --remove ${KPVER}-${KBRANCH}-${KPBUILD}
432   fi   fi
# Line 495  export_inherits kernel src_prepare src_c Line 506  export_inherits kernel src_prepare src_c
506  # export pre/postinstall functions depending on KERNEL_TYPE  # export pre/postinstall functions depending on KERNEL_TYPE
507  case ${KERNEL_TYPE} in  case ${KERNEL_TYPE} in
508   image)   image)
509   export_inherits kernel_image preinstall preremove postinstall postremove   export_inherits kernel_image preinstall preremove postinstall
510   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"
511   ;;   ;;
512   sources)   sources)
513   export_inherits kernel_sources postinstall   export_inherits kernel_sources postinstall

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