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:chapter3 [2018/06/01 08:36] – LEDE -> OpenWrt tmomas | docs:guide-developer:helloworld:chapter3 [2023/04/11 09:24] (current) – Add warning about code editors converting tab to spaces in Makefile. Changed the previous sentence as I have changed the Makefile to use hard tabs itself and reader doesn't need to edit it anymore astro | ||
|---|---|---|---|
| Line 35: | Line 35: | ||
| </ | </ | ||
| - | Using your favorite text editor, enter the following text as the content of the package manifest. Note that several sections of this file are used by the build system' | + | Using your favorite text editor, enter the following text as the content of the package manifest. Note that several sections of this file are used by the build system' |
| <code - makefile> | <code - makefile> | ||
| include $(TOPDIR)/ | include $(TOPDIR)/ | ||
| Line 66: | Line 66: | ||
| # The last command is necessary to ensure our preparation instructions remain compatible with the patching system. | # The last command is necessary to ensure our preparation instructions remain compatible with the patching system. | ||
| define Build/ | define Build/ | ||
| - | | + | mkdir -p $(PKG_BUILD_DIR) |
| - | cp $(SOURCE_DIR)/ | + | cp $(SOURCE_DIR)/ |
| - | $(Build/ | + | $(Build/ |
| endef | endef | ||
| # Package build instructions; | # Package build instructions; | ||
| define Build/ | define Build/ | ||
| - | | + | $(TARGET_CC) $(TARGET_CFLAGS) -o $(PKG_BUILD_DIR)/ |
| - | $(TARGET_CC) $(TARGET_LDFLAGS) -o $(PKG_BUILD_DIR)/ | + | $(TARGET_CC) $(TARGET_LDFLAGS) -o $(PKG_BUILD_DIR)/ |
| endef | endef | ||
| # Package install instructions; | # Package install instructions; | ||
| define Package/ | define Package/ | ||
| - | | + | $(INSTALL_DIR) $(1)/ |
| - | $(INSTALL_BIN) $(PKG_BUILD_DIR)/ | + | $(INSTALL_BIN) $(PKG_BUILD_DIR)/ |
| endef | endef | ||