OpenWRT - devtool - new hellowrold package (DRAFT)
OpenWRT - devtool - new hellowrold package (DRAFT)
Quick start
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# Download openwrt
$ git clone <openwrt-url>
$ cd openwrt/
$ make
# Download openwrt_devtool
$ git clone https://github.com/TUNGHUAYU/openwrt_devtool.git
$ cd openwrt_devtool/
# New package from built-in sample ( hello-world )
# $ devtool new <pkg-name>
$ devtool new my-hello-world
search_path: /home/terryyu.linux/openwrt_devtool/.devtool/ref-Makefile/
---
|No. |PKG-NAME |PKG-PATH
|1 |Makefile.autotools.generic |${search_path}/Makefile.autotools.generic
|2 |Makefile.cmake.generic |${search_path}/Makefile.cmake.generic
|3 |Makefile.none.prpl_plugin |${search_path}/Makefile.none.prpl_plugin
---
Please select Makefile style:
Select: 2
Select: Makefile.cmake.generic
PKG_NAME:=my-hello-world
PKG_SOURCE_VERSION:=dev
PKG_SOURCE_URL:=file:///home/terryyu.linux/openwrt_devtool/workspace/SOURCES/my-hello-world
CATEGORY:=devtool-pkg
SUBMENU:=misc
TITLE:=short description here
long description here
search_path: /home/terryyu.linux/openwrt_devtool/.devtool/ref-sources/
---
|No. |PKG-NAME |PKG-PATH
|1 |cmake_hello-world |${search_path}/cmake_hello-world
|2 |none_prpl-plugin-generic |${search_path}/none_prpl-plugin-generic
---
Please select sample source:
Select: 1
Select: cmake_hello-world
Initialized empty Git repository in /home/terryyu.linux/openwrt_devtool/workspace/SOURCES/my-hello-world/.git/
[master (root-commit) 323d8e0] first commit
6 files changed, 80 insertions(+)
create mode 100644 .gitignore
create mode 100644 CMakeLists.txt
create mode 100644 README.md
create mode 100644 inc/foo.h
create mode 100644 src/foo.c
create mode 100644 src/main.c
Switched to a new branch 'dev'
Activate feed -> "src-link feed_devtool"
Updating feed 'feed_devtool' from '/home/terryyu.linux/openwrt_devtool/workspace/FEEDS/feed_devtool' ...
Create index file './feeds/feed_devtool.index'
Collecting package info: done
Installing package 'my-hello-world' from feed_devtool
This post is licensed under CC BY 4.0 by the author.