summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* linux-mod.eclass: Fix xz compression optionsMichał Górny2023-12-301-1/+3
| | | | | | | | | Match xz compression options to the ones used by the kernel, as the xz decoder used by the kernel supports only a subset of the xz format. Bug: https://bugs.gentoo.org/920837 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* linux-mod.eclass: Mark as deprecated in favor of linux-mod-r1.eclassMike Pagano2023-06-171-0/+1
| | | | Signed-off-by: Mike Pagano <mpagano@gentoo.org>
* linux-mod.eclass: Store compression ext in variableMike Pagano2023-05-171-1/+10
| | | | | | | | | | When the kernel configuration contains the setting CONFIG_MODULE_COMPRESS_{GZIP,XZ,STD} we need to store the extension for a subsequent call to modinfo. Closes: https://bugs.gentoo.org/906303 Signed-off-by: Mike Pagano <mpagano@gentoo.org>
* linux-mod.eclass: fix spellingSam James2023-03-261-3/+3
| | | | | | | Thanks to codespell. Signed-off-by: Sam James <sam@gentoo.org> Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* linux-mod.eclass: Quote argument of ":" commandUlrich Müller2023-03-261-3/+3
| | | | | | This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223 Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* linux-mod.eclass: Update copyright yearMike Pagano2023-01-281-1/+1
| | | | Signed-off-by: Mike Pagano <mpagano@gentoo.org>
* linux-mod.eclass: Remove EAPI deprecated function callMike Pagano2023-01-281-4/+0
| | | | | | | | | | As warned, remove EAPI deprecated use of econf being called in linux-mod_src_compile Closes: https://bugs.gentoo.org/340597 See: https://marc.info/?l=gentoo-dev&m=167069431328509 Signed-off-by: Mike Pagano <mpagano@gentoo.org>
* linux-mod.eclass: Fix MODULESD_* for hyphenated modulesMike Pagano2023-01-111-4/+4
| | | | | | | | | | | | | | Use of the MODULESD_<modulename>_{ADDITIONS,ALIASES,EXAMPLES} variables do not currently work with external modules that are hyphenated. The current behavior results in an invalid modprobe.d file containing partially evaluated content. This appears to be due to use of ${currm} rather than ${currm_t} when Referencing variables. This changes the use of ${currm} to ${currm_t} when referencing variables to resolve this issue. Closes: https://bugs.gentoo.org/889752 Author: Steven Stallion <steven.stallion@sony.com> Signed-off-by: Mike Pagano <mpagano@gentoo.org>
* linux-mod.eclass: add bugref for Modules.symversIonen Wolkens2022-12-281-1/+1
| | | | | | In case someone would re-add the || die without looking into this. Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
* linux-mod.eclass: revert adding || die for Modules.symversIonen Wolkens2022-12-281-1/+1
| | | | | | | | | Emergency fix given this apparently broke potentially several packages, at least e.g. virtualbox-modules, and zenpower3 from guru. Fixes: bc0ef44947363a33b5cd9b18bcc0d3c32b808311 Closes: https://bugs.gentoo.org/888679 Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
* linux-mod.eclass: drop EAPI 6 supportDavid Seifert2022-12-271-17/+9
| | | | | | * eutils.eclass functionality was not used in EAPI 7. Signed-off-by: David Seifert <soap@gentoo.org>
* linux-mod.eclass: use consistent styleSam James2022-12-271-86/+64
| | | | | | | | | | - Use Bash tests (i.e. [[ ]] instead of [ ]) - Use consistent newlines for if/while - Drop unnecessary ; line terminators - Add a handful of missing || dies Signed-off-by: Sam James <sam@gentoo.org> Signed-off-by: David Seifert <soap@gentoo.org>
* linux-mod.eclass: Warn about removal of econf called in compile phase funcMike Pagano2022-12-071-0/+1
| | | | | | | | | | Notify packaga maintainers that their package relies on the EAPI deprecated use of econf being called in linux-mod_src_compile, which will go away in 30 days (20230107) Bug: https://bugs.gentoo.org/340597 Signed-off-by: Mike Pagano <mpagano@gentoo.org>
* linux-mod.eclass: remove unnecessary DEPEND on sys-apps/sedDavid Seifert2022-12-071-1/+0
| | | | | | * guaranteed by PMS Signed-off-by: David Seifert <soap@gentoo.org>
* linux-mod.eclass: pass -q to xzSam James2022-10-171-1/+1
| | | | | | Avoids noise from memlimit-compress. Signed-off-by: Sam James <sam@gentoo.org>
* linux-mod.eclass: add workaround for < xz 5.3.3_alpha 32-bit issueSam James2022-10-171-1/+1
| | | | | | | | | | | With older versions of xz, xz -T0 will on 32-bit systems try to allocate too much memory and bail out. After discussing with upstream, we set --memlimit-compress=50% as a way to make things work with both older & newer versions. This limiting is essentially already present with >= 5.3.3_alpha as -T0 includes it. Signed-off-by: Sam James <sam@gentoo.org>
* linux-mod.eclass: fix pigz threads argumentSam James2022-10-151-1/+1
| | | | | | | I'm sorry, I thought I'd caught this before. Closes: https://bugs.gentoo.org/877207 Signed-off-by: Sam James <sam@gentoo.org>
* linux-mod.eclass: silence pigz searchSam James2022-10-131-1/+1
| | | | | Fixes: 61f0eab4e3c0272449024e83f32734b0e6d392bb Signed-off-by: Sam James <sam@gentoo.org>
* linux-mod.eclass: cleanup whitespaceSam James2022-10-131-6/+6
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* linux-mod.eclass: improve error handling for module compressionSam James2022-10-131-9/+9
| | | | | | doins will 'die for us' in newer EAPIs, and add missing || dies to compressor calls. Signed-off-by: Sam James <sam@gentoo.org>
* linux-mod.eclass: use pigz for parallel compression if availableSam James2022-10-131-1/+5
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* linux-mod.eclass: compress xz/zstd in parallelSam James2022-10-131-4/+4
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* linux-mod.eclass: Support module compressionMike Pagano2022-06-111-1/+16
| | | | | | | | | | | | | | | The Linux kernel supports the compression of modules utilizing GZIP, XZ and ZSTD. Add support into linux-mod.eclass to support this for out of tree modules utilizing the compression binary specified in the kernel config. Note that if the binary which provides the compression is not present on the system the kernel would have failed to build with an error indicating the missing binaries name. Closes: https://bugs.gentoo.org/850130 Signed-off-by: Mike Pagano <mpagano@gentoo.org>
* linux-mod.eclass: Remove incorrect INTERNAL tagsMike Pagano2022-05-181-2/+0
| | | | Signed-off-by: Mike Pagano <mpagano@gentoo.org>
* linux-mod.eclass: Documentation updatesMike Pagano2022-05-181-33/+33
| | | | | | | Document functions which did not have any documentation or were not formatted to gentoo specifications Signed-off-by: Mike Pagano <mpagano@gentoo.org>
* linux-mod.eclass: Remove internal function not used since 2005Mike Pagano2022-05-181-44/+0
| | | | Signed-off-by: Mike Pagano <mpagano@gentoo.org>
* linux-mod.eclass: Fix function call change from portage to pkgmgrMike Pagano2022-05-121-1/+1
| | | | | | | | | This change is to comply with the linux-info.eclass change of the function name from set_arch_to_portage to set_arch_to_pkgmgr https://bugs.gentoo.org/843686 Signed-off-by: Mike Pagano <mpagano@gentoo.org>
* *.eclass: @ECLASS-VARIABLE renamed to @ECLASS_VARIABLEUlrich Müller2022-03-241-13/+13
| | | | | Bug: https://bugs.gentoo.org/835396 Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* linux-mod.eclass: Fix EAPI 8 supportMike Pagano2022-02-121-1/+5
| | | | Signed-off-by: Mike Pagano <mpagano@gentoo.org>
* linux-mod.eclass: Remove eutils inherit for EAPI 8Mike Pagano2022-02-121-1/+1
| | | | Signed-off-by: Mike Pagano <mpagano@gentoo.org>
* linux-mod.eclass: enable EAPI 8, remove EAPI 5Mike Pagano2022-02-121-7/+2
| | | | | | Clean-up code needed for deprecated EAPIs (EAPI < 4) Signed-off-by: Mike Pagano <mpagano@gentoo.org>
* linux-mod.eclass: drop unnecessary IUSE="kernel_linux"Sam James2022-01-041-2/+2
| | | | | | It's already an implicit IUSE, so we don't need this. Signed-off-by: Sam James <sam@gentoo.org>
* linux-mod.eclass: fix minor typo in eclass documentationAlfred Wingate2021-10-251-1/+1
| | | | | | Signed-off-by: Alfred Wingate <parona@protonmail.com> Closes: https://github.com/gentoo/gentoo/pull/22697 Signed-off-by: Mike Pagano <mpagano@gentoo.org>
* linux-mod.eclass: set CROSS_COMPILE in the environmentMike Gilbert2021-09-061-2/+6
| | | | | | | | This allows it to be overriden in local Makefiles. Closes: https://bugs.gentoo.org/550428 Closes: https://github.com/gentoo/gentoo/pull/22225 Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* linux-mod.eclass: Move EXPORT_FUNCTIONS below inheritUlrich Müller2021-09-031-2/+3
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* linux-mod.eclass: Set @PROVIDESMichał Górny2021-09-021-0/+1
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* linux-mod.eclass : Fix eclassdoc problemsMike Pagano2021-08-271-0/+13
| | | | | | Closes: https://bugs.gentoo.org/637782 Signed-off-by: Mike Pagano <mpagano@gentoo.org>
* linux-mod.eclass: respect INSTALL_MOD_PATHMike Pagano2021-08-241-1/+1
| | | | | | Closes: https://bugs.gentoo.org/642240 Signed-off-by: Mike Pagano <mpagano@gentoo.org>
* linux-mod.eclass: fix @SUPPORTED_EAPIS eclassdocSam James2021-06-211-1/+1
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* linux-mod.eclass: [QA] add EAPI guardSam James2021-06-201-1/+15
| | | | | Signed-off-by: Sam James <sam@gentoo.org> Signed-off-by: David Seifert <soap@gentoo.org>
* linux-mod.eclass: mark MODULES_OPTIONAL_USE_* as @PRE_INHERITSam James2021-03-311-0/+2
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* linux-mod.eclass: Add a prebuilt-kernel rebuild flagMichał Górny2021-01-071-3/+10
| | | | | | | | Add a 'prebuilt-kernel' USE flag that controls a bound-slot dependency on virtual/prebuilt-kernel. If the flag is enabled, it should ensure that the module will be rebuilt automatically on future kernel upgrades. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* eclass/linux-mod: migrate to sys-apps/kmodMikle Kolyada2020-08-081-1/+1
| | | | Signed-off-by: Mikle Kolyada <zlogene@gentoo.org>
* linux-mod.eclass: minor @USAGE syntax fixBen Kohler2020-03-311-1/+1
| | | | Signed-off-by: Ben Kohler <bkohler@gentoo.org>
* linux-mod.eclass: [QA] inherit toolchain-funcs.eclass directlyDavid Seifert2020-02-131-2/+2
| | | | | Closes: https://github.com/gentoo/gentoo/pull/14646 Signed-off-by: David Seifert <soap@gentoo.org>
* linux-mod.eclass: Add support for kernels >=3.X in convert_to_mMike Pagano2019-06-111-1/+1
| | | | | | | | | | | | | | SUBDIRS= will be removed from Linux 5.3. See bug #680976 The linux-mod.eclass includes the function convert_to_m() that is supposed to fix Makefiles converting them from SUBDIRS= to M=. The auxiliary function use_m(), needed by convert_to_m(), is used to verify the kernel version before deciding to patch a file. Currently the check supports only kernel <= 3 Thanks to Fabio Rossi Signed-off-by: Mike Pagano <mpagano@gentoo.org>
* linux-mod.eclass: support DEBUG_INFO_{SPLIT,DWARF4} bug #653286Patrick McLean2019-03-141-0/+4
| | | | | | | | | | | When CONFIG_DEBUG_INFO_SPLIT and/or CONFIG_DEBUG_INFO_DWARF4 are set, the kernel build system tries to create a null.dwo file in the root of the kernel source directory. This adds an addpredict to prevent this from failing due to a sandbox failure. Acked-by: Thomas Deutschmann <whissi@gentoo.org> Closes: https://bugs.gentoo.org/653286 Signed-off-by: Patrick McLean <chutzpah@gentoo.org>
* linux-mod.eclass: fix use of variables for EAPI=7Thomas Deutschmann2018-09-211-8/+8
| | | | | | | | Since EAPI 7, variables like "D" no longer have a trailing slash. However, linux-mod_pkg_preinst relied on a traling slash. Due to that, any EAPI=7 ebuilds using linux-mod eclass to install kernel modules didn't run DEPMOD and weren't added to MODULESDB.
* linux-mod: depend on libelfJason A. Donenfeld2018-06-281-1/+1
| | | | | | | | | Recent linux kernels rely on libelf at build time, which includes at the time of building out of tree modules. So if a module is relying on the existence of linux sources, it also needs to rely on libelf being installed. Signed-off-by: Jason A. Donenfeld <zx2c4@gentoo.org>
* eclass/linux-mod.eclass: only need EAPI>0 if using IUSE default.Robin H. Johnson2018-01-181-4/+4
| | | | Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>