aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Rename INSTALL_MOD_PATH option to KERNEL_MODULES_PREFIXThomas Deutschmann2020-08-031-7/+6
| | | | | | | | | | 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_package.sh: gen_kerncache_extract_kernel(): Create target directory if ↵Thomas Deutschmann2020-08-021-7/+10
| | | | | | missing Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* Unify 'confgrep' handling via new get_grep_cmd_for_file() functionThomas Deutschmann2020-08-011-8/+2
| | | | Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* Make initramfs and kernel filename customizableThomas Deutschmann2019-07-291-46/+52
| | | | | | | | | | | | | New options like --initramfs-filename or --kernel-filename will allow user to customize filenames used when installing initramfs or kernel into $BOOTDIR. Therefore --kernelname (KNAME) option was removed. Filename can contain placeholders like '%%ARCH%%' which will get replaced at runtime. Man page contains more information. Bug: https://bugs.gentoo.org/395095 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* genkernel: Normalize outputThomas Deutschmann2019-07-281-2/+6
| | | | Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* Make use of $TAR_COMMAND variableThomas Deutschmann2019-07-271-9/+9
| | | | Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* Make use of new is_gzipped() functionThomas Deutschmann2019-07-261-2/+4
| | | | Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* Normalize outputThomas Deutschmann2019-07-181-7/+4
| | | | | | | | - Try to use "<module>: >> $msg" notation. - Try to group modules and separate them by blank lines. Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* Adjust LOGLEVELThomas Deutschmann2019-07-161-3/+3
| | | | Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* gen_package.sh: Refactor gen_kerncache_is_valid()Thomas Deutschmann2019-07-141-23/+28
| | | | Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* gen_package.sh: Refactor gen_kerncache_extract_config()Thomas Deutschmann2019-07-141-7/+11
| | | | Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* gen_package.sh: Refactor gen_kerncache_extract_modules()Thomas Deutschmann2019-07-141-10/+8
| | | | Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* gen_package.sh: Refactor gen_kerncache_extract_kernel()Thomas Deutschmann2019-07-141-6/+10
| | | | Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* gen_package.sh: Refactor gen_modulespackage()Thomas Deutschmann2019-07-141-15/+17
| | | | Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* gen_package.sh: Refactor gen_minkernpackage()Thomas Deutschmann2019-07-141-35/+58
| | | | Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* gen_package.sh: Refactor gen_kerncache()Thomas Deutschmann2019-07-141-23/+42
| | | | | | | | | | - Make use of tar's auto-compress feature, i.e. use archive suffix to determine the compression program. - get_tar_cmd() function added which will try to return tar command utilizing pbzip2, pxz or pigz when possible. Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* gen_package.sh: delete temp files only when DEBUGCLEANUP is not setThomas Deutschmann2019-03-261-15/+24
| | | | Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* gen_kerncache_is_valid(): No need to do anything if $KERNCACHE file doesn't ↵Thomas Deutschmann2019-03-231-13/+13
| | | | | | exist Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* Fix "--kerncache=/foo/bar.bz2" when used with "--no-kernel-sources"Thomas Deutschmann2019-03-231-1/+1
| | | | Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* Convert all remaining options to yes/no values and use isTrue for consistencyThomas Deutschmann2019-03-231-10/+10
| | | | | Closes: https://bugs.gentoo.org/532084 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* Additional source file archive formats supportTomasz Wasiak2017-01-071-10/+10
| | | | | | | | | This patch mainly replaces tar xjf with tar xf as modern tar supports not only bzip2... (minor tweaks to apply) Fixes: https://bugs.gentoo.org/show_bug.cgi?id=496512#c8 Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* adjust System.map die check for #570822Mike Frysinger2016-03-271-4/+1
| | | | | | | | | | | | Builds with newer genkernel have been failing in catalyst like so: * ERROR: Could not copy System.map from kerncache for the kernel package! The code that added it seems to have been meant to check the minkernpackage/ subdir where the file was renamed instead of the current subdir. Change the check to simplify verify the mv didn't fail instead of duplicating the file name entirely. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* gen_package: packaged kernel/initramfs name fixesv3.4.50Robin H. Johnson2014-06-231-5/+18
| | | | | | | | | | | | | | | | Previous commit 76e801c8 did not actually go far enough. The existing install from kerncache code that is normally used with passing --install used a form of kernel-${KNAME}-${ARCH}-${KV}. Instead of just the kernel-${ARCH}-${KV} we were using in commit 76e801c8, or kernel-${KV} that we used before that, let's use the same naming per the regular path. Also add safety checks that the kernels exist, as you could get an empty tarball otherwise! Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* gen_package: print full paths to pkgs/cache outputRobin H. Johnson2014-06-231-3/+3
| | | | | | | | The files are not created in the PWD when genkernel run without specifying absolute paths for those arguments and I need to debug where they are actually going. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* gen_package: Log where the kern/mod/cache files goRobin H. Johnson2014-06-231-0/+3
| | | | Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* Whitepace.Jorge Manuel B. S. Vicetto (jmbsvicetto)2014-06-221-1/+1
| | | | Signed-off-by: Jorge Manuel B. S. Vicetto (jmbsvicetto) <jmbsvicetto@gentoo.org>
* Make gen_minkernpackage use the same kernel naming as the normal path ↵Robin H. Johnson2014-06-211-2/+2
| | | | | | (kerncache). Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* Make --kerncache compatible with recent versions of GNU tar, bug #457168Richard Yao2014-01-241-2/+2
| | | | | | | | | | | | | Older versions of GNU tar would extract files to the interior of the directory specified after an adjustment via -C was taken into consideration. Newer versions will perform extraction to the exterior of that directory. This caused --kerncache to override the /lib symlink with an actual directory. We correct this by switching to a more standard syntax that should be consistent against old and new versions of GNU tar, as well as bsdtar. Signed-off-by: Richard Yao <ryao@gentoo.org>
* Revert "Make --kerncache compatible with recent versions of GNU tar, bug ↵Richard Yao2014-01-241-2/+2
| | | | | | | #457168" This reverts commit 2d720491bd62eb1c87f8da23ec7aef393207bf30, which caused us to have /lib/lib. That got past me when testing.
* Make --kerncache compatible with recent versions of GNU tar, bug #457168Richard Yao2014-01-241-2/+2
| | | | | | | | | | | | | | Older versions of GNU tar would extract files to the interior of the directory specified after an adjustment via -C was taken into consideration. Newer versions will perform extraction to the exterior of that directory. This caused --kerncache to override the /lib symlink with an actual directory. We correct this by switching to a more standard syntax that should be consistent against all tar implementations, including both old and new versions of GNU tar. Signed-off-by: Richard Yao <ryao@gentoo.org>
* Fix corner cases on OUTPUTDIR.Robin H. Johnson2012-10-151-6/+6
| | | | | | | If you give the kernel O= with the same dir as the source, it will complain about an unclean tree. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* Support --kernel-config=/proc/config.gz (bug #421027)Sebastian Pipping2012-07-081-2/+17
|
* trivial: cleanup code, drop whitespaces and some more cruftFabio Erculiani2011-09-131-17/+16
|
* Review and fix some -eq and -ne conditionalsSebastian Pipping2011-01-071-1/+1
| | | | This fixes "sh: bad number" with busybox 1.18.1 during activation of mdev.
* Adding Id header.Chris Gianelloni2009-07-251-0/+1
|
* Add support for multiple possible kernel binary paths for gentoo bug #255085Andrew Gaffney2009-02-191-6/+20
|
* Actually setting permissions. It helps if one remembers to 'git add' before ↵Chris Gianelloni2008-12-161-0/+0
| | | | doing their commit.
* Removed all references to an initrd and renamed most initr{d,amfs} stuff to ↵Chris Gianelloni2008-07-281-6/+1
| | | | simply 'ramdisk' to simplify things for the future.
* Copy the original kconfig with a different name than the one used to buildAndrew Gaffney2008-03-141-1/+1
| | | | git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@655 67a159dc-881f-0410-a524-ba9dfbe2cb84
* Include original kconfig in kerncacheAndrew Gaffney2008-03-141-1/+7
| | | | | | If original kconfig exists in the kerncache, use that for comparison to the current kconfig git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@654 67a159dc-881f-0410-a524-ba9dfbe2cb84
* Spacing cleanups in gen_package.shAndrew Gaffney2008-03-131-5/+5
| | | | git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@640 67a159dc-881f-0410-a524-ba9dfbe2cb84
* Get rid of the ENABLE_PEGASOS_HACKS hacksAndrew Gaffney2008-03-131-5/+5
| | | | | | | | Add INTEGRATED_INITRAMFS option to optionally insert the generated initramfs directly into the kernel image Change default build order to build the kernel last to facilitate the INTEGRATED_INITRAMFS option Add GENZIMAGE option and change various checks from ENABLE_PEGASOS_HACKS to GENZIMAGE git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@631 67a159dc-881f-0410-a524-ba9dfbe2cb84
* Add missing space before closing ]Andrew Gaffney2008-02-201-1/+1
| | | | git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@603 67a159dc-881f-0410-a524-ba9dfbe2cb84
* Added a nice patch from John R. Graham <john_r_graham@mindspring.com> to ↵Chris Gianelloni2007-11-071-11/+10
| | | | | | allow all command line options to be configurable from within the genkernel.conf file. This is for bug #182616. This is genkernel 3.4.9_pre8 for testing. git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@557 67a159dc-881f-0410-a524-ba9dfbe2cb84
* Added a patch from Joshua Kinard <kumba@gentoo.org> to clean up the Pegasos ↵Chris Gianelloni2007-11-071-27/+26
| | | | | | hacks in genkernel. This is from bug #193826. This is genkernel 3.4.9_pre7 for testing. git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@554 67a159dc-881f-0410-a524-ba9dfbe2cb84
* Removing bootsplash support since it hasn't been in a kernel we've supported ↵Chris Gianelloni2007-09-171-1/+1
| | | | | | for years now, causes confusion amongst users, and really wasn't being used and caused issues with 2.6/initrd creation in some corner cases. git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@534 67a159dc-881f-0410-a524-ba9dfbe2cb84
* Patch to compare new config instead of the one left laying around in the ↵Andrew Gaffney2007-07-261-3/+9
| | | | | | kerncache dir. Thanks to Pat Double <gentoo@patdouble.com> in bug #179739 git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@520 67a159dc-881f-0410-a524-ba9dfbe2cb84
* Added a patch from Andrew Gaffney <agaffney@gentoo.org> from bug #174188 to ↵Chris Gianelloni2007-06-211-1/+6
| | | | | | fix a problem with the System.map file copying that was previously introduced. git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@512 67a159dc-881f-0410-a524-ba9dfbe2cb84
* Added a patch from Andrew Gaffney <agaffney@gentoo.org> to add System.map to ↵Chris Gianelloni2007-04-121-0/+2
| | | | | | the tarball for the minimal kernel package for bug #174188. This is also the 3.4.8 release. git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@508 67a159dc-881f-0410-a524-ba9dfbe2cb84
* Added a patch by John R. Graham <john_r_graham@mindspring.com> from bug ↵Chris Gianelloni2007-03-091-6/+14
| | | | | | #169383 to improve the --symlink option fairly significantly. This is going to be 3.4.7_pre4 and while I haven't tested this yet, it looks good. git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@494 67a159dc-881f-0410-a524-ba9dfbe2cb84