prepare-kernel.sh patch to factorize generated patches
Hi,
I have added two new command-line options to prepare-kernel.sh to filter the changes to record in the generated patch files. The patch to prepare-kernel.sh is attached.
I have observed that most of the changes (95% in size) are not specific to the kernel version or the architecture, so it is a waste of space to include those changes in every patch for every kernel version / architecture combination (every patch file would be about 2Mo!).
With the new options, we can generate four distinct patch files (figures are for 2.6.15 / i386):
- kernel-specific and arch-specific: 24 lines / 617 bytes
- kernel-specific and arch-NON-specific: 16 lines / 572 bytes
- kernel-NON-specific and arch-specific: 3116 lines / 95633 bytes
- kernel-NON-specific and arch-NON-specific: 77661 lines / 2095346 bytes
total: 80817 lines / 2192168 bytes
Xenomai supports 6 architectures. Say that we want to generate patches for 10 Linux versions, all patch files now take only about:
2095346 + 6*95633 + 10*572 + 6*10*617 = 2711884 bytes
Signature · 1 line
Romain LENGLET
ChangeLog +8 -0
@@ -1,3 +1,11 @@ +2006-02-27 Romain Lenglet <[email protected]> + + * scripts/prepare-kernel.sh: Added options to select changes to ignore + and to not include in the output patch file when the --outpatch option + is used: --filterkvers=y|n and --filterarch=y|n. + The ksrc/nucleus/udev/ directory is no more copied into the Linux + tree. + 2006-03-06 Jan Kiszka <[email protected]> * src/skins/{native,posix,rtdm}/Makefile.am: Suppress warnings
scripts/prepare-kernel.sh +75 -13
197 lines not on this page · raw message
Gilles Chanteperdrix
AppliedQuoted 5 lines · Romain Lenglet
Hi,
I have added two new command-line options to
prepare-kernel.shto filter the changes to record in the generated patch files. The patch toprepare-kernel.shis attached.
Applied, thanks.
Signature · 1 line
Gilles Chanteperdrix.