summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* kernel-2.eclass: Fix func name to comply with pms, deprecate, old with deadlineMike Pagano2022-05-121-1/+10
| | | | | | | | | | | According to PMS certain words are reserved for package manager use and may not be used or relied upon by ebuilds. See: https://projects.gentoo.org/pms/8/pms.html#x1-13700012.3.17 Closes: https://bugs.gentoo.org/843674 Signed-off-by: Mike Pagano <mpagano@gentoo.org>
* kernel-2.eclass: fix spellingDavid Seifert2022-04-161-2/+2
| | | | | Closes: https://github.com/gentoo/gentoo/pull/24978 Signed-off-by: David Seifert <soap@gentoo.org>
* kernel-2.eclass: remove EAPI 6David Seifert2022-04-161-14/+12
| | | | Signed-off-by: David Seifert <soap@gentoo.org>
* *.eclass: @ECLASS-VARIABLE renamed to @ECLASS_VARIABLEUlrich Müller2022-03-241-43/+43
| | | | | Bug: https://bugs.gentoo.org/835396 Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* kernel-2.eclass: Document variables, minor style clean-upMike Pagano2022-02-201-80/+163
| | | | | | | | | Document variables in the eclass, reorder alphabetically. Make spacing consistent in comment lines. Closes: https://bugs.gentoo.org/833188 Signed-off-by: Mike Pagano <mpagano@gentoo.org>
* kernel-2.eclass: fix minor OBOBJCOPY -> OBJCOPY typoAdrian Ratiu2022-01-061-1/+1
| | | | | | | Fixes:55f5c68c01e791c7339144aadc1f20802791551e Suggested-by: Manoj Gupta <manojgupta@chromium.org> Signed-off-by: Adrian Ratiu <adrian.ratiu@collabora.com> Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
* kernel-2.eclass: Remove duplicateMike Pagano2022-01-051-1/+1
| | | | Signed-off-by: Mike Pagano <mpagano@gentoo.org>
* kernel-2.eclass: Respect portage toolchain variablesAdrian Ratiu2022-01-041-1/+1
| | | | | | | | | | | | | | Starting with kernel>=v5.7 the build system can override the tools vars by setting LLVM=1 [1], but older kernels still use the default GNU tools, so to be able to use a full LLVM/Clang build, CC & co should be set to their respective portage values. [1] a0d1c951ef08 kbuild: support LLVM=1 to switch the default tools to Clang/LLVM Co-authored-by: Manoj Gupta <manojgupta@chromium.org> Signed-off-by: Adrian Ratiu <adrian.ratiu@collabora.com> Closes: https://github.com/gentoo/gentoo/pull/23091 Signed-off-by: Mike Pagano <mpagano@gentoo.org>
* 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>