Mainline Build v2.6.36-rc5
Eric Miao
eric.y.miao at gmail.com
Thu Sep 30 10:43:49 UTC 2010
Sent from my iPad
On 2010-9-26, at 21:53, Daniel J Blueman <daniel.blueman at gmail.com> wrote:
> Hi Anca,
>
> (top-post moved to bottom)
>
> On 25 September 2010 12:26, Anca Emanuel <anca.emanuel at gmail.com> wrote:
>> On Sat, Sep 25, 2010 at 7:22 AM, Anca Emanuel <anca.emanuel at gmail.com> wrote:
>>> Hi.
>>>
>>> I'm trying to compile the kernel, using this tutorial:
>>> https://wiki.ubuntu.com/KernelTeam/GitKernelBuild
>>>
>>> I get an error:
>>>
>>> ====== making target
>>> debian/stamp/binary/linux-image-2.6.36-rc5-custom+ [new prereqs:
>>> ]======
>>>
>>> This is kernel package version 12.033.
>>> install -p -d -o root -g root -m 755
>>> /home/zzz/linux-2.6/debian/linux-image-2.6.36-rc5-custom+/DEBIAN
>>> sed -e 's/=V/2.6.36-rc5-custom+/g' -e 's/=IB//g' \
>>> -e 's/=ST/linux/g' -e 's/=R//g' \
>>> -e 's/=KPV/12.033/g' \
>>> -e 's/=K/vmlinuz/g' \
>>> -e 's/=I/YES/g' -e 's,=D,/boot,g' \
>>> -e 's@=A at i386@g' \
>>> -e 's@=B at i386@g' \
>>> ./debian/pkg/image/postinst >
>>> /home/zzz/linux-2.6/debian/linux-image-2.6.36-rc5-custom+/DEBIAN/postinst
>>> chmod 755 /home/zzz/linux-2.6/debian/linux-image-2.6.36-rc5-custom+/DEBIAN/postinst
>>> sed -e 's/=V/2.6.36-rc5-custom+/g' -e 's/=IB//g' \
>>> -e 's/=ST/linux/g' -e 's/=R//g' \
>>> -e 's/=KPV/12.033/g' \
>>> -e 's/=K/vmlinuz/g' \
>>> -e 's/=I/YES/g' -e 's,=D,/boot,g' \
>>> -e 's@=A at i386@g' \
>>> -e 's@=B at i386@g' \
>>> ./debian/pkg/image/config >
>>> /home/zzz/linux-2.6/debian/linux-image-2.6.36-rc5-custom+/DEBIAN/config
>>> chmod 755 /home/zzz/linux-2.6/debian/linux-image-2.6.36-rc5-custom+/DEBIAN/config
>>> sed -e 's/=V/2.6.36-rc5-custom+/g' -e 's/=IB//g' \
>>> -e 's/=ST/linux/g' -e 's/=R//g' \
>>> -e 's/=KPV/12.033/g' \
>>> -e 's/=K/vmlinuz/g' \
>>> -e 's/=I/YES/g' -e 's,=D,/boot,g' \
>>> -e 's/=MD//g' \
>>> -e 's@=MK@@g' -e 's@=A at i386@g' \
>>> -e 's@=M@@g' -e 's/=OF//g' \
>>> -e 's/=S//g' -e 's@=B at i386@g' \
>>> ./debian/pkg/image/postrm >
>>> /home/zzz/linux-2.6/debian/linux-image-2.6.36-rc5-custom+/DEBIAN/postrm
>>> chmod 755 /home/zzz/linux-2.6/debian/linux-image-2.6.36-rc5-custom+/DEBIAN/postrm
>>> sed -e 's/=V/2.6.36-rc5-custom+/g' -e 's/=IB//g' \
>>> -e 's/=ST/linux/g' -e 's/=R//g' \
>>> -e 's/=KPV/12.033/g' \
>>> -e 's/=K/vmlinuz/g' \
>>> -e 's/=I/YES/g' -e 's,=D,/boot,g' \
>>> -e 's/=MD//g' \
>>> -e 's@=MK@@g' -e 's@=A at i386@g' \
>>> -e 's@=M@@g' -e 's/=OF//g' \
>>> -e 's/=S//g' -e 's@=B at i386@g' \
>>> ./debian/pkg/image/preinst >
>>> /home/zzz/linux-2.6/debian/linux-image-2.6.36-rc5-custom+/DEBIAN/preinst
>>> chmod 755 /home/zzz/linux-2.6/debian/linux-image-2.6.36-rc5-custom+/DEBIAN/preinst
>>> sed -e 's/=V/2.6.36-rc5-custom+/g' -e 's/=IB//g' \
>>> -e 's/=ST/linux/g' -e 's/=R//g' \
>>> -e 's/=KPV/12.033/g' \
>>> -e 's/=K/vmlinuz/g' \
>>> -e 's/=I/YES/g' -e 's,=D,/boot,g' \
>>> -e 's/=MD//g' \
>>> -e 's@=MK@@g' -e 's@=A at i386@g' \
>>> -e 's@=M@@g' -e 's/=OF//g' \
>>> -e 's/=S//g' -e 's@=B at i386@g' \
>>> ./debian/pkg/image/prerm >
>>> /home/zzz/linux-2.6/debian/linux-image-2.6.36-rc5-custom+/DEBIAN/prerm
>>> chmod 755 /home/zzz/linux-2.6/debian/linux-image-2.6.36-rc5-custom+/DEBIAN/prerm
>>> po2debconf debian/templates.in > debian/templates.l10n
>>> sed -e 's/=V/2.6.36-rc5-custom/g' -e 's/=IB//g' \
>>> -e 's/=ST/linux/g' -e 's/=R//g' \
>>> -e 's/=KPV/12.033/g' \
>>> -e 's/=K/vmlinuz/g' \
>>> -e 's@=MK@@g' -e 's@=A at i386@g' \
>>> -e 's/=I/YES/g' -e 's,=D,/boot,g' \
>>> -e 's/=MD//g' \
>>> -e 's@=M@@g' -e 's/=OF//g' \
>>> -e 's/=S//g' -e 's@=B at i386@g' \
>>> ./debian/templates.l10n > ./debian/templates.master
>>> install -p -o root -g root -m 644 ./debian/templates.master
>>> /home/zzz/linux-2.6/debian/linux-image-2.6.36-rc5-custom+/DEBIAN/templates
>>> dpkg-gencontrol -DArchitecture=i386 -isp \
>>> -plinux-image-2.6.36-rc5-custom+
>>> -P/home/zzz/linux-2.6/debian/linux-image-2.6.36-rc5-custom+/
>>> dpkg-gencontrol: error: package linux-image-2.6.36-rc5-custom+ not in
>>> control info
>>> make[2]: *** [debian/stamp/binary/linux-image-2.6.36-rc5-custom+] Error 255
>>> make[2]: Leaving directory `/home/zzz/linux-2.6'
>>> make[1]: *** [debian/stamp/binary/pre-linux-image-2.6.36-rc5-custom+] Error 2
>>> make[1]: Leaving directory `/home/zzz/linux-2.6'
>>> make: *** [kernel_image] Error 2
>>>
>>> ====================================================
>>>
>>> my command line was: CONCURRENCY_LEVEL=`getconf _NPROCESSORS_ONLN`
>>> fakeroot make-kpkg --initrd --append-to-version=-custom kernel_image
>>> kernel_headers
>>> I think there is a problem with --append-to-version
>>> I'm using Ubuntu 10.10 upgraded from 10.04
>
>> just search for 's/=V/2.6.36-rc5-custom/g'
>> you will see the rest is 's/=V/2.6.36-rc5-custom/g+'
>>
>> I think that is a bug.
>> And why the + ?
>>
>> Some history: https://bugs.launchpad.net/ubuntu/+source/linux-source-2.6.15/+bug/16447
>
> The '+' is appended by the kernel build subsystem when it detects (via
> git) that the kernel source has been changed.
>
> I use this patch to workaround the build bug, though it does need fixing:
>
> --- /usr/share/kernel-package/ruleset/kernel_version.mk.orig 2008-05-02
> 07:06:28.000000000 +0200
> +++ /usr/share/kernel-package/ruleset/kernel_version.mk 2010-07-08
> 00:02:45.316669641 +0200
> @@ -62,7 +62,7 @@
> @echo "$(strip $(EXTRAVERSION))"
>
> debian_LOCALVERSION:
> - @echo $(if $(strip $(localver-full)),"$(strip $(localver-full))",
> "$(strip $(LOCALVERSION))")
> + @./scripts/setlocalversion
>
> debian_TOPDIR:
> # 2.6 kernels declared TOPDIR obsolete, so use srctree if it exists
> --
> Daniel J Blueman
>
> --
> kernel-team mailing list
> kernel-team at lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/kernel-team
More information about the kernel-team
mailing list