Compare commits
5 Commits
collab-sdk
...
v1.10-bran
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
02e2f5351d | ||
|
|
513c076f8a | ||
|
|
5083200b04 | ||
|
|
1914305715 | ||
|
|
69cf4c52ce |
6
.known-issues/doc/duplicate.conf
Normal file
6
.known-issues/doc/duplicate.conf
Normal file
@@ -0,0 +1,6 @@
|
||||
#
|
||||
^(?P<filename>([\-:\\/\w\.])+[/\\]doc[/\\]api[/\\]file_system.rst):(?P<lineno>[0-9]+): WARNING: Duplicate declaration.
|
||||
#
|
||||
^(?P<filename>([\-:\\/\w\.])+[/\\]doc[/\\]api[/\\]io_interfaces.rst):(?P<lineno>[0-9]+): WARNING: Duplicate declaration.
|
||||
#
|
||||
^(?P<filename>([\-:\\/\w\.])+[/\\]doc[/\\]subsystems[/\\]sensor.rst):(?P<lineno>[0-9]+): WARNING: Duplicate declaration.
|
||||
@@ -781,3 +781,12 @@ if(CONFIG_BOARD_DEPRECATED)
|
||||
removed in version ${CONFIG_BOARD_DEPRECATED}"
|
||||
)
|
||||
endif()
|
||||
|
||||
if(CONFIG_X86 AND CONFIG_USERSPACE AND NOT CONFIG_X86_NO_MELTDOWN)
|
||||
message(WARNING "
|
||||
WARNING: You have enabled CONFIG_USERSPACE on an x86-based target.
|
||||
If your CPU is vulnerable to the Meltdown CPU bug, security of
|
||||
supervisor-only memory pages is not guaranteed. This version of Zephyr
|
||||
does not contain a fix for this issue."
|
||||
)
|
||||
endif()
|
||||
|
||||
@@ -83,6 +83,12 @@ config X86_PAE_MODE
|
||||
needed for PAE tables is more than twice that of 32-Bit paging
|
||||
because each PAE entry is 64bits wide.
|
||||
Note: Do not enable in RAM constrained devices.
|
||||
|
||||
config X86_NO_MELTDOWN
|
||||
bool
|
||||
help
|
||||
This hidden option should be set on a per-SOC basis to indicate that
|
||||
a particular SOC is not vulnerable to the Meltdown CPU vulnerability.
|
||||
endmenu
|
||||
|
||||
config X86_ENABLE_TSS
|
||||
|
||||
@@ -12,6 +12,9 @@ config SOC_SERIES
|
||||
config X86_IAMCU
|
||||
def_bool y
|
||||
|
||||
config X86_NO_MELTDOWN
|
||||
def_bool y
|
||||
|
||||
config TOOLCHAIN_VARIANT
|
||||
default "iamcu" if X86_IAMCU
|
||||
default "" if !X86_IAMCU
|
||||
|
||||
14
doc/_templates/breadcrumbs.html
vendored
Normal file
14
doc/_templates/breadcrumbs.html
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
{% extends "!breadcrumbs.html" %}
|
||||
{% block breadcrumbs %}
|
||||
<!-- {{ docs_title }} -->
|
||||
{# parameterize default name "Docs" in breadcrumb via docs_title in conf.py #}
|
||||
{% if not docs_title %}
|
||||
{% set docs_title = "Docs" %}
|
||||
{% endif %}
|
||||
|
||||
<li><a href="{{ pathto(master_doc) }}">{{ docs_title }}</a> »</li>
|
||||
{% for doc in parents %}
|
||||
<li><a href="{{ doc.link|e }}">{{ doc.title }}</a> »</li>
|
||||
{% endfor %}
|
||||
<li>{{ title }}</li>
|
||||
{% endblock %}
|
||||
10
doc/_templates/layout.html
vendored
Normal file
10
doc/_templates/layout.html
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
{% extends "!layout.html" %}
|
||||
{% block document %}
|
||||
{% if is_release %}
|
||||
<div class="wy-alert wy-alert-danger">
|
||||
The <a href="/{{ pagename }}.html">latest development version</a>
|
||||
of this page may be more current than this released {{ version }} version.
|
||||
</div>
|
||||
{% endif %}
|
||||
{{ super() }}
|
||||
{% endblock %}
|
||||
28
doc/_templates/versions.html
vendored
Normal file
28
doc/_templates/versions.html
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
{# Add rst-badge after rst-versions for small badge style. #}
|
||||
<div class="rst-versions" data-toggle="rst-versions" role="note" aria-label="versions">
|
||||
<span class="rst-current-version" data-toggle="rst-current-version">
|
||||
<span class="fa fa-book"> Zephyr Project</span>
|
||||
v: {{ current_version }}
|
||||
<span class="fa fa-caret-down"></span>
|
||||
</span>
|
||||
<div class="rst-other-versions">
|
||||
<dl>
|
||||
<dt>{{ _('Versions') }}</dt>
|
||||
{% for slug, url in versions %}
|
||||
<dd><a href="{{ url }}">{{ slug }}</a></dd>
|
||||
{% endfor %}
|
||||
</dl>
|
||||
<dl>
|
||||
<dt>{{ _('On zephyrproject.org') }}</dt>
|
||||
<dd>
|
||||
<a href="https://www.zephyrproject.org/">Project Home</a>
|
||||
</dd>
|
||||
<dd>
|
||||
<a href="https://www.zephyrproject.org/developers/#downloads">Downloads</a>
|
||||
</dd>
|
||||
<dd>
|
||||
<a href="https://github.com/zephyrproject-rtos/zephyr/releases">Releases</a>
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</div>
|
||||
39
doc/conf.py
39
doc/conf.py
@@ -53,6 +53,10 @@ project = u'Zephyr Project'
|
||||
copyright = u'2015-2017 Zephyr Project members and individual contributors.'
|
||||
author = u'many'
|
||||
|
||||
if "ZEPHYR_BASE" not in os.environ:
|
||||
sys.stderr.write("$ZEPHYR_BASE environment variable undefined.\n")
|
||||
exit(1)
|
||||
ZEPHYR_BASE = os.environ["ZEPHYR_BASE"]
|
||||
|
||||
# The following code tries to extract the information by reading the Makefile,
|
||||
# when Sphinx is run directly (e.g. by Read the Docs).
|
||||
@@ -61,7 +65,7 @@ try:
|
||||
version_minor = None
|
||||
patchlevel = None
|
||||
extraversion = None
|
||||
for line in open('../VERSION'):
|
||||
for line in open(os.path.join(ZEPHYR_BASE, 'VERSION')):
|
||||
key, val = [x.strip() for x in line.split('=', 2)]
|
||||
if key == 'VERSION_MAJOR':
|
||||
version_major = val
|
||||
@@ -76,7 +80,7 @@ try:
|
||||
except:
|
||||
pass
|
||||
finally:
|
||||
if version_major and version_minor and patchlevel and extraversion:
|
||||
if version_major and version_minor and patchlevel and extraversion is not None :
|
||||
version = release = version_major + '.' + version_minor + '.' + patchlevel
|
||||
if extraversion != '':
|
||||
version = release = version + '-' + extraversion
|
||||
@@ -148,19 +152,9 @@ rst_epilog = """
|
||||
|
||||
# -- Options for HTML output ----------------------------------------------
|
||||
|
||||
try:
|
||||
import sphinx_rtd_theme
|
||||
except ImportError:
|
||||
html_theme = 'zephyr'
|
||||
html_theme_path = ['./themes']
|
||||
else:
|
||||
html_theme = "sphinx_rtd_theme"
|
||||
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
|
||||
|
||||
if tags.has('daily') or tags.has('release'):
|
||||
html_theme = 'zephyr-docs-theme'
|
||||
html_theme_path = ['./themes']
|
||||
|
||||
import sphinx_rtd_theme
|
||||
html_theme = "sphinx_rtd_theme"
|
||||
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
|
||||
|
||||
if tags.has('release'):
|
||||
is_release = True
|
||||
@@ -182,12 +176,12 @@ html_title = "Zephyr Project Documentation"
|
||||
|
||||
# The name of an image file (relative to this directory) to place at the top
|
||||
# of the sidebar.
|
||||
#html_logo = None
|
||||
html_logo = 'images/Zephyr-Kite-logo.png'
|
||||
|
||||
# The name of an image file (within the static path) to use as favicon of the
|
||||
# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
|
||||
# pixels large.
|
||||
#html_favicon = None
|
||||
#html_favicon = 'images/zp_favicon.png'
|
||||
|
||||
# Add any paths that contain custom static files (such as style sheets) here,
|
||||
# relative to this directory. They are copied after the builtin static files,
|
||||
@@ -224,7 +218,7 @@ html_use_index = True
|
||||
html_split_index = True
|
||||
|
||||
# If true, links to the reST sources are added to the pages.
|
||||
#html_show_sourcelink =
|
||||
html_show_sourcelink = False
|
||||
|
||||
# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
|
||||
html_show_sphinx = False
|
||||
@@ -362,6 +356,14 @@ html_context = {
|
||||
'show_license': html_show_license,
|
||||
'docs_title': docs_title,
|
||||
'is_release': is_release,
|
||||
'theme_logo_only': False,
|
||||
'current_version': version,
|
||||
'versions': ( ("latest", "/"),
|
||||
("1.12.0", "/1.12.0/"),
|
||||
("1.11.0", "/1.11.0/"),
|
||||
("1.10.0", "/1.10.0/"),
|
||||
("1.9.2", "/1.9.0/"),
|
||||
)
|
||||
}
|
||||
|
||||
extlinks = {'jira': ('https://jira.zephyrproject.org/browse/%s', ''),
|
||||
@@ -382,3 +384,4 @@ linkcheck_anchors = False
|
||||
|
||||
def setup(app):
|
||||
app.add_stylesheet("zephyr-custom.css")
|
||||
app.add_javascript("zephyr-custom.js")
|
||||
|
||||
BIN
doc/images/Zephyr-Kite-logo.png
Normal file
BIN
doc/images/Zephyr-Kite-logo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 27 KiB |
BIN
doc/images/zp_favicon.png
Normal file
BIN
doc/images/zp_favicon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 534 B |
125
doc/static/zephyr-custom.css
vendored
125
doc/static/zephyr-custom.css
vendored
@@ -1,5 +1,104 @@
|
||||
/* -- Extra CSS styles for Zephyr content (RTD theme) ----------------------- */
|
||||
|
||||
/* make the page width fill the window */
|
||||
.wy-nav-content {
|
||||
max-width: none;
|
||||
}
|
||||
|
||||
/* pygments tweak for white-on-black console */
|
||||
/* hold off on this change for now
|
||||
|
||||
.highlight-console .highlight {
|
||||
background-color: black;
|
||||
}
|
||||
.highlight-console .highlight .go, .highlight-console .highlight .gp {
|
||||
color: white;
|
||||
}
|
||||
.highlight-console .highlight .hll {
|
||||
background-color: white;
|
||||
}
|
||||
.highlight-console .highlight .hll .go, .highlight-console .highlight .hll .gp {
|
||||
color: black;
|
||||
font-weight: bold;
|
||||
}
|
||||
*/
|
||||
|
||||
/* tweak doc version selection
|
||||
.rst-versions {
|
||||
position: static;
|
||||
border-top: none;
|
||||
padding: 0px;
|
||||
}
|
||||
*/
|
||||
|
||||
.rst-versions .rst-current-version {
|
||||
padding: 5px;
|
||||
background-color: #2980B9;
|
||||
color: #80FF80;
|
||||
}
|
||||
|
||||
.rst-versions .rst-other-versions {
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
div.rst-other-versions dl {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
|
||||
/* code block highlight color in rtd changed to lime green, no no no */
|
||||
|
||||
.rst-content tt.literal, .rst-content code.literal, .highlight {
|
||||
background: #f0f0f0;
|
||||
}
|
||||
.rst-content tt.literal, .rst-content code.literal {
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
/* Make the version number more visible */
|
||||
.wy-side-nav-search>div.version {
|
||||
color: rgba(255,255,255,1);
|
||||
}
|
||||
|
||||
/* squish the space between a paragraph before a list */
|
||||
div > p + ul, div > p + ol {
|
||||
margin-top: -20px;
|
||||
}
|
||||
|
||||
/* add some space before the figure caption */
|
||||
p.caption {
|
||||
# border-top: 1px solid;
|
||||
margin-top: 1em;
|
||||
}
|
||||
|
||||
/* decrease line leading a bit, 24px is too wide */
|
||||
|
||||
p {
|
||||
line-height: 22px;
|
||||
}
|
||||
|
||||
/* add a colon after the figure/table number (before the caption) */
|
||||
span.caption-number::after {
|
||||
content: ": ";
|
||||
}
|
||||
|
||||
p.extrafooter {
|
||||
text-align: right;
|
||||
margin-top: -36px;
|
||||
}
|
||||
|
||||
table.align-center {
|
||||
display: table !important;
|
||||
}
|
||||
|
||||
|
||||
.code-block-caption {
|
||||
color: #000;
|
||||
font: italic 85%/1 arial,sans-serif;
|
||||
padding: 1em 0;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* make .. hlist:: tables fill the page */
|
||||
table.hlist {
|
||||
width: 95% !important;
|
||||
@@ -29,3 +128,29 @@ th,td {
|
||||
.rst-content div.breathe-sectiondef {
|
||||
padding-left: 0 !important;
|
||||
}
|
||||
|
||||
/* tweak display of option tables to make first column wider */
|
||||
col.option {
|
||||
width: 25%;
|
||||
}
|
||||
|
||||
/* tweak format for <kbd> (:kbd:`F10`) */
|
||||
kbd
|
||||
{
|
||||
-moz-border-radius:3px;
|
||||
-moz-box-shadow:0 1px 0 rgba(0,0,0,0.2),0 0 0 2px #fff inset;
|
||||
-webkit-border-radius:3px;
|
||||
-webkit-box-shadow:0 1px 0 rgba(0,0,0,0.2),0 0 0 2px #fff inset;
|
||||
background-color:#f7f7f7;
|
||||
border:1px solid #ccc;
|
||||
border-radius:3px;
|
||||
box-shadow:0 1px 0 rgba(0,0,0,0.2),0 0 0 2px #fff inset;
|
||||
color:#333;
|
||||
display:inline-block;
|
||||
font-family:Arial,Helvetica,sans-serif;
|
||||
font-size:11px;
|
||||
line-height:1.4;
|
||||
margin:0 .1em;
|
||||
padding:.1em .6em;
|
||||
text-shadow:0 1px 0 #fff;
|
||||
}
|
||||
|
||||
6
doc/static/zephyr-custom.js
vendored
Normal file
6
doc/static/zephyr-custom.js
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
/* tweak logo link to the project home page in a new tab*/
|
||||
|
||||
$(document).ready(function(){
|
||||
$( ".icon-home" ).attr("href", "https://zephyrproject.org/");
|
||||
$( ".icon-home" ).attr("target", "_blank");
|
||||
});
|
||||
@@ -1794,11 +1794,9 @@ class TestSuite:
|
||||
bl = os.path.join(p, "qemu.log")
|
||||
|
||||
if os.path.exists(bl):
|
||||
with open(bl, "r") as f:
|
||||
log = f.read()
|
||||
ansi_escape = re.compile(r'\x1b[^m]*m')
|
||||
output = ansi_escape.sub('', str(log))
|
||||
failure.text = (escape(output))
|
||||
with open(bl, "rb") as f:
|
||||
log = f.read().decode("utf-8")
|
||||
failure.text = log
|
||||
|
||||
result = ET.tostring(eleTestsuites)
|
||||
f = open(filename, 'wb')
|
||||
|
||||
@@ -20,7 +20,8 @@ struct getaddrinfo_state {
|
||||
const struct zsock_addrinfo *hints;
|
||||
struct k_sem sem;
|
||||
int status;
|
||||
int idx;
|
||||
u16_t idx;
|
||||
u16_t port;
|
||||
};
|
||||
|
||||
static struct zsock_addrinfo ai_arr[2];
|
||||
@@ -30,7 +31,7 @@ static void dns_resolve_cb(enum dns_resolve_status status,
|
||||
struct dns_addrinfo *info, void *user_data)
|
||||
{
|
||||
struct getaddrinfo_state *state = user_data;
|
||||
struct zsock_addrinfo *ai = ai_arr + state->idx;
|
||||
struct zsock_addrinfo *ai;
|
||||
int socktype = SOCK_STREAM;
|
||||
int proto;
|
||||
|
||||
@@ -45,7 +46,14 @@ static void dns_resolve_cb(enum dns_resolve_status status,
|
||||
return;
|
||||
}
|
||||
|
||||
if (state->idx >= ARRAY_SIZE(ai_arr)) {
|
||||
NET_DBG("getaddrinfo entries overflow");
|
||||
return;
|
||||
}
|
||||
|
||||
ai = ai_arr + state->idx;
|
||||
memcpy(&ai->_ai_addr, &info->ai_addr, info->ai_addrlen);
|
||||
net_sin(&ai->_ai_addr)->sin_port = state->port;
|
||||
ai->ai_addr = &ai->_ai_addr;
|
||||
ai->ai_addrlen = info->ai_addrlen;
|
||||
memcpy(&ai->_ai_canonname, &info->ai_canonname,
|
||||
@@ -90,6 +98,7 @@ int zsock_getaddrinfo(const char *host, const char *service,
|
||||
|
||||
ai_state.hints = hints;
|
||||
ai_state.idx = 0;
|
||||
ai_state.port = htons(port);
|
||||
k_sem_init(&ai_state.sem, 0, UINT_MAX);
|
||||
|
||||
/* Link entries in advance */
|
||||
|
||||
Reference in New Issue
Block a user