[Buildroot] [OT?] Re: Applying custom kernel patches

Steve Calfee nospamcalfee at yahoo.com
Mon Mar 7 21:46:35 UTC 2011


----- Original Message ----

> From: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
> To: buildroot at busybox.net
> Sent: Mon, March 7, 2011 5:50:14 AM
> Subject: Re: [Buildroot] [OT?] Re:  Applying custom kernel patches
> 
> Hello Steeve,
> 
> On Fri, 4 Mar 2011 14:56:28 -0800 (PST)
> Steve Calfee  <nospamcalfee at yahoo.com>  wrote:
> 
> > Yes, Docs are always nice. For now though from my boards  defconfig:
> > 
> > #
> > # Kernel
> > #
> >  BR2_LINUX_KERNEL=y
> > BR2_LINUX_KERNEL_2_6_36=y
> > #  BR2_LINUX_KERNEL_CUSTOM_VERSION is not set
> > #  BR2_LINUX_KERNEL_CUSTOM_TARBALL is not set
> >  BR2_LINUX_KERNEL_VERSION="2.6.36.1"
> >  
BR2_LINUX_KERNEL_PATCH="$(TOPDIR)/target/device/beagleboard/kernel-patches/"
> >  # BR2_LINUX_KERNEL_USE_DEFCONFIG is not set
> >  BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
> >  
>BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="$(TOPDIR)/target/device/beagleboard/beagleboard-linux-2.6.36.1.config"
>
> > 
> > BR2_LINUX_KERNEL_UIMAGE=y
> > # BR2_LINUX_KERNEL_ZIMAGE is not  set
> > 
> > and the files I have put in target/device:
> > 
> > 
> > ~/buildroot/bbkernel/target/device$ tree beagleboard/
> >  beagleboard/
> > |-- Config.in
> > |-- Makefile.in
> > |-- README
> > |--  beagleboard-busybox-1.17.x.config
> > |--  beagleboard-linux-2.6.36.1.config
> > |-- beagleboard_defconfig
> > |--  beagleboard_external_toolchain_defconfig
> > |-- dropbear
> > |    |-- dropbear_dss_host_key
> > |   `-- dropbear_rsa_host_key
> > |--  kernel-patches
> > |   `--  linux-kernel-2.6.36-bb-xm-usb-pwr.patch
> > |-- patchrootfs.sh
> > |-- shadow
> > `--  skeleton
> >     `-- etc
> >         |--  dropbear
> >         |   |--  dropbear_dss_host_key
> >         |   `--  dropbear_rsa_host_key
> >         |--  network
> >         |   `--  interfaces
> >         `-- shadow
> > 
> > 6  directories, 16 files
> 
> This is a good organisation, even though in a  recent Buildroot
> (2011.02), the board-specific stuff would rather go  into
> board/<manufacturer>/<product>, and there would be  no
> board-specific Config.in and Makefile.in. The rest would look  essential
> the same.
> 

Hi Thomas,

Looking at those two files, I guess Makefile.in could be replace with more 
BR2_defines, but how do you replace a custom config system? I like to understand 
"the plan" and I will try to comply with the design.

Regards, Steve


      



More information about the buildroot mailing list