Magellan Linux

Diff of /smage/trunk/include/kernel.sminc

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

revision 4527 by niro, Fri Mar 15 11:06:39 2013 UTC revision 5111 by niro, Tue Sep 24 08:56:15 2013 UTC
# Line 16  Line 16 
16  #                        set the version here like USE_LINUX_FIRMARE="20110605"  #                        set the version here like USE_LINUX_FIRMARE="20110605"
17  #                        version "internal" keeps the bits too  #                        version "internal" keeps the bits too
18  #  #
19  #  ${INCLUDE_KERNELVERSION_FILE}:  #  ${INCLUDE_KERNELVERSION_FILE}: creates a /boot/kernelversion file (deprecated)
20  #  ${USE_KERNEL_SYMLINKS}:  #  ${USE_KERNEL_SYMLINKS}: creates symlinks to unversioned kernel image files
21    #   - kernel-x.x.x.x -> /boot/vmlinuz
22    #   - initrd-x.x.x.x -> /boot/initrd
23    #   - config-x.x.x.x -> /boot/config
24    #   - System.map-x.x.x.x -> /boot/System.map
25    
26  sminclude mtools  sminclude mtools
27    
# Line 92  case ${KERNEL_TYPE} in Line 96  case ${KERNEL_TYPE} in
96   DEPEND="${DEPEND}   DEPEND="${DEPEND}
97   >= sys-kernel/linux-firmware-${LINUX_FIRMWARE}"   >= sys-kernel/linux-firmware-${LINUX_FIRMWARE}"
98   fi   fi
99     SDEPEND="${SDEPEND}
100     >= sys-dev/bc-1.06"
101   : ${DESCRIPTION="Kernel image of the '${PVER}-${BRANCH}-${PBUILD}${KERNEL_ARCH_EXTENSION}' kernel branch."}   : ${DESCRIPTION="Kernel image of the '${PVER}-${BRANCH}-${PBUILD}${KERNEL_ARCH_EXTENSION}' kernel branch."}
102   ;;   ;;
103    
# Line 115  KPBUILD="${PBUILD}" Line 121  KPBUILD="${PBUILD}"
121  KBRANCH="${BRANCH}"  KBRANCH="${BRANCH}"
122  SPECIAL_VARS="${SPECIAL_VARS} KPVER KPBUILD KBRANCH USE_KERNEL_SYMLINKS"  SPECIAL_VARS="${SPECIAL_VARS} KPVER KPBUILD KBRANCH USE_KERNEL_SYMLINKS"
123    
124    # dummy function to apply kernel patches
125    kernel_apply_patches()
126    {
127     return 0
128    }
129    
130  kernel_src_prepare()  kernel_src_prepare()
131  {  {
132   munpack ${SRCFILE} || die   munpack ${SRCFILE} || die
# Line 125  kernel_src_prepare() Line 137  kernel_src_prepare()
137   chmod -R a+r-w+X,u+w ${SRCDIR} || die   chmod -R a+r-w+X,u+w ${SRCDIR} || die
138    
139   cd ${SRCDIR}   cd ${SRCDIR}
140     kernel_apply_patches || die
141    
142   # fixes INSTALL_PATH to /boot and EXTRAVERSION   # fixes INSTALL_PATH to /boot and EXTRAVERSION
143   sed -i -e 's:#export\tINSTALL_PATH:export\tINSTALL_PATH:' \   sed -i -e 's:#export\tINSTALL_PATH:export\tINSTALL_PATH:' \

Legend:
Removed from v.4527  
changed lines
  Added in v.5111