kernel build system rewrite

Elan Ruusamäe glen w delfi.ee
Nie, 28 Maj 2006, 14:51:12 CEST


hi

i have proprietary binary kernel driver, which means i can't use PLD kernel.
so i have an idea to rewrite kernel.spec that preparing source tree is outside 
specfile, or at least minimal. this way i can have similiar packaging 
(-drm, -sound-alsa, -module-build...) and %post scripts (generating initrd, 
registering bootloader) while having different sourcetree.

it should make projects like kernel-desktop.spec also easier to maintain.

so the sourcetree would be assembled from sources/patches from svn and tarball 
exported to distfiles, which kernel.spec just unpacks.

i peeked at suse's kernel build (because that's the binary driver is built 
against) and they have pretty nice method applying the patches:
$ for p in $(./guards $(./arch-symbols) < series.conf); do
  patch -d linux-2.6.5 -p1 < $p || break
done

$ ls -1 *bz2
config.tar.bz2
hello.tar.bz2
linux-2.6.5.tar.bz2
patches.addon.tar.bz2
patches.arch.tar.bz2
patches.drivers.tar.bz2
patches.fixes.tar.bz2
patches.rpmify.tar.bz2
patches.suse.tar.bz2
patches.uml.tar.bz2
patches.vfe.tar.bz2
patches.xen.tar.bz2
symvers-ref.tar.bz2

-- 
glen


Więcej informacji o liście dyskusyjnej pld-kernel