编译一个ipk
package 下面有例子
1. 复制 package/reg/ 为package/helloworld
2.把helloworld/Makefile 中 所有reg替换成helloworld
3.把helloworld/src/Makefile 中 所有regtight成hellworld
4.把reg.c 重命名为 helloworld.c
5.修改reg.c中的main.c代码
6.Make menuconfig --->Utilites--->helloword 选择为M
7.编译:make package/helloworld/compile V=s // V=99
8.IPK路径 :bin/ramips/packages/base/...
9.安装 opkg install xxxx.ipk
10.运行 xxxx
2.把helloworld/Makefile 中 所有reg替换成helloworld
3.把helloworld/src/Makefile 中 所有regtight成hellworld
4.把reg.c 重命名为 helloworld.c
5.修改reg.c中的main.c代码
6.Make menuconfig --->Utilites--->helloword 选择为M
7.编译:make package/helloworld/compile V=s // V=99
8.IPK路径 :bin/ramips/packages/base/...
9.安装 opkg install xxxx.ipk
10.运行 xxxx
放到/packages/base-files/files/下即可

浙公网安备 33010602011771号