* [Buildroot] Problem patching linux
@ 2008-03-14 12:55 Will Wagner
2008-03-14 17:12 ` John Voltz
0 siblings, 1 reply; 2+ messages in thread
From: Will Wagner @ 2008-03-14 12:55 UTC (permalink / raw)
To: buildroot
Hi All,
I have a custom board in target/device/my_board. Inside that folder I
have a kernel_patches folder and I have changed the config so that it
should apply my patches.
It all works when applying the patches for the kernel headers, but it
fails to patch the actual kernel. This is because of the different ways
the patch-kernel.sh script is called.
In kernel-headers-new.makefile it is:
toolchain/patch-kernel.sh $(LINUX_HEADERS_UNPACK_DIR)
$(KERNEL_HEADERS_PATCH_DIR) \
\*.patch{,.gz,.bz2}
But in the linux Makefile.in it is:
toolchain/patch-kernel.sh $(LINUX26_DIR) $(KERNEL_HEADERS_PATCH_DIR) \
linux-$(LINUX26_VERSION)-\*.patch{,.gz,.bz2}
The regex is much tougher when actually patching the kernel. The problem
I have it that my patch files are all in this format:
012-linux-2.6.22.19-some_patch
I need the numbers at the beginning to ensure they get patched in the
right order.
How should I fix this? How should my patch files be named? Is this just
a bug in the patching of the kernel?
Thanks,
Will.
--
------------------------------------------------------------------------
Will Wagner will_wagner at carallon.com
Senior Project Engineer Office Tel: +44 (0)20 7371 2032
Carallon Ltd, Studio G20, Shepherds Building, Rockley Rd, London W14 0DA
------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 2+ messages in thread* [Buildroot] Problem patching linux
2008-03-14 12:55 [Buildroot] Problem patching linux Will Wagner
@ 2008-03-14 17:12 ` John Voltz
0 siblings, 0 replies; 2+ messages in thread
From: John Voltz @ 2008-03-14 17:12 UTC (permalink / raw)
To: buildroot
name it linux-2.6.22.19-012-some_patch
the patch kernel reads the files in the same order as the ls command would
print them, so if you have linux-2.6.22.19-012-some_patch and
linux-2.6.22.19-013-another_patch it will order them like you want.
John
On Fri, Mar 14, 2008 at 8:55 AM, Will Wagner <will_wagner@carallon.com>
wrote:
> Hi All,
>
> I have a custom board in target/device/my_board. Inside that folder I
> have a kernel_patches folder and I have changed the config so that it
> should apply my patches.
>
> It all works when applying the patches for the kernel headers, but it
> fails to patch the actual kernel. This is because of the different ways
> the patch-kernel.sh script is called.
>
> In kernel-headers-new.makefile it is:
> toolchain/patch-kernel.sh $(LINUX_HEADERS_UNPACK_DIR)
> $(KERNEL_HEADERS_PATCH_DIR) \
> \*.patch{,.gz,.bz2}
>
> But in the linux Makefile.in it is:
> toolchain/patch-kernel.sh $(LINUX26_DIR)
> $(KERNEL_HEADERS_PATCH_DIR) \
> linux-$(LINUX26_VERSION)-\*.patch{,.gz,.bz2}
>
> The regex is much tougher when actually patching the kernel. The problem
> I have it that my patch files are all in this format:
>
> 012-linux-2.6.22.19-some_patch
>
> I need the numbers at the beginning to ensure they get patched in the
> right order.
>
> How should I fix this? How should my patch files be named? Is this just
> a bug in the patching of the kernel?
>
> Thanks,
>
> Will.
> --
> ------------------------------------------------------------------------
> Will Wagner will_wagner at carallon.com
> Senior Project Engineer Office Tel: +44 (0)20 7371 2032
> Carallon Ltd, Studio G20, Shepherds Building, Rockley Rd, London W14 0DA
> ------------------------------------------------------------------------
>
>
> _______________________________________________
> buildroot mailing list
> buildroot at uclibc.org
> http://busybox.net/mailman/listinfo/buildroot
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://busybox.net/lists/buildroot/attachments/20080314/bcadefaf/attachment.htm
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-03-14 17:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-14 12:55 [Buildroot] Problem patching linux Will Wagner
2008-03-14 17:12 ` John Voltz
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.