Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
docs:guide-developer:helloworld:chapter8 [2019/06/10 05:17] – Attempt to fix "Infinite Loop" banner warning at start johnadriaandocs:guide-developer:helloworld:chapter8 [2024/12/16 21:31] (current) – syntax highlighting stokito
Line 1: Line 1:
-<- ..:helloworld:chapter7|Previous Chapter ^ ..:helloworld:start|Helloworld overview ^ ..:helloworld:start|Helloworld overview ->+<- ..:helloworld:chapter7|Previous Chapter ^ ..:helloworld:start|Helloworld overview ^ ->
  
 ====== Patching your application: Editing existing files ====== ====== Patching your application: Editing existing files ======
Line 7: Line 7:
   * Commissioned your development environment   * Commissioned your development environment
   * Prepared, configured and built the tools and the cross-compilation toolchain   * Prepared, configured and built the tools and the cross-compilation toolchain
-  * Configured the PATH environment variable+  * Configured the ''PATH'' environment variable
   * Created a simple “Hello, world!” application using native compilation tools   * Created a simple “Hello, world!” application using native compilation tools
   * Created a local package feed for your application   * Created a local package feed for your application
Line 26: Line 26:
  
 In order to utilize the functionality, we create an additional patch which modifies the ''helloworld.c'' file. First, we prepare the source codes for patching, and create a new patch context: In order to utilize the functionality, we create an additional patch which modifies the ''helloworld.c'' file. First, we prepare the source codes for patching, and create a new patch context:
-<code>+<code bash>
 cd /home/buildbot/source cd /home/buildbot/source
 make package/helloworld/{clean,prepare} QUILT=1 make package/helloworld/{clean,prepare} QUILT=1
Line 35: Line 35:
  
 Our task is to modify the ''helloworld.c'' file, so we issue the following command to add the file into the patch context, and open it for editing: Our task is to modify the ''helloworld.c'' file, so we issue the following command to add the file into the patch context, and open it for editing:
-<code>+<code bash>
 quilt edit helloworld.c quilt edit helloworld.c
 </code> </code>
Line 58: Line 58:
  
 Finally navigate back to the back to the root folder of the OpenWrt build system and update the package with our new patch. To do so, issue: Finally navigate back to the back to the root folder of the OpenWrt build system and update the package with our new patch. To do so, issue:
-<code>+<code bash>
 cd /home/buildbot/source cd /home/buildbot/source
 make package/helloworld/update make package/helloworld/update
  • Last modified: 2024/12/16 21:31
  • by stokito