summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorV3n3RiX <venerix@rogentos.ro>2016-10-22 00:30:24 +0100
committerV3n3RiX <venerix@rogentos.ro>2016-10-22 00:30:24 +0100
commit5caadf35079c59154882b1b21b8e652deb2c03b4 (patch)
treee3539d3d103e6b5aff77306d47f53e4e6621e4c8
parent2e30b6e364f4cabd22f65363806faa69903287b5 (diff)
parentf73bdb899e4d04727979d84c53ad82b800c073b5 (diff)
Merge branch 'master' of gitlab.com:kogaion/kogaion-desktop
-rw-r--r--eclass/kogaion-kernel.eclass31
1 files changed, 21 insertions, 10 deletions
diff --git a/eclass/kogaion-kernel.eclass b/eclass/kogaion-kernel.eclass
index 11e5c752..00e33942 100644
--- a/eclass/kogaion-kernel.eclass
+++ b/eclass/kogaion-kernel.eclass
@@ -236,19 +236,26 @@ _get_real_kv_full() {
# replace "linux" with K_ROGKERNEL_NAME, usually replaces
# "linux" with "kogaion" or "server" or "openvz"
-KV_FULL="${KV_FULL/${PN/-*}/${K_ROGKERNEL_NAME}}"
-KV_FULL="${PV}-${K_ROGKERNEL_NAME}"
+#KV_FULL="${KV_FULL/${PN/-*}/${K_ROGKERNEL_NAME}}"
+#KV_FULL="${PV}-${K_ROGKERNEL_NAME}"
EXTRAVERSION="${EXTRAVERSION/${PN/-*}/${K_ROGKERNEL_NAME}}"
# drop -rX if exists
-if [[ -n "${PR//r0}" ]] && [[ "${K_KERNEL_DISABLE_PR_EXTRAVERSION}" = "1" ]] \
- && [[ -z "${K_NOSETEXTRAVERSION}" ]]; then
- EXTRAVERSION="${EXTRAVERSION%-r*}"
- KV_FULL="${KV_FULL%-r*}"
- KV="${KV%-r*}"
-fi
+#if [[ -n "${PR//r0}" ]] && [[ "${K_KERNEL_DISABLE_PR_EXTRAVERSION}" = "1" ]] \
+# && [[ -z "${K_NOSETEXTRAVERSION}" ]]; then
+# EXTRAVERSION="${EXTRAVERSION%-r*}"
+# KV_FULL="${KV_FULL%-r*}"
+# KV="${KV%-r*}"
+#fi
# rewrite it
+#ORIGINAL_KV_FULL="${KV_FULL}"
+#KV_FULL="$(_get_real_kv_full)"
+
+if [ "${PR}" == "r0" ] ; then
+ KV_FULL="${PV}-${K_ROGKERNEL_NAME}"
+ else
+ KV_FULL="${PV}-${K_ROGKERNEL_NAME}-${PR}"
+fi
ORIGINAL_KV_FULL="${KV_FULL}"
-KV_FULL="$(_get_real_kv_full)"
# Starting from linux-3.0, we still have to install
# sources stuff into /usr/src/linux-3.0.0-kogaion (example)
@@ -813,7 +820,11 @@ _dracut_initramfs_create() {
local kern_arch="x86"
fi
fi
- local kver="${PV}-${K_ROGKERNEL_SELF_TARBALL_NAME}"
+ if [ "${PR}" == "r0" ] ; then
+ local kver="${PV}-${K_ROGKERNEL_SELF_TARBALL_NAME}"
+ else
+ local kver="${PV}-${K_ROGKERNEL_SELF_TARBALL_NAME}-${PR}"
+ fi
elog ""
elog "Generating initramfs for ${kver}, please wait"