Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| docs:guide-developer:helloworld:chapter7 [2021/10/15 08:32] – ↷ Links adapted because of a move operation bobafetthotmail | 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 110: | Line 110: | ||
| As we can see, the OpenWrt build system migrated our newly-created patch file into the folder where the package manifest is. The original source code folder remains completely unaware of our changes. | As we can see, the OpenWrt build system migrated our newly-created patch file into the folder where the package manifest is. The original source code folder remains completely unaware of our changes. | ||
| + | |||
| + | Now, we need to modify '' | ||
| + | <code make Makefile> | ||
| + | define Build/ | ||
| + | mkdir -p $(PKG_BUILD_DIR) | ||
| + | cp $(SOURCE_DIR)/ | ||
| + | $(Build/ | ||
| + | endef | ||
| + | </ | ||
| 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/ | ||