[Buildroot] oddity with project_ vs. kernel dir

Bernhard Fischer rep.dot.nop at gmail.com
Tue Sep 18 17:10:28 UTC 2007

On Tue, Sep 18, 2007 at 06:30:08PM +0200, Bernhard Fischer wrote:
>I'm trying to build a kernel with openswan (for i386, for example).
>Everything works as expected when generating and installing the
>kernel-headers ¹) but the, when unpacking/patching the kernel for the
>target, soomebody seems to try to apply a duplicate patch:
>rm -rf
>*** Unpacking kernel source
>bzcat /scratch/obj.i686/buildroot_trunk/down/linux- |
>tar -C /scratch/obj.i686/buildroot_trunk/project_build_i386/uclibc   -xf -
>touch /scratch/obj.i686/buildroot_trunk/project_build_i386/uclibc/linux-
>toolchain/patch-kernel.sh /scratch/obj.i686/buildroot_trunk/project_build_i386/uclibc/linux-
>toolchain/kernel-headers \
>                linux-\*.patch{,.gz,.bz2}
>toolchain/patch-kernel.sh /scratch/obj.i686/buildroot_trunk/toolchain_build_i386/linux-
>package/openswan \
>                linux-\*.patch{,.gz,.bz2}
>Applying linux- using
>The next patch would create the file README.openswan-2,
>which already exists!  Assume -R? [n] 
>Apply anyway? [n] 
>Skipping patch.
>(a bit line-wrapped, sorry).
>Does that sound familiar to you?

Ah, yes. Has to be KERNEL26_DIR there.
 19671        ulf ifeq ($(BR2_PACKAGE_OPENSWAN),y)
 19671        ulf       toolchain/patch-kernel.sh $(LINUX_HEADERS_UNPACK_DIR) package/openswan \
 19671        ulf 	linux-$(LINUX26_VERSION)-\*.patch{,.gz,.bz2}
 19671        ulf endif

fixing this up..

More information about the buildroot mailing list