I need to test a LKM using several old kernel versions which I have to take from GIT.
Based on the Ubuntu wiki pages BuildYourOwnKernel and KernelGitGuide I'm following the below recipe:
$ git clone git://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux/+git/<series> <series>
$ cd <series>
$ git tag -l Ubuntu-*
$ git checkout Ubuntu-v.w.x-y.z
$ LANG=C fakeroot debian/rules clean
$ LANG=C fakeroot debian/rules binary-headers binary-generic binary-perarch
That worked with many kernel versions I tested, including older than Ubuntu-2.6.32-418.35. However, I hit the following weird error.
$ dpkg --print-architecture
amd64
$ git clone git://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux/+git/maverick maverick
$ cd maverick
$ git tag -l Ubuntu-2.6.32-418.35*
Ubuntu-2.6.32-418.35
$ git checkout Ubuntu-2.6.32-418.35
$ LANG=C fakeroot debian/rules clean
$ LANG=C fakeroot debian/rules binary-headers binary-generic binary-perarch
...
dpkg-gencontrol: error: current host architecture 'amd64' does not appear in package's architecture list (armel)
See log for the full output and extra system info.
I have some questions:
- Are the git
Ubuntu-v.w.x-y.z
tags limited to one/some specific arch/s? In this case, it seems the Ubuntu-2.6.32-418.35
tag only supports armel
.
- If so, is there a way to know beforehand which
Ubuntu-v.w.x-y.z
tags support amd64
?
- Is there a way to change the kernel configuration to compile
Ubuntu-2.6.32-418.35
for amd64
. I tried to LANG=C fakeroot debian/rules editconfigs
but it looks like the arm config and in the system list there is no i386/amd64. There is no a .config file in the root directory, no sure what's the right way to do that when you compile a kernel using debian/rules
. Is there a way to change it for the x86 config? how?
Thanks