Template:Networking device compiling a single package: Difference between revisions
(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...") |
No edit summary |
||
Line 21: | Line 21: | ||
<ol> | <ol> | ||
<li>While standing in root directory of the project execute this command in the terminal: | <li>While standing in root directory of the project execute this command in the terminal: | ||
make package/{{{package_name}}}/compile</li> | |||
[[File:{{{package_compile_file}}}]] | [[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: | <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: |
Revision as of 11:58, 3 December 2020
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 {{{package_name}}}.
- Open the Kconfig by executing this command in the terminal:
make menuconfig
- Navigate to the menu section of {{{package_name}}} text editor. It can be found under “{{{package_path}}}”
- Select {{{package_name}}} package
- Three times press the “Exit” entry [[File:{{{package_selection_file}}}|border|class=tlt-border|700px]]
- Save the configuration by selecting “Yes” in the prompted window [[File:{{{menuconfig_saving_file}}}|border|class=tlt-border|700px]]
- While standing in root directory of the project execute this command in the terminal: make package/{{{package_name}}}/compile [[File:{{{package_compile_file}}}]]
- The compiled package can be found in the directory {{{compiled_package_path}}}. Upload the {{{package_name}}} install file into the router by executing this command in the terminal:
scp {{{compiled_package_path}}}/{{{package_ipk}}} root@<device_ip_addr>:/tmp
- Connect to your routers command line interface by executing this command in the terminal:
ssh root@<device_ip_addr>
- Change your directory to /tmp directory
- Install the {{{package_name}}} text editor by executing this command in the terminal:
opkg install {{{package_ipk}}}
- Try out the nano text editor by executing this command:
nano example
Note: If the package that you want to compile isn't selected in the Kconfig, the install file of the package will not be created