From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27234 invoked by uid 1002); 30 Sep 2003 08:31:59 -0000 Mailing-List: contact gentoo-dev-help@gentoo.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Received: (qmail 23796 invoked from network); 30 Sep 2003 08:31:59 -0000 Date: Tue, 30 Sep 2003 01:31:58 -0700 From: "Robin H. Johnson" To: gentoo-dev@gentoo.org Message-ID: <20030930083158.GA19395@curie-int.orbis-terrarum.net> Mail-Followup-To: gentoo-dev@gentoo.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="xHFwDpU9dbj6ez1V" Content-Disposition: inline User-Agent: Mutt/1.5.4i Subject: [gentoo-dev] Genkernel hacking X-Archives-Salt: c0e560c4-a93d-4e0e-9a8b-945665f924da X-Archives-Hash: becf0a265f09c8f657bbb5b704169e7c --xHFwDpU9dbj6ez1V Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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+robba= t2) now I forgot something and it doesn't build right genkernel --kernel-directory /tmp/ramdisk/linux.custom -k 2.4.22-ac4+robbat= 2 --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. --=20 Robin Hugh Johnson E-Mail : robbat2@orbis-terrarum.net Home Page : http://www.orbis-terrarum.net/?l=3Dpeople.robbat2 ICQ# : 30269588 or 41961639 GnuPG FP : 11AC BA4F 4778 E3F6 E4ED F38E B27B 944E 3488 4E85 --xHFwDpU9dbj6ez1V Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (GNU/Linux) Comment: Robbat2 @ Orbis-Terrarum Networks iD8DBQE/eT9+snuUTjSIToURArnWAJ0bY64F9YkaHmbnOJtH87tnYSqiqwCgqQw0 5l7uecJtQzH2zheKEeMMPtE= =S4ri -----END PGP SIGNATURE----- --xHFwDpU9dbj6ez1V--