Changes between Version 25 and Version 26 of linux/kernel


Ignore:
Timestamp:
07/06/2021 06:17:11 PM (3 years ago)
Author:
Cale Collins
Comment:

added save defconfig section

Legend:

Unmodified
Added
Removed
Modified
  • linux/kernel

    v25 v26  
    447447
    448448See Linux documentation for more information.
     449
     450= Creating your own defconfig. 
     451
     452The config files contained in the Gateworks kernel repos generally enable nearly everything or almost nothing.  This can be inconvenient if you're looking for a config that represents what's minimally needed while enabling what's necessary for the board to function as it's intended. 
     453
     454For Buildroot we have: [http://dev.gateworks.com/buildroot/ventana/minimal/gwventana_minimal_kernel_defconfig gwventana_minimal_kernel_defconfig] (for Ventana)
     455
     456This config can be adapted to be used with Ubuntu by disabling CPIO and enabling module support.  With this done other features can be added that are specific to your application such as radio or modem support.  Configuring the kernel can be an iterative process making it beneficial to create a defconfig once the essential features required have been enabled.
     457
     4581. Make the changes required by your application using "make menuconfig", save and exit.
     4591. Execute "make savedefconfig", this will create the file "./defconfig".
     4601. Copy or move this file to "arch/arm/configs" or whatever is appropriate for your platform.
     4611. Rename the file so the filename ends in "_defconfig", for example "filename_defconfig".
     4621. When this config is required, "make distclean" to wipe out the old config and any patches, then "make <filename_defconfig>"
     4631. If required use "make menuconfig" to make additional changes then save.  If no changes are required proceed with your build as normal. 
     464
     465== Make HELP
     466
     467Executing "make help" will provide a complete list of available targets with explanations.  This list will also include available defconfigs.   
     468   
     469