/[gentoo-x86]/eclass/kernel-2.eclass
Gentoo

Diff of /eclass/kernel-2.eclass

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

Revision 1.145 Revision 1.159
1# Copyright 1999-2005 Gentoo Foundation 1# Copyright 1999-2005 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/kernel-2.eclass,v 1.145 2005/09/15 00:11:13 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/kernel-2.eclass,v 1.159 2006/02/17 22:18:20 swegener Exp $
4 4
5# Description: kernel.eclass rewrite for a clean base regarding the 2.6 5# Description: kernel.eclass rewrite for a clean base regarding the 2.6
6# series of kernel with back-compatibility for 2.4 6# series of kernel with back-compatibility for 2.4
7# 7#
8# Maintainer: John Mylchreest <johnm@gentoo.org> 8# Maintainer: John Mylchreest <johnm@gentoo.org>
131 131
132 RELEASE=${CKV/${OKV}} 132 RELEASE=${CKV/${OKV}}
133 RELEASE=${RELEASE/_beta} 133 RELEASE=${RELEASE/_beta}
134 RELEASE=${RELEASE/_rc/-rc} 134 RELEASE=${RELEASE/_rc/-rc}
135 RELEASE=${RELEASE/_pre/-pre} 135 RELEASE=${RELEASE/_pre/-pre}
136 kernel_is ge 2 6 && RELEASE=${RELEASE/-pre/-bk} 136 kernel_is ge 2 6 && RELEASE=${RELEASE/-pre/-git}
137 RELEASETYPE=${RELEASE//[0-9]} 137 RELEASETYPE=${RELEASE//[0-9]}
138 138
139 # Now we know that RELEASE is the -rc/-bk 139 # Now we know that RELEASE is the -rc/-git
140 # and RELEASETYPE is the same but with its numerics stripped 140 # and RELEASETYPE is the same but with its numerics stripped
141 # we can work on better sorting EXTRAVERSION. 141 # we can work on better sorting EXTRAVERSION.
142 # first of all, we add the release 142 # first of all, we add the release
143 EXTRAVERSION="${RELEASE}" 143 EXTRAVERSION="${RELEASE}"
144 [[ -n ${KV_EXTRA} ]] && EXTRAVERSION=".${KV_EXTRA}${EXTRAVERSION}" 144 [[ -n ${KV_EXTRA} ]] && EXTRAVERSION=".${KV_EXTRA}${EXTRAVERSION}"
175 175
176 # we will set this for backwards compatibility. 176 # we will set this for backwards compatibility.
177 S=${WORKDIR}/linux-${KV_FULL} 177 S=${WORKDIR}/linux-${KV_FULL}
178 KV=${KV_FULL} 178 KV=${KV_FULL}
179 179
180 # -rc-bk pulls can be achieved by specifying CKV 180 # -rc-git pulls can be achieved by specifying CKV
181 # for example: 181 # for example:
182 # CKV="2.6.11_rc3_pre2" 182 # CKV="2.6.11_rc3_pre2"
183 # will pull: 183 # will pull:
184 # linux-2.6.10.tar.bz2 & patch-2.6.11-rc3.bz2 & patch-2.6.11-rc3-bk2.bz2 184 # linux-2.6.10.tar.bz2 & patch-2.6.11-rc3.bz2 & patch-2.6.11-rc3-git2.bz2
185 185
186 if [[ ${RELEASETYPE} == -rc ]] || [[ ${RELEASETYPE} == -pre ]]; then 186 if [[ ${RELEASETYPE} == -rc ]] || [[ ${RELEASETYPE} == -pre ]]; then
187 OKV="${KV_MAJOR}.${KV_MINOR}.$((${KV_PATCH} - 1))" 187 OKV="${KV_MAJOR}.${KV_MINOR}.$((${KV_PATCH} - 1))"
188 KERNEL_URI="mirror://kernel/linux/kernel/v${KV_MAJOR}.${KV_MINOR}/testing/patch-${CKV//_/-}.bz2 188 KERNEL_URI="mirror://kernel/linux/kernel/v${KV_MAJOR}.${KV_MINOR}/testing/patch-${CKV//_/-}.bz2
189 mirror://kernel/linux/kernel/v${KV_MAJOR}.${KV_MINOR}/linux-${OKV}.tar.bz2" 189 mirror://kernel/linux/kernel/v${KV_MAJOR}.${KV_MINOR}/linux-${OKV}.tar.bz2"
190 UNIPATCH_LIST_DEFAULT="${DISTDIR}/patch-${CKV//_/-}.bz2" 190 UNIPATCH_LIST_DEFAULT="${DISTDIR}/patch-${CKV//_/-}.bz2"
191 fi 191 fi
192 192
193 if [[ ${RELEASETYPE} == -bk ]]; then 193 if [[ ${RELEASETYPE} == -git ]]; then
194 KERNEL_URI="mirror://kernel/linux/kernel/v${KV_MAJOR}.${KV_MINOR}/snapshots/patch-${OKV}${RELEASE}.bz2 194 KERNEL_URI="mirror://kernel/linux/kernel/v${KV_MAJOR}.${KV_MINOR}/snapshots/patch-${OKV}${RELEASE}.bz2
195 mirror://kernel/linux/kernel/v${KV_MAJOR}.${KV_MINOR}/linux-${OKV}.tar.bz2" 195 mirror://kernel/linux/kernel/v${KV_MAJOR}.${KV_MINOR}/linux-${OKV}.tar.bz2"
196 UNIPATCH_LIST_DEFAULT="${DISTDIR}/patch-${OKV}${RELEASE}.bz2" 196 UNIPATCH_LIST_DEFAULT="${DISTDIR}/patch-${OKV}${RELEASE}.bz2"
197 fi 197 fi
198 198
199 if [[ ${RELEASETYPE} == -rc-bk ]]; then 199 if [[ ${RELEASETYPE} == -rc-git ]]; then
200 OKV="${KV_MAJOR}.${KV_MINOR}.$((${KV_PATCH} - 1))" 200 OKV="${KV_MAJOR}.${KV_MINOR}.$((${KV_PATCH} - 1))"
201 KERNEL_URI="mirror://kernel/linux/kernel/v${KV_MAJOR}.${KV_MINOR}/snapshots/patch-${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}${RELEASE}.bz2 201 KERNEL_URI="mirror://kernel/linux/kernel/v${KV_MAJOR}.${KV_MINOR}/snapshots/patch-${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}${RELEASE}.bz2
202 mirror://kernel/linux/kernel/v${KV_MAJOR}.${KV_MINOR}/testing/patch-${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}${RELEASE/-bk*}.bz2 202 mirror://kernel/linux/kernel/v${KV_MAJOR}.${KV_MINOR}/testing/patch-${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}${RELEASE/-git*}.bz2
203 mirror://kernel/linux/kernel/v${KV_MAJOR}.${KV_MINOR}/linux-${OKV}.tar.bz2" 203 mirror://kernel/linux/kernel/v${KV_MAJOR}.${KV_MINOR}/linux-${OKV}.tar.bz2"
204 UNIPATCH_LIST_DEFAULT="${DISTDIR}/patch-${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}${RELEASE/-bk*}.bz2 ${DISTDIR}/patch-${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}${RELEASE}.bz2" 204 UNIPATCH_LIST_DEFAULT="${DISTDIR}/patch-${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}${RELEASE/-git*}.bz2 ${DISTDIR}/patch-${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}${RELEASE}.bz2"
205 fi 205 fi
206 206
207 handle_genpatches 207 handle_genpatches
208} 208}
209 209
245 245
246kernel_is_2_6() { 246kernel_is_2_6() {
247 kernel_is 2 6 || kernel_is 2 5 247 kernel_is 2 6 || kernel_is 2 5
248} 248}
249 249
250kernel_header_destdir() {
251 [[ ${CTARGET} == ${CHOST} ]] \
252 && echo /usr/include \
253 || echo /usr/${CTARGET}/include
254}
255
256# Capture the sources type and set DEPENDs 250# Capture the sources type and set DEPENDs
257if [[ ${ETYPE} == sources ]]; then 251if [[ ${ETYPE} == sources ]]; then
258 DEPEND="!build? ( sys-apps/sed 252 DEPEND="!build? ( sys-apps/sed
259 >=sys-devel/binutils-2.11.90.0.31 ) 253 >=sys-devel/binutils-2.11.90.0.31 )
260 doc? ( app-text/docbook-sgml-utils 254 doc? ( app-text/docbook-sgml-utils
261 app-text/xmlto )" 255 app-text/xmlto )"
262 kernel_is ge 2 6 13 && \
263 DEPEND="${DEPEND}
264 sys-fs/udev"
265 RDEPEND="${DEPEND}
266 !build? ( >=sys-libs/ncurses-5.2 256 RDEPEND="!build? ( >=sys-libs/ncurses-5.2
267 sys-devel/make )" 257 sys-devel/make )
258 virtual/dev-manager"
268 259
269 PROVIDE="virtual/linux-sources" 260 PROVIDE="virtual/linux-sources"
270 kernel_is gt 2 4 && PROVIDE="${PROVIDE} virtual/alsa" 261 kernel_is gt 2 4 && PROVIDE="${PROVIDE} virtual/alsa"
262
271 SLOT="${PVR}" 263 SLOT="${PVR}"
272 DESCRIPTION="Sources for the Linux kernel" 264 DESCRIPTION="Sources for the ${KV_MAJOR}.${KV_MINOR} linux kernel"
273 IUSE="symlink build doc" 265 IUSE="symlink build doc"
274elif [[ ${ETYPE} == headers ]]; then 266elif [[ ${ETYPE} == headers ]]; then
275 DESCRIPTION="Linux system headers" 267 DESCRIPTION="Linux system headers"
276 IUSE="" 268 IUSE=""
277 269
285else 277else
286 eerror "Unknown ETYPE=\"${ETYPE}\", must be \"sources\" or \"headers\"" 278 eerror "Unknown ETYPE=\"${ETYPE}\", must be \"sources\" or \"headers\""
287 die "Unknown ETYPE=\"${ETYPE}\", must be \"sources\" or \"headers\"" 279 die "Unknown ETYPE=\"${ETYPE}\", must be \"sources\" or \"headers\""
288fi 280fi
289 281
290# Unpack functions 282# Cross-compile support functions
291#============================================================== 283#==============================================================
292unpack_2_4() { 284kernel_header_destdir() {
285 [[ ${CTARGET} == ${CHOST} ]] \
286 && echo /usr/include \
287 || echo /usr/${CTARGET}/include
288}
289
290cross_pre_c_headers() {
291 [[ -z ${_E_CROSS_HEADERS_ONLY} ]] && return 1
292 [[ ${CHOST} == ${CTARGET} ]] && return 1
293 return 0
294}
295
296env_setup_xmakeopts() {
293 # Kernel ARCH != portage ARCH 297 # Kernel ARCH != portage ARCH
294 local KARCH=$(tc-arch-kernel) 298 export KARCH=$(tc-arch-kernel)
295 299
296 # When cross-compiling, we need to set the ARCH/CROSS_COMPILE 300 # When cross-compiling, we need to set the ARCH/CROSS_COMPILE
297 # variables properly or bad things happen ! 301 # variables properly or bad things happen !
298 local xmakeopts="ARCH=${KARCH}" 302 xmakeopts="ARCH=${KARCH}"
299 if [[ ${CTARGET} != ${CHOST} ]]; then 303 if [[ ${CTARGET} != ${CHOST} ]] && ! cross_pre_c_headers ; then
300 xmakeopts="${xmakeopts} CROSS_COMPILE=${CTARGET}-" 304 xmakeopts="${xmakeopts} CROSS_COMPILE=${CTARGET}-"
301 elif type -p ${CHOST}-ar; then 305 elif type -p ${CHOST}-ar > /dev/null ; then
302 xmakeopts="${xmakeopts} CROSS_COMPILE=${CHOST}-" 306 xmakeopts="${xmakeopts} CROSS_COMPILE=${CHOST}-"
303 fi 307 fi
308 export xmakeopts
309}
310
311# Unpack functions
312#==============================================================
313unpack_2_4() {
314 env_setup_xmakeopts
304 315
305 cd "${S}" 316 cd "${S}"
306 # this file is required for other things to build properly, 317 # this file is required for other things to build properly,
307 # so we autogenerate it 318 # so we autogenerate it
308 make -s mrproper ${xmakeopts} || die "make mrproper failed" 319 make -s mrproper ${xmakeopts} || die "make mrproper failed"
309 make -s symlinks ${xmakeopts} || die "make symlinks failed" 320 make -s symlinks ${xmakeopts} || die "make symlinks failed"
310 make -s include/linux/version.h ${xmakeopts} || die "make include/linux/version.h failed" 321 make -s include/linux/version.h ${xmakeopts} || die "make include/linux/version.h failed"
311 echo ">>> version.h compiled successfully." 322 echo ">>> version.h compiled successfully."
312} 323}
313 324
325unpack_2_6() {
326 env_setup_xmakeopts
327
328 cd "${S}"
329 # this file is required for other things to build properly, so we
330 # autogenerate it ... touch .config to keep version.h build from
331 # spitting out an annoying warning
332 make -s mrproper ${xmakeopts} || die "make mrproper failed"
333 touch .config
334 make -s include/linux/version.h ${xmakeopts} || die "make include/linux/version.h failed"
335 rm -f .config
336}
337
314universal_unpack() { 338universal_unpack() {
315 cd ${WORKDIR} 339 cd ${WORKDIR}
316 unpack linux-${OKV}.tar.bz2 340 unpack linux-${OKV}.tar.bz2
317 if [[ "${OKV}" != "${KV_FULL}" ]]; then 341 if [[ "${OKV}" != "${KV_FULL}" ]]; then
318 mv linux-${OKV} linux-${KV_FULL} \ 342 mv linux-${OKV} linux-${KV_FULL} \
351} 375}
352 376
353# Compile Functions 377# Compile Functions
354#============================================================== 378#==============================================================
355compile_headers() { 379compile_headers() {
380 env_setup_xmakeopts
381
356 # Since KBUILD_OUTPUT shouldnt be used when compiling headers, lets unset it 382 # Since KBUILD_OUTPUT shouldnt be used when compiling headers, lets unset it
357 # if it exists. 383 # if it exists.
358 [[ -n ${KBUILD_OUTPUT} ]] && unset KBUILD_OUTPUT 384 [[ -n ${KBUILD_OUTPUT} ]] && unset KBUILD_OUTPUT
359 385
360 # if we couldnt obtain HOSTCFLAGS from the Makefile, 386 # if we couldnt obtain HOSTCFLAGS from the Makefile,
361 # then set it to something sane 387 # then set it to something sane
362 local HOSTCFLAGS=$(getfilevar HOSTCFLAGS "${S}"/Makefile) 388 local HOSTCFLAGS=$(getfilevar HOSTCFLAGS "${S}"/Makefile)
363 HOSTCFLAGS=${HOSTCFLAGS:--Wall -Wstrict-prototypes -O2 -fomit-frame-pointer} 389 HOSTCFLAGS=${HOSTCFLAGS:--Wall -Wstrict-prototypes -O2 -fomit-frame-pointer}
364 390
365 # Kernel ARCH != portage ARCH
366 local KARCH=$(tc-arch-kernel)
367
368 # When cross-compiling, we need to set the ARCH/CROSS_COMPILE
369 # variables properly or bad things happen !
370 local xmakeopts="ARCH=${KARCH}"
371 if [[ ${CTARGET} != ${CHOST} ]]; then
372 xmakeopts="${xmakeopts} CROSS_COMPILE=${CTARGET}-"
373 elif type -p ${CHOST}-ar; then
374 xmakeopts="${xmakeopts} CROSS_COMPILE=${CHOST}-"
375 fi
376
377 if kernel_is 2 4; then 391 if kernel_is 2 4; then
378 yes "" | make oldconfig ${xmakeopts} 392 yes "" | make oldconfig ${xmakeopts}
379 echo ">>> make oldconfig complete" 393 echo ">>> make oldconfig complete"
380 use sparc && make dep ${xmakeopts} 394 make dep ${xmakeopts}
381 elif kernel_is 2 6; then 395 elif kernel_is 2 6; then
382 # autoconf.h isnt generated unless it already exists. plus, we have 396 # autoconf.h isnt generated unless it already exists. plus, we have
383 # no guarantee that any headers are installed on the system... 397 # no guarantee that any headers are installed on the system...
384 [[ -f ${ROOT}/usr/include/linux/autoconf.h ]] \ 398 [[ -f ${ROOT}/usr/include/linux/autoconf.h ]] \
385 || touch include/linux/autoconf.h 399 || touch include/linux/autoconf.h
393 # if there arent any installed headers, then there also isnt an asm 407 # if there arent any installed headers, then there also isnt an asm
394 # symlink in /usr/include/, and make defconfig will fail, so we have 408 # symlink in /usr/include/, and make defconfig will fail, so we have
395 # to force an include path with $S. 409 # to force an include path with $S.
396 HOSTCFLAGS="${HOSTCFLAGS} -I${S}/include/" 410 HOSTCFLAGS="${HOSTCFLAGS} -I${S}/include/"
397 ln -sf asm-${KARCH} "${S}"/include/asm 411 ln -sf asm-${KARCH} "${S}"/include/asm
412 cross_pre_c_headers && return 0
413
398 make ${K_DEFCONFIG} HOSTCFLAGS="${HOSTCFLAGS}" ${xmakeopts} || die "defconfig failed" 414 make ${K_DEFCONFIG} HOSTCFLAGS="${HOSTCFLAGS}" ${xmakeopts} || die "defconfig failed"
399 make prepare HOSTCFLAGS="${HOSTCFLAGS}" ${xmakeopts} || die "prepare failed" 415 make prepare HOSTCFLAGS="${HOSTCFLAGS}" ${xmakeopts} || die "prepare failed"
400 make prepare-all HOSTCFLAGS="${HOSTCFLAGS}" ${xmakeopts} || die "prepare failed" 416 make prepare-all HOSTCFLAGS="${HOSTCFLAGS}" ${xmakeopts} || die "prepare failed"
401 fi 417 fi
402} 418}
447 dodir ${ddir}/asm 463 dodir ${ddir}/asm
448 cp -ax "${S}"/include/asm/* "${D}"/${ddir}/asm 464 cp -ax "${S}"/include/asm/* "${D}"/${ddir}/asm
449 [[ ! -e ${D}/${ddir}/asm/arch ]] && ln -sf arch-ebsa285 "${D}"/${ddir}/asm/arch 465 [[ ! -e ${D}/${ddir}/asm/arch ]] && ln -sf arch-ebsa285 "${D}"/${ddir}/asm/arch
450 [[ ! -e ${D}/${ddir}/asm/proc ]] && ln -sf proc-armv "${D}"/${ddir}/asm/proc 466 [[ ! -e ${D}/${ddir}/asm/proc ]] && ln -sf proc-armv "${D}"/${ddir}/asm/proc
451 ;; 467 ;;
468 powerpc)
469 dodir ${ddir}/asm
470 cp -ax "${S}"/include/asm/* ${D}/${ddir}/asm
471 if [[ -e "${S}"/include/asm-ppc ]] ; then
472 dodir ${ddir}/asm-ppc
473 cp -ax "${S}"/include/asm-ppc/* ${D}/${ddir}/asm-ppc
474 fi
475 ;;
452 *) 476 *)
453 dodir ${ddir}/asm 477 dodir ${ddir}/asm
454 cp -ax "${S}"/include/asm/* ${D}/${ddir}/asm 478 cp -ax "${S}"/include/asm/* ${D}/${ddir}/asm
455 ;; 479 ;;
456 esac 480 esac
513 mv ${WORKDIR}/linux* ${D}/usr/src 537 mv ${WORKDIR}/linux* ${D}/usr/src
514} 538}
515 539
516install_manpages() { 540install_manpages() {
517 kernel_is lt 2 5 && return 541 kernel_is lt 2 5 && return
542
543 local myfiles="Documentation/DocBook/Makefile"
544 kernel_is lt 2 6 12 && myfiles="scripts/makeman ${myfiles}"
545
518 sed -ie "s#/usr/local/man#${D}/usr/share/man#g" \ 546 sed -ie "s#/usr/local/man#${D}/usr/share/man#g" ${myfiles}
519 scripts/makeman Documentation/DocBook/Makefile
520 ebegin "Installing manpages" 547 ebegin "Installing manpages"
521 env -u ARCH make installmandocs 548 env -u ARCH make installmandocs
522 eend $? 549 eend $?
523 sed -ie "s#${D}/usr/share/man#/usr/local/man#g" \ 550 sed -ie "s#${D}/usr/share/man#/usr/local/man#g" ${myfiles}
524 scripts/makeman Documentation/DocBook/Makefile
525} 551}
526 552
527# pkg_preinst functions 553# pkg_preinst functions
528#============================================================== 554#==============================================================
529preinst_headers() { 555preinst_headers() {
784 for i in ${UNIPATCH_DOCS}; do 810 for i in ${UNIPATCH_DOCS}; do
785 tmp="${tmp} ${i//*\/}" 811 tmp="${tmp} ${i//*\/}"
786 cp -f ${i} ${T}/ 812 cp -f ${i} ${T}/
787 done 813 done
788 UNIPATCH_DOCS="${tmp}" 814 UNIPATCH_DOCS="${tmp}"
789 815
790 # clean up KPATCH_DIR's - fixes bug #53610 816 # clean up KPATCH_DIR's - fixes bug #53610
791 for x in ${KPATCH_DIR}; do rm -Rf ${x}; done 817 for x in ${KPATCH_DIR}; do rm -Rf ${x}; done
792 818
793 LC_ALL="${myLC_ALL}" 819 LC_ALL="${myLC_ALL}"
794 LANG="${myLANG}" 820 LANG="${myLANG}"
917 sed -i \ 943 sed -i \
918 -e "s/\([ "$'\t'"]\)\(u\|s\)\(8\|16\|32\|64\)\([ "$'\t'"]\)/\1__\2\3\4/g;" \ 944 -e "s/\([ "$'\t'"]\)\(u\|s\)\(8\|16\|32\|64\)\([ "$'\t'"]\)/\1__\2\3\4/g;" \
919 -e 's/ \(u\|s\)\(8\|16\|32\|64\)$/ __\1\2/g' \ 945 -e 's/ \(u\|s\)\(8\|16\|32\|64\)$/ __\1\2/g' \
920 -e 's/\([(, ]\)\(u\|s\)64\([, )]\)/\1__\264\3/g' \ 946 -e 's/\([(, ]\)\(u\|s\)64\([, )]\)/\1__\264\3/g' \
921 -e "s/^\(u\|s\)\(8\|16\|32\|64\)\([ "$'\t'"]\)/__\1\2\3/g;" \ 947 -e "s/^\(u\|s\)\(8\|16\|32\|64\)\([ "$'\t'"]\)/__\1\2\3/g;" \
948 -e "s/ inline / __inline__ /g" \
922 "$@" 949 "$@"
923} 950}
924 951
925# common functions 952# common functions
926#============================================================== 953#==============================================================
927kernel-2_src_unpack() { 954kernel-2_src_unpack() {
928 universal_unpack 955 universal_unpack
929 956
930 [[ -n ${UNIPATCH_LIST} || -n ${UNIPATCH_LIST_DEFAULT} || -n ${UNIPATCH_LIST_GENPATCHES} ]] && \ 957 [[ -n ${UNIPATCH_LIST} || -n ${UNIPATCH_LIST_DEFAULT} || -n ${UNIPATCH_LIST_GENPATCHES} ]] && \
931 unipatch "${UNIPATCH_LIST_DEFAULT} ${UNIPATCH_LIST_GENPATCHES} ${UNIPATCH_LIST}" 958 unipatch "${UNIPATCH_LIST_DEFAULT} ${UNIPATCH_LIST_GENPATCHES} ${UNIPATCH_LIST}"
959
960 # allow ebuilds to massage the source tree after patching but before
961 # we run misc `make` functions below
962 [[ $(type -t kernel-2_hook_premake) == "function" ]] && kernel-2_hook_premake
932 963
933 [[ -z ${K_NOSETEXTRAVERSION} ]] && unpack_set_extraversion 964 [[ -z ${K_NOSETEXTRAVERSION} ]] && unpack_set_extraversion
934 unpack_fix_docbook 965 unpack_fix_docbook
935 unpack_fix_install_path 966 unpack_fix_install_path
936 967
937 kernel_is 2 4 && unpack_2_4 968 kernel_is 2 4 && unpack_2_4
969 kernel_is 2 6 && unpack_2_6
938} 970}
939 971
940kernel-2_src_compile() { 972kernel-2_src_compile() {
941 cd "${S}" 973 cd "${S}"
942 [[ ${ETYPE} == headers ]] && compile_headers 974 [[ ${ETYPE} == headers ]] && compile_headers

Legend:
Removed from v.1.145  
changed lines
  Added in v.1.159

  ViewVC Help
Powered by ViewVC 1.1.20