[Buildroot] Custom kernal patch not being run

Thomas De Schampheleire patrickdepinguin at gmail.com
Fri Aug 29 19:31:21 UTC 2014


Hi Charles,

On Fri, Aug 29, 2014 at 8:22 PM, buildrootcharles
<charles.s at mercury-security.com> wrote:
> default.config
> <http://buildroot-busybox.2317881.n4.nabble.com/file/n78215/default.config>
>
>> Which version of Buildroot are you using? Is this a recent release?
>
> I'm using Buildroot version 2013.08
>
>> Also, please send us your .config so we can try to reproduce.
>
> config file attached (I renamed it default.config just for the upload)
>
>> The message 'Downloading additional patches' should not appear for
>> local patches, i.e. those that are in a directory, but only for http
>> or ftp patches.

I cannot reproduce this. Your config file looks sane as far as the
kernel settings are concerned.
I just modified the path to the kernel and patch directory, then I get:

$ make linux-dirclean
rm -Rf /tmp/buildroot-2013.08/output/build/linux-custom
tdescham at argentina /tmp/buildroot-2013.08 $ make linux-patch
>>> linux custom Download additional patches
>>> linux custom Extracting
bzcat /tmp/buildroot-2013.08/dl/linux-3.9.4.tar.bz2 | tar
--strip-components=1 -C
/tmp/buildroot-2013.08/output/build/linux-custom  -xf -
>>> linux custom Patching /package/linux
for p in /tmp/foo ; do if echo $p | grep -q -E "^ftp://|^http://" ;
then support/scripts/apply-patches.sh
/tmp/buildroot-2013.08/output/build/linux-custom
/tmp/buildroot-2013.08/dl `basename $p` ; elif test -d $p ; then
support/scripts/apply-patches.sh
/tmp/buildroot-2013.08/output/build/linux-custom $p linux-\*.patch ;
else support/scripts/apply-patches.sh
/tmp/buildroot-2013.08/output/build/linux-custom `dirname $p`
`basename $p` ; fi done

Applying linux-bar.patch using patch:
[..]

The corresponding settings were:
BR2_LINUX_KERNEL=y
BR2_LINUX_KERNEL_CUSTOM_TARBALL=y
BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="file:///tmp/linux-3.9.4.tar.bz2"
BR2_LINUX_KERNEL_PATCH="/tmp/foo"
BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="/home/MSC/custom_linux-3.10.4.config"


Your config file indicates that this is not a clean buildroot tree.
Have you verified this issue on a clean buildroot-2013.08 release?
Were any changes made in this area?

If the problem is still present, you could instrument linux/linux.mk
with some echo statements, particularly in the LINUX_DOWNLOAD_PATCHES
and LINUX_APPLY_PATCHES blocks.

Best regards,
Thomas


More information about the buildroot mailing list