From: "Robin H. Johnson" <robbat2@gentoo.org>
To: gentoo-dev@gentoo.org
Subject: [gentoo-dev] Genkernel hacking
Date: Tue, 30 Sep 2003 01:31:58 -0700 [thread overview]
Message-ID: <20030930083158.GA19395@curie-int.orbis-terrarum.net> (raw)
[-- Attachment #1: Type: text/plain, Size: 1992 bytes --]
Hi Guys,
While wanting to build a bunch of kernels to test out in a mostly
automated fashion, I hacked up some improvements to genkernel for the
task.
I've put up the modified version here.
http://www.orbis-terrarum.net/~robbat2/genkernel
A diff against the current genkernel installed by the ebuild is almost
the size of the existing program, so I decided posting just the modified
program was probably more effective.
Change listing:
- Help page!
- Use getopt for option handling (all options now have long and short
versions)
- Specify which kernel version you want to build
- Specify where to find the kernel sources to build (for those of us
that build on ramdisks ;-)
- options to call packaging and bootsplash stuff (the base functionality
was there before, but hidden).
- Fixed packaging code some to work better.
- "--skip-mrproper" to skip mrproper when you only want to make a few
tweaks to the kernel and not rebuild all of it.
Example usage:
I have my custom modified kernel source for linux-2.4.22-ac4 in
/tmp/ramdisk/linux.custom
EXTRAVERSION in the makefile is -ac4+robbat2
To build it:
genkernel -d /tmp/ramdisk/linux.custom --kernel-version 2.4.22-ac4+robbat2
(I already have a customized config in /etc/kernels/config-2.4.22-ac4+robbat2)
now I forgot something and it doesn't build right
genkernel --kernel-directory /tmp/ramdisk/linux.custom -k 2.4.22-ac4+robbat2 --config
now to continue building:
genkernel -d /tmp/ramdisk/linux.custom -k 2.4.22-ac4+robbat2 -s
I haven't tested the bootsplash functionality, as some of that code
didn't make any sense. Appending to a raw initrd image and then not
compressing it???
Hopefully somebody will find these changes useful in the meantime.
--
Robin Hugh Johnson
E-Mail : robbat2@orbis-terrarum.net
Home Page : http://www.orbis-terrarum.net/?l=people.robbat2
ICQ# : 30269588 or 41961639
GnuPG FP : 11AC BA4F 4778 E3F6 E4ED F38E B27B 944E 3488 4E85
[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]
next reply other threads:[~2003-09-30 8:31 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-09-30 8:31 Robin H. Johnson [this message]
2003-09-30 16:16 ` [gentoo-dev] Genkernel hacking Chris Gianelloni
2003-10-09 9:31 ` Robin H. Johnson
2003-10-09 10:07 ` Chris Gianelloni
2003-10-09 14:17 ` Robin H. Johnson
2003-10-09 21:34 ` Doug Weimer
2003-10-10 0:04 ` Bob Johnson
2003-10-10 0:06 ` Bob Johnson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030930083158.GA19395@curie-int.orbis-terrarum.net \
--to=robbat2@gentoo.org \
--cc=gentoo-dev@gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox