Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | |||
| docs:guide-developer:helloworld:chapter7 [2024/03/29 14:42] – [Including the first patch into the package] jiashuo_lin | docs:guide-developer:helloworld:chapter7 [2024/12/16 21:28] (current) – [Including the first patch into the package] syntax highlighting stokito | ||
|---|---|---|---|
| Line 98: | Line 98: | ||
| In the OpenWrt build system, patches are created and modified in the source code directory, and then migrated over to the package that they belong to. In order for us to migrate the patch data that we just created into the package proper, we issue the following commands: | In the OpenWrt build system, patches are created and modified in the source code directory, and then migrated over to the package that they belong to. In order for us to migrate the patch data that we just created into the package proper, we issue the following commands: | ||
| - | < | + | < |
| cd / | cd / | ||
| make package/ | make package/ | ||
| Line 104: | Line 104: | ||
| At this point, we can review our handiwork by checking the content of our package feed folder, and the content of our original source code folder: | At this point, we can review our handiwork by checking the content of our package feed folder, and the content of our original source code folder: | ||
| - | < | + | < |
| ls -la / | ls -la / | ||
| ls -la / | ls -la / | ||
| Line 112: | Line 112: | ||
| Now, we need to modify '' | Now, we need to modify '' | ||
| - | < | + | < |
| define Build/ | define Build/ | ||
| mkdir -p $(PKG_BUILD_DIR) | mkdir -p $(PKG_BUILD_DIR) | ||
| Line 121: | Line 121: | ||
| We can ensure that our new patch is applied correctly during the build process: | We can ensure that our new patch is applied correctly during the build process: | ||
| - | < | + | < |
| cd / | cd / | ||
| make package/ | make package/ | ||