https://openwrt.org/docs/guide-developer/packages
最好现在本机测试没问题之后,才烧到路由器上去调试
在系统里面,为新项目新建一个项目文件夹,将需要的代码copy到这个文件夹。不要动openwrt build成功的golden源码。
将src的代码调试到没问题之后,才编译到package
w@w:/home/openwrt/package/example/src$ ls
Makefile myapp.c
w@w:/home/openwrt/package/example/src$ make
cc -o myapp myapp.c -Wall
w@w:/home/openwrt/package/example/src$ ls
Makefile myapp myapp.c
## myapp.c, 位于/home/openwrt/package/example/src 目录下面
/*
* otrx
*
* Copyright (C) 2015-2017 Rafał Miłecki <zajec5@gmail.com>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the Free
* Software Foundation; either version