/[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.10 Revision 1.11
13# A Couple of env vars are available to effect usage of this eclass 13# A Couple of env vars are available to effect usage of this eclass
14# These are as follows: 14# These are as follows:
15# 15#
16# K_NOSETEXTRAVERSION - if this is set then EXTRAVERSION will not be automatically set within the kernel Makefile 16# K_NOSETEXTRAVERSION - if this is set then EXTRAVERSION will not be automatically set within the kernel Makefile
17# K_NOUSENAME - if this is set then EXTRAVERSION will not include the first part of ${PN} in EXTRAVERSION 17# K_NOUSENAME - if this is set then EXTRAVERSION will not include the first part of ${PN} in EXTRAVERSION
18# K_PREPATCHED - if the patchset is prepatched (ie: mm-sources, ck-sources, ac-sources) it will use PR (ie: -r5) as the patchset version for EXTRAVERSION
19# - and not use it as a true package revision
20#
18# K_EXTRAEINFO - this is a new-line seperated list of einfo displays in postinst and can be used to carry additional postinst messages 21# K_EXTRAEINFO - this is a new-line seperated list of einfo displays in postinst and can be used to carry additional postinst messages
19# K_EXTRAEWARN - same as K_EXTRAEINFO except ewarn's instead of einfo's 22# K_EXTRAEWARN - same as K_EXTRAEINFO except ewarn's instead of einfo's
20# UNIPATCH_LIST - space delimetered list of patches to be applied to the kernel 23# UNIPATCH_LIST - space delimetered list of patches to be applied to the kernel
21# UNIPATCH_DOCS - space delimemeted list of docs to be installed to the doc dir 24# UNIPATCH_DOCS - space delimemeted list of docs to be installed to the doc dir
22 25
375 RELEASE=${RELEASE/_rc/-rc} 378 RELEASE=${RELEASE/_rc/-rc}
376 RELEASE=${RELEASE/_pre/-bk} 379 RELEASE=${RELEASE/_pre/-bk}
377 RELEASETYPE=${RELEASE//[0-9]/} 380 RELEASETYPE=${RELEASE//[0-9]/}
378 381
379 EXTRAVERSION="${RELEASE}" 382 EXTRAVERSION="${RELEASE}"
383
384 if [ -n "${K_PREPATCHED}" ]
385 then
386 KV="${OKV}-${PN/-*/}${PR/r/}"
387 else
380 [ -z "${K_NOUSENAME}" ] && EXTRAVERSION="${EXTRAVERSION}-${PN/-*/}" 388 [ -z "${K_NOUSENAME}" ] && EXTRAVERSION="${EXTRAVERSION}-${PN/-*/}"
381 [ ! "${PR}" == "r0" ] && EXTRAVERSION="${EXTRAVERSION}-${PR}" 389 [ ! "${PR}" == "r0" ] && EXTRAVERSION="${EXTRAVERSION}-${PR}"
382 390
383 KV=${OKV}${EXTRAVERSION} 391 KV=${OKV}${EXTRAVERSION}
392 fi
384 393
385 # -rcXX-bkXX pulls are *IMPOSSIBLE* to support within the portage naming convention 394 # -rcXX-bkXX pulls are *IMPOSSIBLE* to support within the portage naming convention
386 # these cannot be supported, but the code here can handle it up until this point 395 # these cannot be supported, but the code here can handle it up until this point
387 # and theoretically thereafter. 396 # and theoretically thereafter.
388 397

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

  ViewVC Help
Powered by ViewVC 1.1.20