Web lists-archives.com

How to build linux kernal package




Hello,

Here is some system information:

	$ lsb_release -a
	No LSB modules are available.
	Distributor ID:	Debian
	Description:	Debian GNU/Linux 9.8 (stretch)
	Release:	9.8
	Codename:	stretch

I'm trying to rebuild the currently installed linux kernal package from source and am running into some issues. I've been reading the debian policy here:

	https://www.debian.org/doc/debian-policy/ch-source.html#main-building-script-debian-rules

I did the following steps:

	$ apt source linux-image-$(uname -r)
	$ cd linux-4.9.144
	$ DEB_BUILD_OPTIONS="parallel=4" debian/rules build

This results in a lot of stuff being printed, but the following is most interesting:

make[3]: Leaving directory '/home/twn/src/linux/linux-4.9.144/debian/build/build_amd64_rt_amd64'
	debian/bin/buildcheck.py debian/build/build_amd64_rt_amd64 amd64 rt amd64
	ABI is not completely versioned!  Refusing to continue.

		[ ... I CUT OUT SOME STUFF ... ]

debian/rules.real:190: recipe for target 'debian/stamps/build_amd64_rt_amd64' failed
	make[2]: *** [debian/stamps/build_amd64_rt_amd64] Error 1
	make[2]: Leaving directory '/home/twn/src/linux/linux-4.9.144'
debian/rules.gen:394: recipe for target 'build-arch_amd64_rt_amd64_real' failed
	make[1]: *** [build-arch_amd64_rt_amd64_real] Error 2
	make[1]: Leaving directory '/home/twn/src/linux/linux-4.9.144'
	debian/rules:41: recipe for target 'build-arch' failed
	make: *** [build-arch] Error 2

So I guess I have a few questions:

1. If someone here knows the specific issue with the linux package, what am I doing wrong here? 2. Is there a general procedure e.g. `debian/rules build && debian/rules binary` which _should_ work (in other words if it doesn't work, it's a bug). Or is the specific build procedure package dependent? 3. If the procedure is package dependent, where is it documented? I guess there must be scripts somewhere on some build servers that build this...are they accessible somewhere?

Let me know if you'd like more information. Thanks for any help!

Cheers,
Thomas