summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* kernel-2.eclass: Update PYTHON_COMPAT to drop python 3.7Alice Ferrazzi2021-09-171-1/+1
| | | | Signed-off-by: Alice Ferrazzi <alicef@gentoo.org>
* kernel-2.eclass: Remove < 2.6 support for kernel headersMike Pagano2021-09-091-107/+5
| | | | | | | | | | | | | | The functionality removed is only to support kernels < 2.6 These kernels have long been removed from the tree Detail: Remove the function compile_headers as it is not called for kernels > 2.6.18 because that's when the build target headers_install was introduced. Remove supporting function compile_headers_tweak_config. Additionally, remove 2.6 support from install_headers. Signed-off-by: Mike Pagano <mpagano@gentoo.org>
* kernel-2.eclass: Move EXPORT_FUNCTIONS below inheritUlrich Müller2021-09-031-6/+8
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Clean deblobAlice Ferrazzi2021-08-301-11/+0
| | | | | | | | | As we are moving out to deprecate EAPI=6 from kernel-2.eclass start removing it from deblob function. Also clean code linked to old kernel versions. kernel sources that use deblob are already updated to EAPI=8 Signed-off-by: Alice Ferrazzi <alicef@gentoo.org>
* kernel-2.eclass: Replace bit-shift arithmetic by ver_testUlrich Müller2021-08-301-4/+5
| | | | | | | There are kernel versions like 4.9.280, therefore shifting version components by 8 bits in kernel_is() may fail. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Revert "kernel-2.eclass: Replace bit-shift arithmetic by ver_test"Ulrich Müller2021-08-271-5/+4
| | | | | | This reverts commit 1646e870d312060d7920869eec8416a8753724b6. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* kernel-2.eclass: Drop useless unset of local variablesUlrich Müller2021-08-271-1/+0
| | | | | Reviewed-by: Alice Ferrazzi <alicef@gentoo.org> Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* kernel-2.eclass: Replace bit-shift arithmetic by ver_testUlrich Müller2021-08-271-4/+5
| | | | | | | | There are kernel versions like 4.9.280, therefore shifting version components by 8 bits in kernel_is() may fail. Reviewed-by: Alice Ferrazzi <alicef@gentoo.org> Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* kernel-2.eclass: Add cpio dependencyMike Pagano2021-08-241-0/+1
| | | | | | Closes: https://bugs.gentoo.org/731666 Signed-off-by: Mike Pagano <mpagano@gentoo.org>
* kernel-2.eclass: Add deblob support only for python3Alice Ferrazzi2021-08-231-1/+5
| | | | | | Closes: https://bugs.gentoo.org/744808 Signed-off-by: Alice Ferrazzi <alicef@gentoo.org>
* kernel-2.eclass: Enable EAPI 8Mike Pagano2021-07-201-2/+2
| | | | | | Closes: https://bugs.gentoo.org/802591 Signed-off-by: Mike Pagano <mpagano@gentoo.org>
* eclass/kernel-2.eclass: Support CPU OPT Patch in kernels >= 5.13Mike Pagano2021-06-301-1/+2
| | | | | | Closes: https://bugs.gentoo.org/799272 Signed-off-by: Mike Pagano <mpagano@gentoo.org>
* eclass/kernel-2: Fix einfo/elog messagesMike Pagano2021-06-161-4/+4
| | | | | | | | | | Fix einfo/elog messages to be more aligned with guidance outlined in the devmanual Closes: https://bugs.gentoo.org/795354 Reported-by: Pacho Ramos Signed-off-by: Mike Pagano <mpagano@gentoo.org>
* eclass/kernel-2: fix USE=symlinkTill Schäfer2021-06-091-1/+1
| | | | | | | | | | | | | the symlink to /usr/src/linux is longer removed bofore linking (see 7446cb850c5e0412e4d88b3aa5d207751241fb02). the latter ln -sf does not replace existing symlinks, since destination is a directory. Closes: https://bugs.gentoo.org/795057 Signed-off-by: Till Schäfer <till2.schaefer@uni-dortmund.de> Closes: https://bugs.gentoo.org/795057 Closes: https://github.com/gentoo/gentoo/pull/21171 Signed-off-by: Mike Pagano <mpagano@gentoo.org>
* eclass/kernel-2: respect USE=symlinkBertrand Jacquin2021-06-071-9/+3
| | | | | | | | | | | | | | | | | | | | | | | kernel-2 eclass postinst_sources() creates /usr/usr/linux symlink regardless of USE=symlink. MAKELINK variable controls the creation of /usr/src/linux, however MAKELINK is always set to 1 only if /usr/src/linux does not currently exist with no consideration for USE=symlink. This change simplify the whole /usr/usr/linux symlink creation to instead depend on K_SYMLINK which is set if USE=symlink. This change also refuse to remove existing /usr/usr/linux if it currently exist while not being a symlink Note that this is broken since 906501be57c0 ("adding symlink use flag support") Bug: https://bugs.gentoo.org/695592 Signed-off-by: Bertrand Jacquin <bertrand@jacquin.bzh> Closes: https://bugs.gentoo.org/695592 Closes: https://github.com/gentoo/gentoo/pull/13031 Signed-off-by: Mike Pagano <mpagano@gentoo.org>
* kernel-2.eclass: Drop `|| die` in install_universalDavid Seifert2021-05-281-2/+2
| | | | | | | * Breaks unprivileged install Acked-by: Sam James <sam@gentoo.org> Signed-off-by: David Seifert <soap@gentoo.org>
* kernel-2.eclass: drop additional unused 2.4 and 2.6 functionsDavid Michael2021-05-271-16/+0
| | | | | | | | * Invoking maintainer timeout after 14 days. Closes: https://github.com/gentoo/gentoo/pull/20639 Signed-off-by: David Michael <fedora.dm0@gmail.com> Signed-off-by: David Seifert <soap@gentoo.org>
* kernel-2.eclass: Remove deprecated code around 2.4, 2.6 and fbcondecorMike Pagano2021-05-271-70/+0
| | | | | Signed-off-by: Mike Pagano <mpagano@gentoo.org> Signed-off-by: David Seifert <soap@gentoo.org>
* kernel-2.eclass: drop EAPIs 2-5David Michael2021-05-271-12/+6
| | | | | Signed-off-by: David Michael <fedora.dm0@gmail.com> Signed-off-by: David Seifert <soap@gentoo.org>
* kernel-2.eclass: use consistent bash syntaxDavid Michael2021-05-271-79/+82
| | | | | Signed-off-by: David Michael <fedora.dm0@gmail.com> Signed-off-by: David Seifert <soap@gentoo.org>
* kernel-2.eclass: remove echoes for loggingDavid Michael2021-05-271-23/+6
| | | | | Signed-off-by: David Michael <fedora.dm0@gmail.com> Signed-off-by: David Seifert <soap@gentoo.org>
* kernel-2.eclass: die on command failuresDavid Michael2021-05-271-29/+21
| | | | | Signed-off-by: David Michael <fedora.dm0@gmail.com> Signed-off-by: David Seifert <soap@gentoo.org>
* kernel-2.eclass: fix whitespace problemsDavid Michael2021-05-271-13/+8
| | | | | Signed-off-by: David Michael <fedora.dm0@gmail.com> Signed-off-by: David Seifert <soap@gentoo.org>
* kernel-2.eclass: EAPI 7 supportDavid Michael2021-05-271-24/+23
| | | | | | | | | | | | | | | | | This converts installation paths prefixed with EROOT or ED to have a leading slash, switches DEPEND to BDEPEND for EAPI 7 so tools are installed in BROOT and natively executable, and makes eapply_user the default src_prepare behavior for EAPIs since 6. It also drops the binutils build-time dependency since it was added in the original kernel.eclass implementation ~20 years ago to enforce a minimum version to avoid old assembly bugs. All affected versions are long gone, and it isn't required to install sources anyway, so skip building the unused binutils dependency. Closes: https://bugs.gentoo.org/702280 Signed-off-by: David Michael <fedora.dm0@gmail.com> Signed-off-by: David Seifert <soap@gentoo.org>
* kernel-2.eclass: Simplify and streamline code for the CPU OPT patchMike Pagano2021-04-301-2/+27
| | | | Signed-off-by: Mike Pagano <mpagano@gentoo.org>
* kernel-2.eclass: fix grammar in elogSam James2021-03-311-3/+3
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* kernel-2.eclass: Handle stricter bash 5.1 expansion rulesMike Pagano2021-01-011-2/+2
| | | | | | | | | Set default value in the case that STRICT_COUNT is unset. Thanks to jospezial for reporting Closes: https://bugs.gentoo.org/762319 Signed-off-by: Mike Pagano <mpagano@gentoo.org>
* kernel-2.eclass: update K_PREPATCHED descriptionJoonas Niilola2020-12-291-5/+5
| | | | | | - include examples that are still present in the repository. Signed-off-by: Joonas Niilola <juippis@gentoo.org>
* kernel-2.eclass: Add support for patches that fail to apply with --dry-runMike Pagano2020-11-051-20/+24
| | | | Signed-off-by: Mike Pagano <mpagano@gentoo.org>
* eclass/kernel-2.eclass: Add pkgconfig to RDPEND,needed for make menuconfigMike Pagano2020-07-031-0/+1
| | | | | | | Thanks to William Throwe for reporting Closes: https://bugs.gentoo.org/730622 Signed-off-by: Mike Pagano <mpagano@gentoo.org>
* kernel-2.eclass: support gcc optimization patch for gcc 10.XMike Pagano2020-06-291-1/+11
| | | | Signed-off-by: Mike Pagano <mpagano@gentoo.org>
* kernel-2.eclass: use $(CC) as HOSTCCSergei Trofimovich2020-06-031-0/+1
| | | | | | | | | | | | | Before the change HOSTCC always used gcc. This was detected by Agostino on linux-headers package. After the change HOSTCC uses user-specified CC (or BUILD_CC). Tested on native linux-headers and on cross-*/linux-headers. Reported-by: Agostino Sarubbo https://bugs.gentoo.org/725878 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* kernel-2.eclass: avoid lexicographical compare on versions, bug #705246Sergei Trofimovich2020-05-271-4/+4
| | | | | | | | | | | | | | | | Originally found in bug #705240 as: ``` if [[ ... || ${KV_MAJOR}.${KV_MINOR}.${KV_PATCH} > 2.6.28 ]]; then ``` '>' are string comparisons. They are benign so far, but will start failing on linux-10 :) Let's be consistent and use version comparison. Closes: https://bugs.gentoo.org/705246 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* kernel-2.eclass: Revert "avoid lexicographical compare on versions, bug #705246"Sergei Trofimovich2020-05-261-4/+4
| | | | | | | | | | | | | | | | | | | This reverts commit 8493b3a1823ea5f24f44ea317ceced513b6722ed. Syntax errors: ``` kernel-2.eclass: line 1081: syntax error near `${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}' kernel-2.eclass: line 1081: syntax error near `${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}' kernel-2.eclass: line 1081: `if [[ ${KV_MAJOR} -ge 3 || ver_test ${KV_MAJOR}.${KV_MINOR}.${KV_PATCH} -gt 2.6.24 ]] ; then' kernel-2.eclass: line 1081: `if [[ ${KV_MAJOR} -ge 3 || ver_test ${KV_MAJOR}.${KV_MINOR}.${KV_PATCH} -gt 2.6.24 ]] ; then' ``` Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* kernel-2.eclass: avoid lexicographical compare on versions, bug #705246Sergei Trofimovich2020-05-261-4/+4
| | | | | | | | | | | | | | | | Originally found in bug #705240 as: ``` if [[ ... || ${KV_MAJOR}.${KV_MINOR}.${KV_PATCH} > 2.6.28 ]]; then ``` '>' are string comparisons. They are benign so far, but will start failing on linux-10 :) Let's be consistent and use version comparison. Closes: https://bugs.gentoo.org/705246 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* kernel-2.eclass: Add gcc 10.X compatibility to CPU opt patchMike Pagano2020-05-131-1/+1
| | | | Signed-off-by: Mike Pagano <mpagano@gentoo.org>
* kernel-2.eclass: update HOMEPAGEJoonas Niilola2019-12-051-1/+1
| | | | | | Signed-off-by: Joonas Niilola <juippis@gentoo.org> Closes: https://github.com/gentoo/gentoo/pull/13866 Signed-off-by: Alice Ferrazzi <alicef@gentoo.org>
* Add me to the kernel-2 eclass genpatches download listAlice Ferrazzi2019-12-051-1/+1
| | | | Signed-off-by: Alice Ferrazzi <alicef@gentoo.org>
* kernel-2.eclass: Move genpatches uri from /space/distfiles-local to devspaceMike Pagano2019-10-121-1/+1
| | | | | | Co-authored-by: Thomas Deutschmann <whissi@gentoo.org> Signed-off-by: Mike Pagano <mpagano@gentoo.org>
* kernel-2.eclass: Inline mirror://kernelMichał Górny2019-10-051-5/+5
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* kernel-2.eclass: Add support for gcc 9.1 CPU optimization patchMike Pagano2019-08-231-6/+20
| | | | | | | See bug #692320 See https://github.com/graysky2/kernel_gcc_patch Signed-off-by: Mike Pagano <mpagano@gentoo.org>
* kernel-2.eclass: Inherit python-any-r1 only in deblob branchMichał Górny2019-08-151-3/+5
| | | | | Closes: https://github.com/gentoo/gentoo/pull/12684 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* kernel-2.eclass: Whitespace.Ulrich Müller2019-05-271-1/+1
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* kernel-2.eclass: Fix comment.Ulrich Müller2019-05-271-2/+2
| | | | | Acked-by: Mike Pagano <mpagano@gentoo.org> Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* eclass: Move cpu optimization patch for older kernels.Mike Pagano2019-02-211-3/+2
| | | | | | See bug #678498 Signed-off-by: Mike Pagano <mpagano@gentoo.org>
* eclass: Fix kernel dependency for gcc v8 patch in kernel-2.eclassMike Pagano2019-02-181-2/+2
| | | | Signed-off-by: Mike Pagano <mpagano@gentoo.org>
* eclass: Update cpu optimization support in kernel-2.eclassMike Pagano2019-02-181-9/+14
| | | | | | | | | | This patch clean's up the logic when applying or dropping the cpu optimization patch. This patch will also support the applying of the gcc v8 patch which will eventually be in genpatches and applied also via the 'experiemental' use flag after this support is enabled. Signed-off-by: Mike Pagano <mpagano@gentoo.org>
* kernel-2.eclass: Fix LICENSE for Linux 4.14 and later.Ulrich Müller2019-02-151-5/+6
| | | | | | | | | | | | Starting with version 4.14, the whole firmware tree has been dropped from the kernel: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=b38923a068c10fc36ca8f596d650d095ce390b85 Therefore including "linux-firmware" in LICENSE is no longer accurate. Closes: https://bugs.gentoo.org/677756 Reviewed-by: Mike Pagano <mpagano@gentoo.org> Reviewed-by: Alice Ferrazzi <alicef@gentoo.org> Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* kernel-2.eclass: add linux 5.x supportThomas Deutschmann2019-01-071-1/+1
| | | | Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* kernel-2.eclass: add @SUPPORTED_EAPISMichał Górny2018-08-151-0/+1
|