Overview
hello world 项目 - N/A
hello world project source code
helloworld.c - N/A
编译 helloworld 的 Makefile - n/a
for OpenWRT 的 Makefile - n/a
编译
$ make menuconfig
进入 Utilities > 选中 [*] hello world
。
$ mke package/utils/helloworld/compile V=99
安装 - N/A
$ ls bin/ramips/packages/base/ | grep hello
helloworld_1.0.0-1_ramips_24kec.ipk
Issue
makefile:xx: *** missing separator. Stop
注意 Makefile 中,属于“命令”部分的行需要使用 [Tab],是“字符串”的可以随意(使用两个空格开头)。
Reference
- Creating a package from your application
- OpenWrt add the package method
- OpenWrt上用C来写一个Helloworld
- openwrt> 编译/安装SDK,hello world 项目,Makefile 说明
- [Solved] Add a new package to the source
- Openwrt学习之路-(5-Openwrt package Makefile)
- 单独编译package下的openwrt插件
- Using OpenWrt SDK to Build C/C++ Programs