[Buildroot] Custom kernal patch not being run

buildrootcharles charles.s at mercury-security.com
Tue Sep 2 21:32:59 UTC 2014


Thomas, 

> 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

Based on your result, I decided to re-download Buildroot-2013.08 and run make linux-patch command - no patch installed. I went in and changed my linux configuration from Kernel Version: "Custom tarball" to "3.10.10" and left all other options the same, it attempted to patch the downloaded package with the patch that I have available in my BR2_LINUX_KERNEL_PATCH directory. So I guess now the question is why would it not attempt to install the patch on my "Custom tarball"? Does Buildroot think that since it is a custom tarball that no patches will be required? (I also tried manually editing the .config to change the BR2_LINUX_KERNEL_VERSION from "custom" to "3.10.4" and it attempted to patch the kernel although I would like to have my kernel package under source control so downloading it everytime is not ideal)

WORKING .CONFIG:
#
# Kernel
#
BR2_LINUX_KERNEL=y
BR2_LINUX_KERNEL_LATEST_VERSION=y
# BR2_LINUX_KERNEL_SAME_AS_HEADERS is not set
# BR2_LINUX_KERNEL_CUSTOM_VERSION is not set
# BR2_LINUX_KERNEL_CUSTOM_TARBALL is not set
# BR2_LINUX_KERNEL_CUSTOM_GIT is not set
BR2_LINUX_KERNEL_VERSION="3.10.10"
BR2_LINUX_KERNEL_PATCH="/home/MSC/patch_test"
# BR2_LINUX_KERNEL_USE_DEFCONFIG is not set
BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="/home/MSC/ep4502msc_linux-3.10.4.config"
BR2_LINUX_KERNEL_UBOOT_IMAGE=y
BR2_LINUX_KERNEL_UIMAGE=y
# BR2_LINUX_KERNEL_APPENDED_UIMAGE is not set
# BR2_LINUX_KERNEL_ZIMAGE is not set
# BR2_LINUX_KERNEL_APPENDED_ZIMAGE is not set
# BR2_LINUX_KERNEL_VMLINUX is not set
# BR2_LINUX_KERNEL_IMAGE_TARGET_CUSTOM is not set
BR2_LINUX_KERNEL_UIMAGE_LOADADDR=""
# BR2_LINUX_KERNEL_DTS_SUPPORT is not set
# BR2_LINUX_KERNEL_INSTALL_TARGET is not set


NON-WORKING .CONFIG:
#
# Kernel
#
BR2_LINUX_KERNEL=y
# BR2_LINUX_KERNEL_LATEST_VERSION is not set
# BR2_LINUX_KERNEL_SAME_AS_HEADERS is not set
# BR2_LINUX_KERNEL_CUSTOM_VERSION is not set
BR2_LINUX_KERNEL_CUSTOM_TARBALL=y
# BR2_LINUX_KERNEL_CUSTOM_GIT is not set
BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="file:///home/MSC/linux-3.10.4.tar.gz"
BR2_LINUX_KERNEL_VERSION="custom"
BR2_LINUX_KERNEL_PATCH="/home/MSC/patch_test"
# BR2_LINUX_KERNEL_USE_DEFCONFIG is not set
BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="/home/MSC/ep4502msc_linux-3.10.4.config"
BR2_LINUX_KERNEL_UBOOT_IMAGE=y
BR2_LINUX_KERNEL_UIMAGE=y
# BR2_LINUX_KERNEL_APPENDED_UIMAGE is not set
# BR2_LINUX_KERNEL_ZIMAGE is not set
# BR2_LINUX_KERNEL_APPENDED_ZIMAGE is not set
# BR2_LINUX_KERNEL_VMLINUX is not set
# BR2_LINUX_KERNEL_IMAGE_TARGET_CUSTOM is not set
BR2_LINUX_KERNEL_UIMAGE_LOADADDR=""
# BR2_LINUX_KERNEL_DTS_SUPPORT is not set
# BR2_LINUX_KERNEL_INSTALL_TARGET is not set



This transmission may contain sensitive, confidential and/or privileged
information. The sender does not waive any privilege or confidentiality in the
event of an inadvertent transmission to an unauthorized recipient. In the event
of such a transmission, please kindly contact the sender and delete all copies of
email. It is the recipient's responsibility to check this email and any
attachments for viruses. Mercury Security and the sender accept no responsibility
whatsoever for any loss suffered as a result of a virus entering the recipient's
computer system. Thank you.




--
View this message in context: http://buildroot-busybox.2317881.n4.nabble.com/Custom-kernal-patch-not-being-run-tp78152p78510.html
Sent from the Buildroot (busybox) mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20140902/b803fd59/attachment.html>


More information about the buildroot mailing list