summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
Diffstat (limited to 'eclass')
-rw-r--r--eclass/kernel-libre.eclass12
1 files changed, 7 insertions, 5 deletions
diff --git a/eclass/kernel-libre.eclass b/eclass/kernel-libre.eclass
index ebc009e..140850c 100644
--- a/eclass/kernel-libre.eclass
+++ b/eclass/kernel-libre.eclass
@@ -1,5 +1,5 @@
#
-# Original Author: nick
+# Original Author: Nick White
# Purpose: override of kernel-2.eclass for the linux-libre kernel
#
@@ -10,17 +10,19 @@ KERNEL_URI="http://www.linux-libre.fsfla.org/pub/linux-libre/releases/${PV}-libr
DEBLOB_CHECK="deblob-check"
DEBLOB_URI="http://www.linux-libre.fsfla.org/pub/linux-libre/releases/${PV}-libre${LIBRE_VER}/${DEBLOB_CHECK}"
+KERNEL_VER=${PV/-r*}
+
# rename deblob-check to avoid collisions
if [[ $EAPI == 2 ]]; then
- DEBLOB_CHECK="${DEBLOB_CHECK}-${OKV}"
+ DEBLOB_CHECK="${DEBLOB_CHECK}-${KERNEL_VER}"
DEBLOB_URI="${DEBLOB_URI} -> ${DEBLOB_CHECK}"
fi
# override the kernel-2 function as tarball is named differently
universal_unpack() {
cd ${WORKDIR}
- unpack linux-${OKV}-libre${LIBRE_VER}.tar.bz2
- mv ${WORKDIR}/linux-${OKV} ${WORKDIR}/linux-${KV_FULL} \
+ unpack linux-${KERNEL_VER}-libre${LIBRE_VER}.tar.bz2
+ mv ${WORKDIR}/linux-${KERNEL_VER} ${WORKDIR}/linux-${KV_FULL} \
|| die "Unable to move source tree to ${KV_FULL}."
cd ${S}
@@ -49,7 +51,7 @@ check_for_blobs() {
}
kernel-libre_src_unpack() {
- # kernel revision patches included in tarball
+ # kernel revision patches are included in tarball
UNIPATCH_LIST_DEFAULT=""
if [ -n "${UNIPATCH_LIST_GENPATCHES}" ] || [ -n "${UNIPATCH_LIST}" ]; then