diff options
author | BlackNoxis <steven.darklight@gmail.com> | 2016-02-12 16:55:34 +0200 |
---|---|---|
committer | BlackNoxis <steven.darklight@gmail.com> | 2016-02-12 16:55:34 +0200 |
commit | 7cb77ef199dc271c34fcf8a3533044d89629f479 (patch) | |
tree | f09007d270a0291175956c61ece2c68c2cc574fb | |
parent | cd10150385edc3ce220f5e0f3bbd0a32a8607560 (diff) |
Upgraded support in kernels for full versioning, with the exception of revisions. Upgraded ebuilds for kogaion sources and kernel to show the next structure changes on future kernels
-rw-r--r-- | eclass/kogaion-kernel.eclass | 24 | ||||
-rw-r--r-- | sys-kernel/kogaion-sources/kogaion-sources-3.14.50.ebuild | 2 | ||||
-rw-r--r-- | sys-kernel/linux-kogaion/linux-kogaion-3.14.50.ebuild | 2 |
3 files changed, 17 insertions, 11 deletions
diff --git a/eclass/kogaion-kernel.eclass b/eclass/kogaion-kernel.eclass index ba02cd1d..f8b29a78 100644 --- a/eclass/kogaion-kernel.eclass +++ b/eclass/kogaion-kernel.eclass @@ -83,7 +83,7 @@ K_KERNEL_SLOT_USEPVR="${K_KERNEL_SLOT_USEPVR:-0}" # versioning and ${PV} contains the stable revision, like 3.7.1. # In the example above, this makes the SLOT variable contain only "3.7". # The sublevel version can be forced using K_ROGKERNEL_FORCE_SUBLEVEL -K_KERNEL_NEW_VERSIONING="${K_KERNEL_NEW_VERSIONING:-0}" +K_KERNEL_NEW_VERSIONING="${K_KERNEL_NEW_VERSIONING:-1}" # @ECLASS-VARIABLE: K_KERNEL_IMAGE_NAME # @DESCRIPTION: @@ -222,11 +222,13 @@ _get_real_kv_full() { elif [[ "${OKV/.*}" -ge "3" ]]; then # Linux 3.x support, KV_FULL is set to: 3.0-kogaion # need to add another final .0 to the version part - echo "${ORIGINAL_KV_FULL/-/.0-}" + #echo "${ORIGINAL_KV_FULL/-/.0-}" + echo "${ORIGINAL_KV_FULL}" elif [[ "${OKV/.*}" = "4" ]]; then # Linux 4.x support, KV_FULL is set to: 4.0-kogaion # need to add another final .0 to the version part - echo "${ORIGINAL_KV_FULL/-/.0-}" + #echo "${ORIGINAL_KV_FULL/-/.0-}" + echo "${ORIGINAL_KV_FULL}" else echo "${ORIGINAL_KV_FULL}" fi @@ -235,6 +237,7 @@ _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}" EXTRAVERSION="${EXTRAVERSION/${PN/-*}/${K_ROGKERNEL_NAME}}" # drop -rX if exists if [[ -n "${PR//r0}" ]] && [[ "${K_KERNEL_DISABLE_PR_EXTRAVERSION}" = "1" ]] \ @@ -277,13 +280,14 @@ _is_kernel_binary() { } _is_kernel_lts() { - local _ver="$(get_version_component_range 1-2)" + local _ver="$(get_version_component_range 1-3)" [ "${_ver}" = "3.0" ] && return 0 [ "${_ver}" = "3.2" ] && return 0 [ "${_ver}" = "3.4" ] && return 0 [ "${_ver}" = "3.10" ] && return 0 [ "${_ver}" = "3.12" ] && return 0 [ "${_ver}" = "3.14" ] && return 0 + [ "${_ver}" = "4.1" ] && return 0 return 1 } @@ -297,9 +301,9 @@ if _is_kernel_binary; then fi if [ -n "${K_ROGKERNEL_SELF_TARBALL_NAME}" ]; then - HOMEPAGE="https://github.com/Rogentos/kernel" + HOMEPAGE="https://gitlab.com/rogentos/kernel" else - HOMEPAGE="http://www.kogaion.ro" + HOMEPAGE="http://www.rogentos.ro" fi # Returns success if _set_config_file_vars was called. @@ -774,11 +778,13 @@ _get_release_level() { elif [[ "${OKV/.*}" -ge "3" ]] && [[ "${KV_PATCH}" = "0" ]]; then # Linux 3.x support, KV_FULL is set to: 3.0-kogaion # need to add another final .0 to the version part - echo "${KV_FULL/-/.0-}" + #echo "${KV_FULL/-/.0-}" + echo "${KV_FULL}" elif [[ "${OKV/.*}" = "4" ]] && [[ "${KV_PATCH}" = "0" ]]; then # Linux 4.x support, KV_FULL is set to: 4.0-kogaion # need to add another final .0 to the version part - echo "${KV_FULL/-/.0-}" + #echo "${KV_FULL/-/.0-}" + echo "${KV_FULL}" else echo "${KV_FULL}" fi @@ -912,7 +918,7 @@ kogaion-kernel_pkg_postinst() { _update_depmod "${depmod_r}" elog "Please report kernel bugs at:" - elog "http://bugs.kogaion.ro" + elog "http://bugs.rogentos.ro" elog "The source code of this kernel is located at" elog "=${K_KERNEL_SOURCES_PKG}." diff --git a/sys-kernel/kogaion-sources/kogaion-sources-3.14.50.ebuild b/sys-kernel/kogaion-sources/kogaion-sources-3.14.50.ebuild index b448b2ea..0cfa4cc8 100644 --- a/sys-kernel/kogaion-sources/kogaion-sources-3.14.50.ebuild +++ b/sys-kernel/kogaion-sources/kogaion-sources-3.14.50.ebuild @@ -10,7 +10,7 @@ K_ROGKERNEL_NAME="kogaion" K_ROGKERNEL_URI_CONFIG="yes" K_ROGKERNEL_SELF_TARBALL_NAME="kogaion" K_ONLY_SOURCES="1" -K_ROGKERNEL_FORCE_SUBLEVEL="0" +K_ROGKERNEL_FORCE_SUBLEVEL="50" K_KERNEL_NEW_VERSIONING="1" inherit kogaion-kernel diff --git a/sys-kernel/linux-kogaion/linux-kogaion-3.14.50.ebuild b/sys-kernel/linux-kogaion/linux-kogaion-3.14.50.ebuild index d8a5f2ce..8f57d63b 100644 --- a/sys-kernel/linux-kogaion/linux-kogaion-3.14.50.ebuild +++ b/sys-kernel/linux-kogaion/linux-kogaion-3.14.50.ebuild @@ -8,7 +8,7 @@ inherit versionator K_ROGKERNEL_SELF_TARBALL_NAME="kogaion" K_REQUIRED_LINUX_FIRMWARE_VER="20150206" -K_ROGKERNEL_FORCE_SUBLEVEL="0" +K_ROGKERNEL_FORCE_SUBLEVEL="50" K_ROGKERNEL_PATCH_UPSTREAM_TARBALL="0" _ver="$(get_version_component_range 1-2)" |