Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
不穿格子衫的农民
TencentOS Tiny
提交
09c1fa76
T
TencentOS Tiny
项目概览
不穿格子衫的农民
/
TencentOS Tiny
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
TencentOS Tiny
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
09c1fa76
编写于
8月 24, 2020
作者:
J
Jimmy
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
improve qmk documentation
上级
772d714a
变更
11
隐藏空白更改
内联
并排
Showing
11 changed file
with
29 addition
and
20 deletion
+29
-20
board/TencentOS_tiny_EVB_MX_Plus/BSP/Makefile
board/TencentOS_tiny_EVB_MX_Plus/BSP/Makefile
+2
-2
doc/qmk/01. Intro_Qmk_A_Makefile_Framework_For_TencentOS.md
doc/qmk/01. Intro_Qmk_A_Makefile_Framework_For_TencentOS.md
+16
-5
platform/hal/Makefile
platform/hal/Makefile
+2
-2
platform/vendor_bsp/Makefile
platform/vendor_bsp/Makefile
+2
-2
qmk/generic/Make.debug
qmk/generic/Make.debug
+1
-1
qmk/generic/Make.depend
qmk/generic/Make.depend
+1
-1
qmk/generic/Make.exec
qmk/generic/Make.exec
+1
-1
qmk/generic/Make.lib
qmk/generic/Make.lib
+1
-1
qmk/generic/Make.subdirs
qmk/generic/Make.subdirs
+1
-1
qmk/generic/Make.tools
qmk/generic/Make.tools
+1
-1
qmk/generic/Make.tpl
qmk/generic/Make.tpl
+1
-3
未找到文件。
board/TencentOS_tiny_EVB_MX_Plus/BSP/Makefile
浏览文件 @
09c1fa76
...
...
@@ -30,13 +30,13 @@ subdirs=
ifneq
(help,$(findstring help,$(MAKECMDGOALS)))
ifeq
(, $(strip ${BP}))
$(error
when
compile
arch/,
must
specify
BP
and
BSP_LSRCS
obviously
,
see
`make
help`)
$(error
when
compile
BSP/,
must
specify
BP
obviously
,
see
`make
help`)
endif
include
${QTOP}/qmk/board-pack/bp.${BP}
ifeq
(,$(strip ${BSP_LSRCS}))
$(error
when
compile
arch/,
must
specify
BP
and
BSP_LSRCS
obviously
,
see
`make
help`)
$(error
when
compile
BSP/,
must
specify
BSP_LSRCS
on
your
bp.${BP}
,
see
`make
help`)
endif
endif
...
...
doc/qmk/01. Intro_Qmk_A_Makefile_Framework_For_TencentOS.md
浏览文件 @
09c1fa76
...
...
@@ -4,7 +4,7 @@
### Qmk 是什么
qmk
, 是TecentOS的一个Makefile编译框架。
[
qmk
](
../../qmk
)
, 是TecentOS的一个Makefile编译框架。
### Qmk 的特点
-
使用简单,任意目录均可make,支持帮助
`make help`
;
...
...
@@ -77,6 +77,16 @@ make help
要求对所有board、所有gcc-toolchain、cpu、arch、bsp适用。
所以一般只包含通用的规则。
| 模板文件 |说明|
| :-------- |:------|
|
[
Make.tpl
](
../../qmk/generic/Make.tpl
)
| 一个目录或者多个目录编译成
`.a`
的通用模板 |
|
[
Make.exec
](
../../qmk/generic/Make.exec
)
| 多个
`.a`
链接成
`elf`
,生成
`.bin`
的通用模板 |
|
[
Make.lib
](
../../qmk/generic/Make.lib
)
| 处理多个
`.o`
生成
`.a`
的通用模板|
|
[
Make.subdirs
](
../../qmk/generic/Make.subdirs
)
| 处理 make递归进入多个subdir make的通用模板|
|
[
Make.depend
](
../../qmk/generic/Make.depend
)
| 处理 一个
`.o`
依赖多个
`.h`
,的规则模板 |
|
[
Make.debug
](
../../qmk/generic/Make.debug
)
| 用于调试Makefile的模板|
|
[
Make.tools
](
../../qmk/generic/Make.debug
)
| 用于屏蔽在多种OS使用qmk,sed、等基础shell/cli命令路径不同 |
### boardpack-Makefile(mk/board-pack)
`board-pack/bp.TencentOS_tiny_EVB_MX_Plus`
属于这类。
...
...
@@ -309,25 +319,26 @@ board-pack 是对 board 在编译时的一个抽象。
## qmk的 make 命令行参数
```
cookie
```
shell
make
help
```
### make V=1 E=1
```
cookie
```
shell
# verbose打印编译时的命令
make
V
=
1
# 调试头文件包含,宏扩展时很有用,会在生成`.o`文件的同时生成`.i`预处理文件
make
E
=
1
```
```
cookie
```
shell
# verbose打印链接时的库搜索过程
make
V
=
2
make
V
=
3
```
## 调试Makefile
```
cookie
```
shell
#进入含Makefile的目录
make
BP
=
TencentOS_tiny_EVB_MX_Plus dm
```
## Qmk 后续
platform/hal/Makefile
浏览文件 @
09c1fa76
...
...
@@ -30,13 +30,13 @@ subdirs=
ifneq
(help,$(findstring help,$(MAKECMDGOALS)))
ifeq
(, $(strip ${BP}))
$(error
when
compile
arch
/,
must
specify
BP
obviously
,
see
`make
help`)
$(error
when
compile
platform
/,
must
specify
BP
obviously
,
see
`make
help`)
endif
include
${QTOP}/qmk/board-pack/bp.${BP}
ifeq
(,$(strip ${PLATFORM_HAL_LSRCS}))
$(error
when
compile
arch
/,
must
specify
PLATFORM_HAL_LSRCS
on
your
bp.${BP}
,
see
`make
help`)
$(error
when
compile
platform
/,
must
specify
PLATFORM_HAL_LSRCS
on
your
bp.${BP}
,
see
`make
help`)
endif
endif
...
...
platform/vendor_bsp/Makefile
浏览文件 @
09c1fa76
...
...
@@ -30,13 +30,13 @@ subdirs=
ifneq
(help,$(findstring help,$(MAKECMDGOALS)))
ifeq
(, $(strip ${BP}))
$(error
when
compile
arch
/,
must
specify
BP
obviously,
see
`make
help`)
$(error
when
compile
platform
/,
must
specify
BP
obviously,
see
`make
help`)
endif
include
${QTOP}/qmk/board-pack/bp.${BP}
ifeq
(,$(strip ${PLATFORM_VENDOR_BSP_LSRCS}))
$(error
when
compile
arch
/,
must
specify
PLATFORM_VENDOR_BSP_LSRCS
on
your
bp.${BP},
see
`make
help`)
$(error
when
compile
platform
/,
must
specify
PLATFORM_VENDOR_BSP_LSRCS
on
your
bp.${BP},
see
`make
help`)
endif
endif
...
...
qmk/generic/Make.debug
浏览文件 @
09c1fa76
# QMK for TencentOS
# @author Jimmin.huang jimmin@163.com
# @author Jimmin.huang jimmin
h
@163.com
# Makefile template
# aim for debug makefile
########################################################################
...
...
qmk/generic/Make.depend
浏览文件 @
09c1fa76
# QMK for TencentOS
# @author Jimmin.huang jimmin@163.com
# @author Jimmin.huang jimmin
h
@163.com
# Makefile template
########################################################################
...
...
qmk/generic/Make.exec
浏览文件 @
09c1fa76
# QMK for TencentOS
# @author Jimmin.huang jimmin@163.com
# @author Jimmin.huang jimmin
h
@163.com
########################################################################
# Make rules/targets for handling user application
...
...
qmk/generic/Make.lib
浏览文件 @
09c1fa76
# QMK for TencentOS
# @author Jimmin.huang jimmin@163.com
# @author Jimmin.huang jimmin
h
@163.com
# Makefile template
########################################################################
...
...
qmk/generic/Make.subdirs
浏览文件 @
09c1fa76
# QMK for TencentOS
# @author Jimmin.huang jimmin@163.com
# @author Jimmin.huang jimmin
h
@163.com
# Makefile template
########################################################################
...
...
qmk/generic/Make.tools
浏览文件 @
09c1fa76
# QMK for TencentOS
# @author Jimmin.huang jimmin@163.com
# @author Jimmin.huang jimmin
h
@163.com
# Makefile template
########################################################################
...
...
qmk/generic/Make.tpl
浏览文件 @
09c1fa76
# QMK for TencentOS
# @author Jimmin.huang jimmin@163.com
# @author Jimmin.huang jimmin
h
@163.com
# Makefile template
########################################################################
...
...
@@ -104,8 +104,6 @@ else
BLDDIR =
$
{
BLDROOT
}
endif
LIBDIR =
$
{
BLDROOT
}
#
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录