Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revisionBoth sides next revision
user:ahorner:build-guide [2022/10/01 14:10] ahorneruser:ahorner:build-guide [2022/10/01 14:19] ahorner
Line 27: Line 27:
 make -j $(nproc) defconfig download clean world make -j $(nproc) defconfig download clean world
 </code> </code>
 +
 +===== Buildinfo and .config =====
  
 When choosing what buildinfo you wish to use, you must consider what you want to end up with at the output. Merely taking the buildinfo file for a version and notr making any changes might be desirable if you wish to go through the logn build procedure of the OpenWRT official buildbot, but usually is not. Often, you'll want to make adjustments or even merge multiple buildinfo files together to achieve the desired result. When choosing what buildinfo you wish to use, you must consider what you want to end up with at the output. Merely taking the buildinfo file for a version and notr making any changes might be desirable if you wish to go through the logn build procedure of the OpenWRT official buildbot, but usually is not. Often, you'll want to make adjustments or even merge multiple buildinfo files together to achieve the desired result.
  
-An example of a common scenario in which you may wish to merge multiple buildinfo files together is when building a fresh snapshot image based on the master branch of the OpenWRT GIT. Your final .config file will vary heavily based on what your desired result from the build is and what you wish to use the build for. Here is an example .config which was based on both a snapshot buildinfo (taken from ) and the v22.03.0 buildinfo (taken from ):+An example of a common scenario in which you may wish to merge multiple buildinfo files together is when building a fresh snapshot image based on the master branch of the OpenWRT GIT. Your final .config file will vary heavily based on what your desired result from the build is and what you wish to use the build for. Here is an example .config which was based on both a [[https://downloads.openwrt.org/snapshots/targets/ramips/mt7621/config.buildinfo|snapshot buildinfo]] and a [[https://downloads.openwrt.org/releases/22.03.0/targets/ramips/mt7621/config.buildinfo|v22.03.0 buildinfo]] specifically for the ramips MT7621 platform of devices:
  
 <code> <code>
Line 87: Line 89:
 CONFIG_PACKAGE_zlib=m CONFIG_PACKAGE_zlib=m
 </code> </code>
 +
 +  * The file was initially based on the snapshot buildinfo, will all of the ''CONFIG_TARGET_DEVICE_ramips_mt7621_*'', ''CONFIG_TARGET_DEVICE_PACKAGES_ramips_mt7621_*'' and ''CONFIG_PACKAGE_*'' lines completely removed.
 +  * All lines starting with ''CONFIG_IB'', ''CONFIG_SDK'', ''CONFIG_AUTOREMOVE'' and ''CONFIG_BUILDBOT'' were also removed
 +  * All 'CONFIG_PACKAGE_*'' lines from the v22.03.0 buildinfo were then inserted so that the packageset from that release is included by default in output build images
  • Last modified: 2023/04/03 20:16
  • by ukleinek