Re: [PATCH 2/7] kernel: fix out of tree module builds

Enrico Scholz
2014-12-19T11:06:08Z

Bruce Ashfield <bruce.ashfield-CWA4WttNNZF54TAoqtyWWQ@public.gmane.org>
writes:

> With the kernel build optimizations, we no longer copy the source from
> the built kernel into the staging dir, since the kernel is unpacked and built
> directly from the staging dir.
>
> This means that a few build artifacts need to be restored to allow out of
> tree modules to once again build.
> ...
> +
> + # Copy files required for module builds
> + cp System.map $kerneldir/System.map-${KERNEL_VERSION}
> + cp Module.symvers $kerneldir/
> + cp .config $kerneldir/

This and the following lines seem to void the whole idea of the patchset
because it means that only one kernel can be built. In our usecase we
build usually two kernels: a full featured one for the main system and a
minimal, initramfs based for a rescue system.

With this change and building both kernels, it is ambiguous which
System.map is used.

Enrico
--
SIGMA Chemnitz GmbH Registergericht: Amtsgericht Chemnitz HRB 1750
Am Erlenwald 13 Geschaeftsfuehrer: Grit Freitag, Frank Pyritz
09128 Chemnitz