Changes

Created page with "==Compiling a single package== If you ever need to compile a single package you do not need to compile the whole firmware. As an example we will try to compile a {{{package_t..."
==Compiling a single package==

If you ever need to compile a single package you do not need to compile the whole firmware. As an example we will try to compile a {{{package_type}}} called <b>{{{package_name}}}</b>.
----

<li>Now we need to do this steps:</li>
<ol>
<li>Open the <b>Kconfig</b> by executing this command in the terminal:
<pre>make menuconfig</pre></li>
<li>Navigate to the menu section of <b>{{{package_name}}}</b> text editor. It can be found under “{{{package_path}}}”</li>
<li>Select <b>{{{package_name}}}</b> package</li>
<li>Three times press the “<b>Exit</b>” entry</li>

[[File:{{{package_selection_file}}}|border|class=tlt-border|700px]]
<li>Save the configuration by selecting “<b>Yes</b>” in the prompted window</li>
[[File:{{{menuconfig_saving_file}}}|border|class=tlt-border|700px]]
</ol>
</li>
----
<li>When the package is selected we need to compile and install him:
<ol>
<li>While standing in root directory of the project execute this command in the terminal:
<pre>make package/{{{package_name}}}/compile</pre></li>
[[File:{{{package_compile_file}}}]]
<li>The compiled package can be found in the directory <b>{{{compiled_package_path}}}</b>. Upload the <b>{{{package_name}}}</b> install file into the router by executing this command in the terminal:
<pre>scp {{{compiled_package_path}}}/{{{package_ipk}}} root@<device_ip_addr>:/tmp</pre></li>
<li>Connect to your routers command line interface by executing this command in the terminal:
<pre>ssh root@<device_ip_addr></pre></li>
<li>Change your directory to <b>/tmp</b> directory</li>
<li>Install the <b>{{{package_name}}}</b> text editor by executing this command in the terminal:
<pre>opkg install {{{package_ipk}}}</pre></li>
<li>Try out the nano text editor by executing this command:
<pre>nano example</pre></li>
</ol>[[File:{{{package_install_file}}}]]
</li>
<b>Note:</b> If the package that you want to compile isn't selected in the <b>Kconfig</b>, the install file of the package will not be created

Navigation menu