From cd10150385edc3ce220f5e0f3bbd0a32a8607560 Mon Sep 17 00:00:00 2001 From: StefanCristian Date: Sat, 6 Feb 2016 07:04:22 +0200 Subject: adding 4.x kernel support --- eclass/kogaion-kernel.eclass | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/eclass/kogaion-kernel.eclass b/eclass/kogaion-kernel.eclass index 5e346ad2..ba02cd1d 100644 --- a/eclass/kogaion-kernel.eclass +++ b/eclass/kogaion-kernel.eclass @@ -223,6 +223,10 @@ _get_real_kv_full() { # 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-}" + 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-}" else echo "${ORIGINAL_KV_FULL}" fi @@ -771,6 +775,10 @@ _get_release_level() { # 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-}" + 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-}" else echo "${KV_FULL}" fi -- cgit v1.2.3 From 7cb77ef199dc271c34fcf8a3533044d89629f479 Mon Sep 17 00:00:00 2001 From: BlackNoxis Date: Fri, 12 Feb 2016 16:55:34 +0200 Subject: 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 --- eclass/kogaion-kernel.eclass | 24 ++++++++++++++-------- .../kogaion-sources/kogaion-sources-3.14.50.ebuild | 2 +- .../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)" -- cgit v1.2.3 From 9b88955b05fb27c50ae8ce5a0321789afaa377ab Mon Sep 17 00:00:00 2001 From: BlackNoxis Date: Fri, 12 Feb 2016 16:58:10 +0200 Subject: [kogaion-kernel.eclass] adding support for future kernel 4.4 --- eclass/kogaion-kernel.eclass | 1 + 1 file changed, 1 insertion(+) diff --git a/eclass/kogaion-kernel.eclass b/eclass/kogaion-kernel.eclass index f8b29a78..cf2c7696 100644 --- a/eclass/kogaion-kernel.eclass +++ b/eclass/kogaion-kernel.eclass @@ -288,6 +288,7 @@ _is_kernel_lts() { [ "${_ver}" = "3.12" ] && return 0 [ "${_ver}" = "3.14" ] && return 0 [ "${_ver}" = "4.1" ] && return 0 + [ "${_ver}" = "4.4" ] && return 0 return 1 } -- cgit v1.2.3