You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<spanclass="normal">2</span></pre></div></td><tdclass="code"><div><pre><span></span><code>[ o.k. ] Started patching process for [ kernel sunxi-edge 4.4.0-rc6 ]
2135
2135
[ o.k. ] Looking for user patches in [ userpatches/kernel/sunxi-edge ]
2136
2136
</code></pre></div></td></tr></table></div>
2137
-
<p>Patches with the same file name and path in the <code>userpatches</code> directory tree override those one in the <code>patch</code> directory. To <em>replace</em> a patch provided by Armbian maintainers, copy it from <code>patch</code> to the corresponding directory in <code>userpatches</code> and edit it to your needs. To <em>disable</em> a patch, create an empty file in the corresponding directory in <code>userpatches</code>.</p>
2137
+
<p>Patches with the same file name and path in the <code>userpatches</code> directory tree override those in the <code>patch</code> directory. To <em>replace</em> a patch provided by Armbian maintainers, copy it from <code>patch</code> to the corresponding directory in <code>userpatches</code> and edit it to your needs. To <em>disable</em> a patch, create an empty file in the corresponding directory in <code>userpatches</code>.</p>
<p>A configuration file named <code>userpatches/config-<something>.conf.sh</code> (<code>.conf</code> also allowed) is a bash script that is sourced during the build if <code>./compile.sh something</code> is issued. All parameters which normally are passed via command line can be used (<code>PARAM1=value1</code><code>PARAM2=value</code>) by using the same syntax, one separate line per <code>PARAM</code>. Command-line parameters still can override what is the config file. More advanced use cases can use conditionals, define functions to implement hooks, source other/common config files, etc. A few, quite complex, examples can be found <ahref="https://github.com/lanefu/armbian-userpatches-example-indiedroid-nova">here</a>.</p>
2140
2140
<h2id="legacy-user-provided-configuration-deprecated-support-for-this-will-be-removed-at-some-point">Legacy user provided configuration (deprecated, support for this will be removed at some point)<aclass="headerlink" href="#legacy-user-provided-configuration-deprecated-support-for-this-will-be-removed-at-some-point" title="Permanent link">¶</a></h2>
2141
-
<p>If the file <code>userpatches/lib.config</code> exists, it will be called and can override the particular kernel and u-boot versions. It can also add additional packages to be installed, by adding to <code>PACKAGE_LIST_ADDITIONAL</code>. For a comprehensive list of available variables, look through <code>lib/functions/configuration/main-config.sh</code>. Some examples of what you can change:</p>
2141
+
<p>If the file <code>userpatches/lib.config</code> exists, it will be called and can override the particular kernel and u-boot versions. For a comprehensive list of available variables, look through <code>lib/functions/configuration/main-config.sh</code>. Some examples of what you can change:</p>
0 commit comments