aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* gen_moddeps.sh: fix including extra modules when ALLRAMDISKMODULES="yes"Dmitry Baranov2023-10-281-1/+1
| | | | | | | | | | depmod util doesn't care about updating modules.order when the new extra modules was installed. Bug: https://bugs.gentoo.org/916233 Signed-off-by: Dmitry Baranov <reagentoo@gmail.com> Closes: https://github.com/gentoo/genkernel/pull/51 Signed-off-by: Sam James <sam@gentoo.org>
* gen_moddeps.sh: introduce xbasename()Dmitry Baranov2023-10-281-1/+12
| | | | | | | | | | Introduce xbasename() wrapper to use it instead of xargs basename. It guards from two cases: - zero count of module names is passing from pipe - module name starting with "-" interprets as option Signed-off-by: Dmitry Baranov <reagentoo@gmail.com> Signed-off-by: Sam James <sam@gentoo.org>
* gen_moddeps.sh: don't use echo/printf inside the cycleDmitry Baranov2023-10-281-3/+4
| | | | | | | Also prevent printing empty line if mydeps column is null. Signed-off-by: Dmitry Baranov <reagentoo@gmail.com> Signed-off-by: Sam James <sam@gentoo.org>
* firmware: copy only the necessary firmware(s) into initramfsDmitry Baranov2023-08-301-52/+46
| | | | | | | | | | | | | | | | | | | FIRMWARE=yes behavior is changed: Only the minimum number of firmware files will be copied. The list is generated using the `modinfo -F firmware [modules]...` command. The ability to copy all firmware(s) is also available with a new ALLFIRMWARE setting (see the modified genkernel.conf for more details). As for changes in the source code: gen_moddeps.sh: Significantly redesigned module list generation. To get a list of modules, use the `mod_dep_list()` function instead of `gen_dep_list()`. Modules that are not in the kernel (=n or invalid) will be filtered out. Aliases will be replaced with real names (including dependencies). Signed-off-by: Dmitry Baranov <reagentoo@gmail.com> Closes: https://github.com/gentoo/genkernel/pull/40 Signed-off-by: Sam James <sam@gentoo.org>
* gen_moddeps.sh: Move modules_kext() to determine_KEXT()Thomas Deutschmann2021-07-081-31/+0
| | | | | | | | | | | We want debug output but then we cannot use return value from this function. Transforming function to determine_KEXT() like determine_KV() will fix the problem and allows us to keep debug output. Fixes: 234ce29 ("gen_moddeps.sh: modules_kext() refactored") Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* gen_moddeps.sh: modules_dep_list(): Use global KEXT variableThomas Deutschmann2021-07-061-1/+0
| | | | Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* gen_moddeps.sh: gen_dep_list(): Use global KEXT variableThomas Deutschmann2021-07-061-1/+1
| | | | Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* gen_moddeps.sh: modules_kext(): Add ZSTD support for kernel modulesThomas Deutschmann2021-07-061-0/+1
| | | | | Bug: https://bugs.gentoo.org/800506 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* gen_moddeps.sh: modules_kext() refactoredThomas Deutschmann2021-07-061-5/+23
| | | | | | | | CONFIG_MODULE_COMPRESS is gone in >=5.13. Refactor to check for compression algorithm instead which is backward compatible. Link 1: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=d4bbe942098b0c9b487d424a3c545c9ed56462d7 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* gen_moddeps.sh: modules_dep_list(): match module more preciseThomas Deutschmann2021-02-181-1/+1
| | | | | | | | | | The current pattern is not precise enough. I.e. when looking for Realtek network driver module (realtek.ko), we also get a match on Realtek HD audio codec module (snd-hda-codec-realtek.ko). This commit will make the pattern more precise. Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* Rename INSTALL_MOD_PATH option to KERNEL_MODULES_PREFIXThomas Deutschmann2020-08-031-3/+3
| | | | | | | | | | Before this change we had different names in config file and command-line for the same thing. With this change we have one option named KERNEL_MODULES_PREFIX and its corresponding --kernel-modules-prefix command-line argument. Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* gen_determineargs.sh: determine_real_args(): Create kernel module group for ↵Thomas Deutschmann2019-11-271-1/+1
| | | | | | | | | | additional modules This is needed to get modules, used by genkernel features, like bcache module which is used by "dobcache" feature, into initramfs. Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* Replace backticksThomas Deutschmann2019-07-141-1/+1
| | | | Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* strip_mod_paths(): ReformattedThomas Deutschmann2019-07-141-11/+11
| | | | Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* modules_kext(): RefactoredThomas Deutschmann2019-07-141-4/+6
| | | | Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* modules_dep_list(): MovedThomas Deutschmann2019-07-141-8/+8
| | | | Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* gen_deps(): RefactoredThomas Deutschmann2019-07-141-23/+24
| | | | Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* gen_dep_list(): RefactoredThomas Deutschmann2019-07-141-22/+22
| | | | Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* Convert all remaining options to yes/no values and use isTrue for consistencyThomas Deutschmann2019-03-231-1/+1
| | | | | Closes: https://bugs.gentoo.org/532084 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* Use KERNEL_OUTPUTDIR more consistently.Robin H. Johnson2016-02-061-3/+3
| | | | Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* Support compressed modules: both XZ & GZIP.Robin H. Johnson2015-08-171-0/+4
| | | | | | | | | | | Newer kernels support compressed modules directly. It's not ideal for genkernel, since it would be double-compressed, but since genkernel takes the modules the module destination directory after modules_install, it's the quickest way to a working system again (because the non-compressed modules aren't installed). Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* trivial: cleanup code, drop whitespaces and some more cruftFabio Erculiani2011-09-131-2/+2
|
* Adding Id header.Chris Gianelloni2009-07-251-0/+1
|
* Actually setting permissions. It helps if one remembers to 'git add' before ↵Chris Gianelloni2008-12-161-0/+0
| | | | doing their commit.
* Remove a few more 2.4 kernel support remnantsagaffney2008-07-281-6/+1
|
* Removed all references to an initrd and renamed most initr{d,amfs} stuff to ↵Chris Gianelloni2008-07-281-1/+1
| | | | simply 'ramdisk' to simplify things for the future.
* Add --all-initrd-modules option to copy all kernel modules into ↵Andrew Gaffney2008-02-031-10/+20
| | | | | | initrd/ramfs. This is useful for netboot images git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@587 67a159dc-881f-0410-a524-ba9dfbe2cb84
* Fix missing moddeps file by adding a test;Do not keep the initrd/initramfs ↵Eric Edgar2005-11-211-1/+4
| | | | | | with a kernelz system as it is already bundled together. git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@324 67a159dc-881f-0410-a524-ba9dfbe2cb84
* Localversion changes to kerncache, and added a sleep statement so modprobe ↵Eric Edgar2005-06-161-1/+4
| | | | | | loop has a chance to work git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@210 67a159dc-881f-0410-a524-ba9dfbe2cb84
* Adding a set of patches submitted by Martin "Parmus" Parm; bugs #57748,Tim Yamin2004-07-211-1/+1
| | | | | | | #57749, #57751, #57752, and #57761. git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@115 67a159dc-881f-0410-a524-ba9dfbe2cb84
* New release:Tim Yamin2004-06-031-5/+5
| | | | | | | | | | | | * Busybox patched to support loops on 2.4 thus giving 2.4 squashfs support. * Various bug fixes; #46167, #46278, #47551, #48219, #48308, #48339, #49728, #51395, #51948. * Speedups: "" > ''; [ ! ... ] && > [ ... ] || et al where applicable. git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@106 67a159dc-881f-0410-a524-ba9dfbe2cb84
* fixesBrad House2003-12-171-1/+1
| | | | git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@26 67a159dc-881f-0410-a524-ba9dfbe2cb84
* integrate new initrd, and module scanningBrad House2003-12-161-0/+63
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@23 67a159dc-881f-0410-a524-ba9dfbe2cb84