Initial commit
This commit is contained in:
@@ -0,0 +1,225 @@
|
||||
# Makefile for Sphinx documentation
|
||||
#
|
||||
|
||||
# You can set these variables from the command line.
|
||||
SPHINXOPTS =
|
||||
SPHINXBUILD = sphinx-build
|
||||
PAPER =
|
||||
BUILDDIR = _build
|
||||
|
||||
# Internal variables.
|
||||
PAPEROPT_a4 = -D latex_paper_size=a4
|
||||
PAPEROPT_letter = -D latex_paper_size=letter
|
||||
ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
|
||||
# the i18n builder cannot share the environment and doctrees with the others
|
||||
I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
|
||||
|
||||
.PHONY: help
|
||||
help:
|
||||
@echo "Please use \`make <target>' where <target> is one of"
|
||||
@echo " html to make standalone HTML files"
|
||||
@echo " dirhtml to make HTML files named index.html in directories"
|
||||
@echo " singlehtml to make a single large HTML file"
|
||||
@echo " pickle to make pickle files"
|
||||
@echo " json to make JSON files"
|
||||
@echo " htmlhelp to make HTML files and a HTML help project"
|
||||
@echo " qthelp to make HTML files and a qthelp project"
|
||||
@echo " applehelp to make an Apple Help Book"
|
||||
@echo " devhelp to make HTML files and a Devhelp project"
|
||||
@echo " epub to make an epub"
|
||||
@echo " epub3 to make an epub3"
|
||||
@echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
|
||||
@echo " latexpdf to make LaTeX files and run them through pdflatex"
|
||||
@echo " latexpdfja to make LaTeX files and run them through platex/dvipdfmx"
|
||||
@echo " text to make text files"
|
||||
@echo " man to make manual pages"
|
||||
@echo " texinfo to make Texinfo files"
|
||||
@echo " info to make Texinfo files and run them through makeinfo"
|
||||
@echo " gettext to make PO message catalogs"
|
||||
@echo " changes to make an overview of all changed/added/deprecated items"
|
||||
@echo " xml to make Docutils-native XML files"
|
||||
@echo " pseudoxml to make pseudoxml-XML files for display purposes"
|
||||
@echo " linkcheck to check all external links for integrity"
|
||||
@echo " doctest to run all doctests embedded in the documentation (if enabled)"
|
||||
@echo " coverage to run coverage check of the documentation (if enabled)"
|
||||
@echo " dummy to check syntax errors of document sources"
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
rm -rf $(BUILDDIR)/*
|
||||
|
||||
.PHONY: html
|
||||
html:
|
||||
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
|
||||
@echo
|
||||
@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
|
||||
|
||||
.PHONY: dirhtml
|
||||
dirhtml:
|
||||
$(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml
|
||||
@echo
|
||||
@echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml."
|
||||
|
||||
.PHONY: singlehtml
|
||||
singlehtml:
|
||||
$(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(BUILDDIR)/singlehtml
|
||||
@echo
|
||||
@echo "Build finished. The HTML page is in $(BUILDDIR)/singlehtml."
|
||||
|
||||
.PHONY: pickle
|
||||
pickle:
|
||||
$(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle
|
||||
@echo
|
||||
@echo "Build finished; now you can process the pickle files."
|
||||
|
||||
.PHONY: json
|
||||
json:
|
||||
$(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json
|
||||
@echo
|
||||
@echo "Build finished; now you can process the JSON files."
|
||||
|
||||
.PHONY: htmlhelp
|
||||
htmlhelp:
|
||||
$(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp
|
||||
@echo
|
||||
@echo "Build finished; now you can run HTML Help Workshop with the" \
|
||||
".hhp project file in $(BUILDDIR)/htmlhelp."
|
||||
|
||||
.PHONY: qthelp
|
||||
qthelp:
|
||||
$(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp
|
||||
@echo
|
||||
@echo "Build finished; now you can run "qcollectiongenerator" with the" \
|
||||
".qhcp project file in $(BUILDDIR)/qthelp, like this:"
|
||||
@echo "# qcollectiongenerator $(BUILDDIR)/qthelp/meta-raspberrypi.qhcp"
|
||||
@echo "To view the help file:"
|
||||
@echo "# assistant -collectionFile $(BUILDDIR)/qthelp/meta-raspberrypi.qhc"
|
||||
|
||||
.PHONY: applehelp
|
||||
applehelp:
|
||||
$(SPHINXBUILD) -b applehelp $(ALLSPHINXOPTS) $(BUILDDIR)/applehelp
|
||||
@echo
|
||||
@echo "Build finished. The help book is in $(BUILDDIR)/applehelp."
|
||||
@echo "N.B. You won't be able to view it unless you put it in" \
|
||||
"~/Library/Documentation/Help or install it in your application" \
|
||||
"bundle."
|
||||
|
||||
.PHONY: devhelp
|
||||
devhelp:
|
||||
$(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp
|
||||
@echo
|
||||
@echo "Build finished."
|
||||
@echo "To view the help file:"
|
||||
@echo "# mkdir -p $$HOME/.local/share/devhelp/meta-raspberrypi"
|
||||
@echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/meta-raspberrypi"
|
||||
@echo "# devhelp"
|
||||
|
||||
.PHONY: epub
|
||||
epub:
|
||||
$(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub
|
||||
@echo
|
||||
@echo "Build finished. The epub file is in $(BUILDDIR)/epub."
|
||||
|
||||
.PHONY: epub3
|
||||
epub3:
|
||||
$(SPHINXBUILD) -b epub3 $(ALLSPHINXOPTS) $(BUILDDIR)/epub3
|
||||
@echo
|
||||
@echo "Build finished. The epub3 file is in $(BUILDDIR)/epub3."
|
||||
|
||||
.PHONY: latex
|
||||
latex:
|
||||
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
|
||||
@echo
|
||||
@echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex."
|
||||
@echo "Run \`make' in that directory to run these through (pdf)latex" \
|
||||
"(use \`make latexpdf' here to do that automatically)."
|
||||
|
||||
.PHONY: latexpdf
|
||||
latexpdf:
|
||||
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
|
||||
@echo "Running LaTeX files through pdflatex..."
|
||||
$(MAKE) -C $(BUILDDIR)/latex all-pdf
|
||||
@echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
|
||||
|
||||
.PHONY: latexpdfja
|
||||
latexpdfja:
|
||||
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
|
||||
@echo "Running LaTeX files through platex and dvipdfmx..."
|
||||
$(MAKE) -C $(BUILDDIR)/latex all-pdf-ja
|
||||
@echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
|
||||
|
||||
.PHONY: text
|
||||
text:
|
||||
$(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text
|
||||
@echo
|
||||
@echo "Build finished. The text files are in $(BUILDDIR)/text."
|
||||
|
||||
.PHONY: man
|
||||
man:
|
||||
$(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(BUILDDIR)/man
|
||||
@echo
|
||||
@echo "Build finished. The manual pages are in $(BUILDDIR)/man."
|
||||
|
||||
.PHONY: texinfo
|
||||
texinfo:
|
||||
$(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo
|
||||
@echo
|
||||
@echo "Build finished. The Texinfo files are in $(BUILDDIR)/texinfo."
|
||||
@echo "Run \`make' in that directory to run these through makeinfo" \
|
||||
"(use \`make info' here to do that automatically)."
|
||||
|
||||
.PHONY: info
|
||||
info:
|
||||
$(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo
|
||||
@echo "Running Texinfo files through makeinfo..."
|
||||
make -C $(BUILDDIR)/texinfo info
|
||||
@echo "makeinfo finished; the Info files are in $(BUILDDIR)/texinfo."
|
||||
|
||||
.PHONY: gettext
|
||||
gettext:
|
||||
$(SPHINXBUILD) -b gettext $(I18NSPHINXOPTS) $(BUILDDIR)/locale
|
||||
@echo
|
||||
@echo "Build finished. The message catalogs are in $(BUILDDIR)/locale."
|
||||
|
||||
.PHONY: changes
|
||||
changes:
|
||||
$(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes
|
||||
@echo
|
||||
@echo "The overview file is in $(BUILDDIR)/changes."
|
||||
|
||||
.PHONY: linkcheck
|
||||
linkcheck:
|
||||
$(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck
|
||||
@echo
|
||||
@echo "Link check complete; look for any errors in the above output " \
|
||||
"or in $(BUILDDIR)/linkcheck/output.txt."
|
||||
|
||||
.PHONY: doctest
|
||||
doctest:
|
||||
$(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
|
||||
@echo "Testing of doctests in the sources finished, look at the " \
|
||||
"results in $(BUILDDIR)/doctest/output.txt."
|
||||
|
||||
.PHONY: coverage
|
||||
coverage:
|
||||
$(SPHINXBUILD) -b coverage $(ALLSPHINXOPTS) $(BUILDDIR)/coverage
|
||||
@echo "Testing of coverage in the sources finished, look at the " \
|
||||
"results in $(BUILDDIR)/coverage/python.txt."
|
||||
|
||||
.PHONY: xml
|
||||
xml:
|
||||
$(SPHINXBUILD) -b xml $(ALLSPHINXOPTS) $(BUILDDIR)/xml
|
||||
@echo
|
||||
@echo "Build finished. The XML files are in $(BUILDDIR)/xml."
|
||||
|
||||
.PHONY: pseudoxml
|
||||
pseudoxml:
|
||||
$(SPHINXBUILD) -b pseudoxml $(ALLSPHINXOPTS) $(BUILDDIR)/pseudoxml
|
||||
@echo
|
||||
@echo "Build finished. The pseudo-XML files are in $(BUILDDIR)/pseudoxml."
|
||||
|
||||
.PHONY: dummy
|
||||
dummy:
|
||||
$(SPHINXBUILD) -b dummy $(ALLSPHINXOPTS) $(BUILDDIR)/dummy
|
||||
@echo
|
||||
@echo "Build finished. Dummy builder generates no files."
|
||||
@@ -0,0 +1,339 @@
|
||||
#!/usr/bin/env python3
|
||||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
# meta-raspberrypi documentation build configuration file, created by
|
||||
# sphinx-quickstart on Tue May 23 09:51:24 2017.
|
||||
#
|
||||
# This file is execfile()d with the current directory set to its
|
||||
# containing dir.
|
||||
#
|
||||
# Note that not all possible configuration values are present in this
|
||||
# autogenerated file.
|
||||
#
|
||||
# All configuration values have a default; values that are commented out
|
||||
# serve to show the default.
|
||||
|
||||
# If extensions (or modules to document with autodoc) are in another directory,
|
||||
# add these directories to sys.path here. If the directory is relative to the
|
||||
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
||||
#
|
||||
# import os
|
||||
# import sys
|
||||
# sys.path.insert(0, os.path.abspath('.'))
|
||||
|
||||
# -- General configuration ------------------------------------------------
|
||||
|
||||
# If your documentation needs a minimal Sphinx version, state it here.
|
||||
#
|
||||
# needs_sphinx = '1.0'
|
||||
|
||||
# Add any Sphinx extension module names here, as strings. They can be
|
||||
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
|
||||
# ones.
|
||||
extensions = ['myst_parser']
|
||||
|
||||
# Add any paths that contain templates here, relative to this directory.
|
||||
templates_path = ['_templates']
|
||||
|
||||
# The suffix(es) of source filenames.
|
||||
# You can specify multiple suffix as a list of string:
|
||||
#
|
||||
# source_suffix = ['.rst', '.md']
|
||||
source_suffix = ['.rst', '.md']
|
||||
|
||||
# The encoding of source files.
|
||||
#
|
||||
# source_encoding = 'utf-8-sig'
|
||||
|
||||
# The master toctree document.
|
||||
master_doc = 'index'
|
||||
|
||||
# General information about the project.
|
||||
project = 'meta-raspberrypi'
|
||||
copyright = '2022, meta-raspberrypi contributors'
|
||||
author = 'meta-raspberrypi contributors'
|
||||
|
||||
# The version info for the project you're documenting, acts as replacement for
|
||||
# |version| and |release|, also used in various other places throughout the
|
||||
# built documents.
|
||||
#
|
||||
# The short X.Y version.
|
||||
version = 'master'
|
||||
# The full version, including alpha/beta/rc tags.
|
||||
release = 'master'
|
||||
|
||||
# The language for content autogenerated by Sphinx. Refer to documentation
|
||||
# for a list of supported languages.
|
||||
#
|
||||
# This is also used if you do content translation via gettext catalogs.
|
||||
# Usually you set "language" from the command line for these cases.
|
||||
language = None
|
||||
|
||||
# There are two options for replacing |today|: either, you set today to some
|
||||
# non-false value, then it is used:
|
||||
#
|
||||
# today = ''
|
||||
#
|
||||
# Else, today_fmt is used as the format for a strftime call.
|
||||
#
|
||||
# today_fmt = '%B %d, %Y'
|
||||
|
||||
# List of patterns, relative to source directory, that match files and
|
||||
# directories to ignore when looking for source files.
|
||||
# This patterns also effect to html_static_path and html_extra_path
|
||||
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
|
||||
|
||||
# The reST default role (used for this markup: `text`) to use for all
|
||||
# documents.
|
||||
#
|
||||
# default_role = None
|
||||
|
||||
# If true, '()' will be appended to :func: etc. cross-reference text.
|
||||
#
|
||||
# add_function_parentheses = True
|
||||
|
||||
# If true, the current module name will be prepended to all description
|
||||
# unit titles (such as .. function::).
|
||||
#
|
||||
# add_module_names = True
|
||||
|
||||
# If true, sectionauthor and moduleauthor directives will be shown in the
|
||||
# output. They are ignored by default.
|
||||
#
|
||||
# show_authors = False
|
||||
|
||||
# The name of the Pygments (syntax highlighting) style to use.
|
||||
pygments_style = 'sphinx'
|
||||
|
||||
# A list of ignored prefixes for module index sorting.
|
||||
# modindex_common_prefix = []
|
||||
|
||||
# If true, keep warnings as "system message" paragraphs in the built documents.
|
||||
# keep_warnings = False
|
||||
|
||||
# If true, `todo` and `todoList` produce output, else they produce nothing.
|
||||
todo_include_todos = False
|
||||
|
||||
|
||||
# -- Options for HTML output ----------------------------------------------
|
||||
|
||||
# The theme to use for HTML and HTML Help pages. See the documentation for
|
||||
# a list of builtin themes.
|
||||
#
|
||||
# html_theme = 'alabaster'
|
||||
|
||||
# Theme options are theme-specific and customize the look and feel of a theme
|
||||
# further. For a list of options available for each theme, see the
|
||||
# documentation.
|
||||
#
|
||||
# html_theme_options = {}
|
||||
|
||||
# Add any paths that contain custom themes here, relative to this directory.
|
||||
# html_theme_path = []
|
||||
|
||||
# The name for this set of Sphinx documents.
|
||||
# "<project> v<release> documentation" by default.
|
||||
#
|
||||
# html_title = 'meta-raspberrypi vmaster'
|
||||
|
||||
# A shorter title for the navigation bar. Default is the same as html_title.
|
||||
#
|
||||
# html_short_title = None
|
||||
|
||||
# The name of an image file (relative to this directory) to place at the top
|
||||
# of the sidebar.
|
||||
#
|
||||
# html_logo = None
|
||||
|
||||
# The name of an image file (relative to this directory) to use as a favicon of
|
||||
# the docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
|
||||
# pixels large.
|
||||
#
|
||||
# html_favicon = None
|
||||
|
||||
# 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,
|
||||
# so a file named "default.css" will overwrite the builtin "default.css".
|
||||
#html_static_path = ['_static']
|
||||
|
||||
# Add any extra paths that contain custom files (such as robots.txt or
|
||||
# .htaccess) here, relative to this directory. These files are copied
|
||||
# directly to the root of the documentation.
|
||||
#
|
||||
# html_extra_path = []
|
||||
|
||||
# If not None, a 'Last updated on:' timestamp is inserted at every page
|
||||
# bottom, using the given strftime format.
|
||||
# The empty string is equivalent to '%b %d, %Y'.
|
||||
#
|
||||
# html_last_updated_fmt = None
|
||||
|
||||
# If true, SmartyPants will be used to convert quotes and dashes to
|
||||
# typographically correct entities.
|
||||
#
|
||||
# html_use_smartypants = True
|
||||
|
||||
# Custom sidebar templates, maps document names to template names.
|
||||
#
|
||||
# html_sidebars = {}
|
||||
|
||||
# Additional templates that should be rendered to pages, maps page names to
|
||||
# template names.
|
||||
#
|
||||
# html_additional_pages = {}
|
||||
|
||||
# If false, no module index is generated.
|
||||
#
|
||||
# html_domain_indices = True
|
||||
|
||||
# If false, no index is generated.
|
||||
#
|
||||
# html_use_index = True
|
||||
|
||||
# If true, the index is split into individual pages for each letter.
|
||||
#
|
||||
# html_split_index = False
|
||||
|
||||
# If true, links to the reST sources are added to the pages.
|
||||
#
|
||||
# html_show_sourcelink = True
|
||||
|
||||
# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
|
||||
#
|
||||
# html_show_sphinx = True
|
||||
|
||||
# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
|
||||
#
|
||||
# html_show_copyright = True
|
||||
|
||||
# If true, an OpenSearch description file will be output, and all pages will
|
||||
# contain a <link> tag referring to it. The value of this option must be the
|
||||
# base URL from which the finished HTML is served.
|
||||
#
|
||||
# html_use_opensearch = ''
|
||||
|
||||
# This is the file name suffix for HTML files (e.g. ".xhtml").
|
||||
# html_file_suffix = None
|
||||
|
||||
# Language to be used for generating the HTML full-text search index.
|
||||
# Sphinx supports the following languages:
|
||||
# 'da', 'de', 'en', 'es', 'fi', 'fr', 'h', 'it', 'ja'
|
||||
# 'nl', 'no', 'pt', 'ro', 'r', 'sv', 'tr', 'zh'
|
||||
#
|
||||
# html_search_language = 'en'
|
||||
|
||||
# A dictionary with options for the search language support, empty by default.
|
||||
# 'ja' uses this config value.
|
||||
# 'zh' user can custom change `jieba` dictionary path.
|
||||
#
|
||||
# html_search_options = {'type': 'default'}
|
||||
|
||||
# The name of a javascript file (relative to the configuration directory) that
|
||||
# implements a search results scorer. If empty, the default will be used.
|
||||
#
|
||||
# html_search_scorer = 'scorer.js'
|
||||
|
||||
# Output file base name for HTML help builder.
|
||||
htmlhelp_basename = 'meta-raspberrypidoc'
|
||||
|
||||
# -- Options for LaTeX output ---------------------------------------------
|
||||
|
||||
latex_elements = {
|
||||
# The paper size ('letterpaper' or 'a4paper').
|
||||
#
|
||||
# 'papersize': 'letterpaper',
|
||||
|
||||
# The font size ('10pt', '11pt' or '12pt').
|
||||
#
|
||||
# 'pointsize': '10pt',
|
||||
|
||||
# Additional stuff for the LaTeX preamble.
|
||||
#
|
||||
# 'preamble': '',
|
||||
|
||||
# Latex figure (float) alignment
|
||||
#
|
||||
# 'figure_align': 'htbp',
|
||||
}
|
||||
|
||||
# Grouping the document tree into LaTeX files. List of tuples
|
||||
# (source start file, target name, title,
|
||||
# author, documentclass [howto, manual, or own class]).
|
||||
latex_documents = [
|
||||
(master_doc, 'meta-raspberrypi.tex', 'meta-raspberrypi Documentation',
|
||||
'meta-raspberrypi contributors', 'manual'),
|
||||
]
|
||||
|
||||
# The name of an image file (relative to this directory) to place at the top of
|
||||
# the title page.
|
||||
#
|
||||
# latex_logo = None
|
||||
|
||||
# For "manual" documents, if this is true, then toplevel headings are parts,
|
||||
# not chapters.
|
||||
#
|
||||
# latex_use_parts = False
|
||||
|
||||
# If true, show page references after internal links.
|
||||
#
|
||||
# latex_show_pagerefs = False
|
||||
|
||||
# If true, show URL addresses after external links.
|
||||
#
|
||||
# latex_show_urls = False
|
||||
|
||||
# Documents to append as an appendix to all manuals.
|
||||
#
|
||||
# latex_appendices = []
|
||||
|
||||
# It false, will not define \strong, \code, itleref, \crossref ... but only
|
||||
# \sphinxstrong, ..., \sphinxtitleref, ... To help avoid clash with user added
|
||||
# packages.
|
||||
#
|
||||
# latex_keep_old_macro_names = True
|
||||
|
||||
# If false, no module index is generated.
|
||||
#
|
||||
# latex_domain_indices = True
|
||||
|
||||
|
||||
# -- Options for manual page output ---------------------------------------
|
||||
|
||||
# One entry per manual page. List of tuples
|
||||
# (source start file, name, description, authors, manual section).
|
||||
man_pages = [
|
||||
(master_doc, 'meta-raspberrypi', 'meta-raspberrypi Documentation',
|
||||
[author], 1)
|
||||
]
|
||||
|
||||
# If true, show URL addresses after external links.
|
||||
#
|
||||
# man_show_urls = False
|
||||
|
||||
|
||||
# -- Options for Texinfo output -------------------------------------------
|
||||
|
||||
# Grouping the document tree into Texinfo files. List of tuples
|
||||
# (source start file, target name, title, author,
|
||||
# dir menu entry, description, category)
|
||||
texinfo_documents = [
|
||||
(master_doc, 'meta-raspberrypi', 'meta-raspberrypi Documentation',
|
||||
author, 'meta-raspberrypi', 'One line description of project.',
|
||||
'Miscellaneous'),
|
||||
]
|
||||
|
||||
# Documents to append as an appendix to all manuals.
|
||||
#
|
||||
# texinfo_appendices = []
|
||||
|
||||
# If false, no module index is generated.
|
||||
#
|
||||
# texinfo_domain_indices = True
|
||||
|
||||
# How to display URL addresses: 'footnote', 'no', or 'inline'.
|
||||
#
|
||||
# texinfo_show_urls = 'footnote'
|
||||
|
||||
# If true, do not generate a @detailmenu in the "Top" node's menu.
|
||||
#
|
||||
# texinfo_no_detailmenu = False
|
||||
@@ -0,0 +1,113 @@
|
||||
# Contributing
|
||||
|
||||
## Mailing list
|
||||
|
||||
The main communication tool in use is the Yocto Project mailing list:
|
||||
|
||||
* <yocto@lists.yoctoproject.org>
|
||||
* <https://lists.yoctoproject.org/g/yocto>
|
||||
|
||||
Feel free to ask any kind of questions but please always prepend your email
|
||||
subject with `[meta-raspberrypi]` as this is the global *Yocto* mailing
|
||||
list and not a dedicated *meta-raspberrypi* mailing list.
|
||||
|
||||
## Formatting patches
|
||||
|
||||
First and foremost, all of the contributions to the layer must be compliant
|
||||
with the standard openembedded patch guidelines:
|
||||
|
||||
* <http://www.openembedded.org/wiki/Commit_Patch_Message_Guidelines>
|
||||
|
||||
In summary, your commit log messages should be formatted as follows:
|
||||
|
||||
<layer-component>: <short log/statement of what needed to be changed>
|
||||
|
||||
(Optional pointers to external resources, such as defect tracking)
|
||||
|
||||
The intent of your change.
|
||||
|
||||
(Optional: if it's not clear from above, how your change resolves
|
||||
the issues in the first part)
|
||||
|
||||
Signed-off-by: Your Name <yourname@youremail.com>
|
||||
|
||||
The `<layer-component>` is the layer component name that your changes affect.
|
||||
It is important that you choose it correctly. A simple guide for selecting a
|
||||
a good component name is the following:
|
||||
|
||||
* For changes that affect *layer recipes*, please just use the **base names**
|
||||
of the affected recipes, separated by commas (`,`), as the component name.
|
||||
For example: use `omxplayer` instead of `omxplayer_git.bb`. If you are
|
||||
adding new recipe(s), just use the new recipe(s) base name(s). An example
|
||||
for changes to multiple recipes would be `userland,vc-graphics,wayland`.
|
||||
* For changes that affect the *layer documentation*, please just use `docs`
|
||||
as the component name.
|
||||
* For changes that affect *other files*, i.e. under the `conf` directory,
|
||||
please use the full path as the component name, e.g. `conf/layer.conf`.
|
||||
* For changes that affect the *layer itself* and do not fall into any of
|
||||
the above cases, please use `meta-raspberrypi` as the component name.
|
||||
|
||||
A full example of a suitable commit log message is below:
|
||||
|
||||
foobar: Adjusted the foo setting in bar
|
||||
|
||||
When using foobar on systems with less than a gigabyte of RAM common
|
||||
usage patterns often result in an Out-of-memory condition causing
|
||||
slowdowns and unexpected application termination.
|
||||
|
||||
Low-memory systems should continue to function without running into
|
||||
memory-starvation conditions with minimal cost to systems with more
|
||||
available memory. High-memory systems will be less able to use the
|
||||
full extent of the system, a dynamically tunable option may be best,
|
||||
long-term.
|
||||
|
||||
The foo setting in bar was decreased from X to X-50% in order to
|
||||
ensure we don't exhaust all system memory with foobar threads.
|
||||
|
||||
Signed-off-by: Joe Developer <joe.developer@example.com>
|
||||
|
||||
A common issue during patch reviewing is commit log formatting, please review
|
||||
the above formatting guidelines carefully before sending your patches.
|
||||
|
||||
## Sending patches
|
||||
|
||||
The preferred method to contribute to this project is to send pull
|
||||
requests to the GitHub mirror of the layer:
|
||||
|
||||
* <https://github.com/agherzan/meta-raspberrypi>
|
||||
|
||||
**In addition**, you may send patches for review to the above specified
|
||||
mailing list. In this case, when creating patches using `git` please make
|
||||
sure to use the following formatting for the message subject:
|
||||
|
||||
git format-patch -s --subject-prefix='meta-raspberrypi][PATCH' origin
|
||||
|
||||
Then, for sending patches to the mailing list, you may use this command:
|
||||
|
||||
git send-email --to yocto@lists.yoctoproject.org <generated patch>
|
||||
|
||||
When patches are sent through the mailing list, the maintainer will include
|
||||
them in a GitHub pull request that will take the patches through the CI
|
||||
workflows. This process happens periodically.
|
||||
|
||||
## GitHub issues
|
||||
|
||||
In order to manage and track the layer issues more efficiently, the
|
||||
GitHub issues facility is used by this project:
|
||||
|
||||
* <https://github.com/agherzan/meta-raspberrypi/issues>
|
||||
|
||||
If you submit patches that have a GitHub issue associated, please make sure to
|
||||
use standard GitHub keywords, e.g. `closes`, `resolves` or `fixes`, before the
|
||||
"Signed-off-by" tag to close the relevant issues automatically:
|
||||
|
||||
foobar: Adjusted the foo setting in bar
|
||||
|
||||
Fixes: #324
|
||||
|
||||
Signed-off-by: Joe Developer <joe.developer@example.com>
|
||||
|
||||
More information on the available GitHub close keywords can be found here:
|
||||
|
||||
* <https://help.github.com/articles/closing-issues-using-keywords>
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
# Extra apps
|
||||
|
||||
## omxplayer
|
||||
|
||||
omxplayer depends on libav which has a commercial license. So in order to be
|
||||
able to compile omxplayer you will need to whiteflag the commercial
|
||||
license in your local.conf:
|
||||
|
||||
LICENSE_FLAGS_ACCEPTED = "commercial"
|
||||
@@ -0,0 +1,481 @@
|
||||
# Optional build configuration
|
||||
|
||||
There are a set of ways in which a user can influence different parameters of
|
||||
the build. We list here the ones that are closely related to this BSP or
|
||||
specific to it. For the rest please check:
|
||||
<http://www.yoctoproject.org/docs/latest/ref-manual/ref-manual.html>
|
||||
|
||||
## Compressed deployed files
|
||||
|
||||
1. Overwrite IMAGE_FSTYPES in local.conf
|
||||
* `IMAGE_FSTYPES = "tar.bz2 ext3.xz"`
|
||||
|
||||
2. Overwrite SDIMG_ROOTFS_TYPE in local.conf
|
||||
* `SDIMG_ROOTFS_TYPE = "ext3.xz"`
|
||||
|
||||
Accommodate the values above to your own needs (ex: ext3 / ext4).
|
||||
|
||||
## GPU memory
|
||||
|
||||
* `GPU_MEM`: GPU memory in megabyte. Sets the memory split between the ARM and
|
||||
GPU. ARM gets the remaining memory. Min 16. Default 64.
|
||||
|
||||
* `GPU_MEM_256`: GPU memory in megabyte for the 256MB Raspberry Pi. Ignored by
|
||||
the 512MB RP. Overrides gpu_mem. Max 192. Default not set.
|
||||
|
||||
* `GPU_MEM_512`: GPU memory in megabyte for the 512MB Raspberry Pi. Ignored by
|
||||
the 256MB RP. Overrides gpu_mem. Max 448. Default not set.
|
||||
|
||||
* `GPU_MEM_1024`: GPU memory in megabyte for the 1024MB Raspberry Pi. Ignored by
|
||||
the 256MB/512MB RP. Overrides gpu_mem. Max 944. Default not set.
|
||||
|
||||
See: <https://www.raspberrypi.com/documentation/computers/config_txt.html#memory-options>
|
||||
|
||||
## VC4
|
||||
|
||||
By default, each machine uses `vc4` for graphics. This will in turn sets mesa as provider for `gl` libraries. `DISABLE_VC4GRAPHICS` can be set to `1` to disable this behaviour falling back to using `userland`. Be aware that `userland` has not support for 64-bit arch. If you disable `vc4` on a 64-bit Raspberry Pi machine, expect build breakage.
|
||||
|
||||
## Add purchased license codecs
|
||||
|
||||
To add your own licenses use variables `KEY_DECODE_MPG2` and `KEY_DECODE_WVC1` in
|
||||
local.conf. Example:
|
||||
|
||||
KEY_DECODE_MPG2 = "12345678"
|
||||
KEY_DECODE_WVC1 = "12345678"
|
||||
|
||||
You can supply more licenses separated by comma. Example:
|
||||
|
||||
KEY_DECODE_WVC1 = "0x12345678,0xabcdabcd,0x87654321"
|
||||
|
||||
See: <https://www.raspberrypi.com/documentation/computers/config_txt.html#licence-key-and-codec-options>
|
||||
|
||||
## Disable overscan
|
||||
|
||||
By default the GPU adds a black border around the video output to compensate for
|
||||
TVs which cut off part of the image. To disable this set this variable in
|
||||
local.conf:
|
||||
|
||||
DISABLE_OVERSCAN = "1"
|
||||
|
||||
## Disable splash screen
|
||||
|
||||
By default a rainbow splash screen is shown after the GPU firmware is loaded.
|
||||
To disable this set this variable in local.conf:
|
||||
|
||||
DISABLE_SPLASH = "1"
|
||||
|
||||
## Boot delay
|
||||
|
||||
The Raspberry Pi waits a number of seconds after loading the GPU firmware and
|
||||
before loading the kernel. By default it is one second. This is useful if your
|
||||
SD card needs a while to get ready before Linux is able to boot from it.
|
||||
To remove (or adjust) this delay set these variables in local.conf:
|
||||
|
||||
BOOT_DELAY = "0"
|
||||
BOOT_DELAY_MS = "0"
|
||||
|
||||
## Set overclocking options
|
||||
|
||||
The Raspberry Pi can be overclocked. As of now overclocking up to the "Turbo
|
||||
Mode" is officially supported by the Raspberry Pi and does not void warranty. Check
|
||||
the config.txt for a detailed description of options and modes. The following
|
||||
variables are supported in local.conf: `ARM_FREQ`, `GPU_FREQ`, `CORE_FREQ`,
|
||||
`SDRAM_FREQ` and `OVER_VOLTAGE`.
|
||||
|
||||
Example official settings for Turbo Mode in Raspberry Pi 2:
|
||||
|
||||
ARM_FREQ = "1000"
|
||||
CORE_FREQ = "500"
|
||||
SDRAM_FREQ = "500"
|
||||
OVER_VOLTAGE = "6"
|
||||
|
||||
See: <https://www.raspberrypi.com/documentation/computers/config_txt.html#overclocking-options>
|
||||
|
||||
## HDMI and composite video options
|
||||
|
||||
The Raspberry Pi can output video over HDMI or SDTV composite (the RCA connector).
|
||||
By default the video mode for these is autodetected on boot: the HDMI mode is
|
||||
selected according to the connected monitor's EDID information and the composite
|
||||
mode is defaulted to NTSC using a 4:3 aspect ratio. Check the config.txt for a
|
||||
detailed description of options and modes. The following variables are supported in
|
||||
local.conf: `HDMI_FORCE_HOTPLUG`, `HDMI_DRIVE`, `HDMI_GROUP`, `HDMI_MODE`,
|
||||
`HDMI_CVT`, `CONFIG_HDMI_BOOST`, `SDTV_MODE`, `SDTV_ASPECT` and `DISPLAY_ROTATE`.
|
||||
|
||||
Example to force HDMI output to 720p in CEA mode:
|
||||
|
||||
HDMI_GROUP = "1"
|
||||
HDMI_MODE = "4"
|
||||
|
||||
See: <https://www.raspberrypi.com/documentation/computers/configuration.html#hdmi-configuration>
|
||||
|
||||
## Video camera support with V4L2 drivers
|
||||
|
||||
Set this variable to enable support for the video camera (Linux 3.12.4+
|
||||
required):
|
||||
|
||||
VIDEO_CAMERA = "1"
|
||||
|
||||
## Enable offline compositing support
|
||||
|
||||
Set this variable to enable support for dispmanx offline compositing:
|
||||
|
||||
DISPMANX_OFFLINE = "1"
|
||||
|
||||
This will enable the firmware to fall back to off-line compositing of Dispmanx
|
||||
elements. Normally the compositing is done on-line, during scanout, but cannot
|
||||
handle too many elements. With off-line enabled, an off-screen buffer is
|
||||
allocated for compositing. When scene complexity (number and sizes
|
||||
of elements) is high, compositing will happen off-line into the buffer.
|
||||
|
||||
Heavily recommended for Wayland/Weston.
|
||||
|
||||
See: <http://wayland.freedesktop.org/raspberrypi.html>
|
||||
|
||||
## Enable kgdb over console support
|
||||
|
||||
To add the kdbg over console (kgdboc) parameter to the kernel command line, set
|
||||
this variable in local.conf:
|
||||
|
||||
ENABLE_KGDB = "1"
|
||||
|
||||
## Disable rpi boot logo
|
||||
|
||||
To disable rpi boot logo, set this variable in local.conf:
|
||||
|
||||
DISABLE_RPI_BOOT_LOGO = "1"
|
||||
|
||||
## Boot to U-Boot
|
||||
|
||||
To have u-boot load kernel image, set in your local.conf:
|
||||
|
||||
RPI_USE_U_BOOT = "1"
|
||||
|
||||
This will select the appropriate image format for use with u-boot automatically.
|
||||
For further customisation the KERNEL_IMAGETYPE and KERNEL_BOOTCMD variables can
|
||||
be overridden to select the exact kernel image type (eg. zImage) and u-boot
|
||||
command (eg. bootz) to be used.
|
||||
|
||||
To operate correctly, U-Boot requires `enable_uart=1` in `config.txt` file for
|
||||
the following boards:
|
||||
* Raspberry Pi Zero W
|
||||
* Raspberry Pi 3 32-bit
|
||||
* Raspberry Pi 3 64-bit
|
||||
* Raspberry Pi 4 32-bit
|
||||
* Raspberry Pi 4 64-bit
|
||||
It means that, for those boards, `RPI_USE_U_BOOT = "1"` is not compatible with
|
||||
`ENABLE_UART = "0"`.
|
||||
|
||||
## Image with Initramfs
|
||||
|
||||
To build an initramfs image:
|
||||
|
||||
* Set this 3 kernel variables (in kernel's do_configure:prepend in linux-raspberrypi.inc after the line kernel_configure_variable LOCALVERSION "\"\""
|
||||
)
|
||||
- kernel_configure_variable BLK_DEV_INITRD y
|
||||
- kernel_configure_variable INITRAMFS_SOURCE ""
|
||||
- kernel_configure_variable RD_GZIP y
|
||||
|
||||
* Set the yocto variables (e.g. in local.conf)
|
||||
- `INITRAMFS_IMAGE = "<name for your initramfs image>"`
|
||||
- `INITRAMFS_IMAGE_BUNDLE = "1"`
|
||||
- `BOOT_SPACE = "1073741"`
|
||||
- `INITRAMFS_MAXSIZE = "315400"`
|
||||
- `IMAGE_FSTYPES_pn-${INITRAMFS_IMAGE} = "${INITRAMFS_FSTYPES}"`
|
||||
|
||||
## Including additional files in the SD card image boot partition
|
||||
|
||||
The SD card image class supports adding extra files into the boot
|
||||
partition, where the files are copied from either the image root
|
||||
partition or from the build image deploy directory.
|
||||
|
||||
To copy files that are present in the root partition into boot,
|
||||
FATPAYLOAD is a simple space-separated list of files to be copied:
|
||||
|
||||
FATPAYLOAD = "/boot/example1 /boot/example2"
|
||||
|
||||
To copy files from the image deploy directory, the files should be
|
||||
listed in the DEPLOYPAYLOAD as a space-separated list of entries.
|
||||
Each entry lists a file to be copied, and an optional destination
|
||||
filename can be specified by supplying it after a colon separator.
|
||||
|
||||
DEPLOYPAYLOAD = "example1-${MACHINE}:example1 example2"
|
||||
|
||||
Files that are to be included from the deploy directory will be produced
|
||||
by tasks that image building task must depend upon, to ensure that the
|
||||
files are available when they are needed, so these component deploy
|
||||
tasks must be added to: RPI_SDIMG_EXTRA_DEPENDS.
|
||||
|
||||
RPI_SDIMG_EXTRA_DEPENDS:append = " example:do_deploy"
|
||||
|
||||
## Enable SPI bus
|
||||
|
||||
When using device tree kernels, set this variable to enable the SPI bus:
|
||||
|
||||
ENABLE_SPI_BUS = "1"
|
||||
|
||||
## Enable I2C
|
||||
|
||||
When using device tree kernels, set this variable to enable I2C:
|
||||
|
||||
ENABLE_I2C = "1"
|
||||
|
||||
Furthermore, to auto-load I2C kernel modules set:
|
||||
|
||||
KERNEL_MODULE_AUTOLOAD:rpi += "i2c-dev i2c-bcm2708"
|
||||
|
||||
## Enable PiTFT support
|
||||
|
||||
Basic support for using PiTFT screens can be enabled by adding below in
|
||||
local.conf:
|
||||
|
||||
* `MACHINE_FEATURES += "pitft"`
|
||||
- This will enable SPI bus and i2c device-trees, it will also setup
|
||||
framebuffer for console and x server on PiTFT.
|
||||
|
||||
NOTE: To get this working the overlay for the PiTFT model must be build, added
|
||||
and specified as well (dtoverlay=<driver> in config.txt).
|
||||
|
||||
Below is a list of currently supported PiTFT models in meta-raspberrypi, the
|
||||
modelname should be added as a MACHINE_FEATURES in local.conf like below:
|
||||
|
||||
MACHINE_FEATURES += "pitft <modelname>"
|
||||
|
||||
List of currently supported models:
|
||||
* pitft22
|
||||
* pitft28r
|
||||
* pitft28c
|
||||
* pitft35r
|
||||
|
||||
## Misc. display
|
||||
|
||||
If you would like to use the Waveshare "C" 1024×600, 7 inch Capacitive Touch
|
||||
Screen LCD, HDMI interface (<http://www.waveshare.com/7inch-HDMI-LCD-C.htm>) Rev
|
||||
2.1, please set the following in your local.conf:
|
||||
|
||||
WAVESHARE_1024X600_C_2_1 = "1"
|
||||
|
||||
## Enable UART
|
||||
|
||||
RaspberryPi 0, 1, 2 and CM will have UART console enabled by default.
|
||||
|
||||
RaspberryPi 0 WiFi and 3 does not have the UART enabled by default because this
|
||||
needs a fixed core frequency and enable_uart will set it to the minimum. Certain
|
||||
operations - 60fps h264 decode, high quality deinterlace - which aren't
|
||||
performed on the ARM may be affected, and we wouldn't want to do that to users
|
||||
who don't want to use the serial port. Users who want serial console support on
|
||||
RaspberryPi 0 Wifi or 3 will have to explicitly set in local.conf:
|
||||
|
||||
ENABLE_UART = "1"
|
||||
|
||||
Ref.:
|
||||
* <https://github.com/raspberrypi/firmware/issues/553>
|
||||
* <https://github.com/RPi-Distro/repo/issues/22>
|
||||
|
||||
## Enable USB Peripheral (Gadget) support
|
||||
|
||||
The standard USB driver only supports host mode operations. Users who
|
||||
want to use gadget modules like g_ether should set the following in
|
||||
local.conf:
|
||||
|
||||
ENABLE_DWC2_PERIPHERAL = "1"
|
||||
|
||||
## Enable USB host support
|
||||
|
||||
By default in case of the Compute Module 4 IO Board the standard USB driver
|
||||
that usually supports host mode operations is disabled for power saving reasons.
|
||||
Users who want to use the 2 USB built-in ports or the other ports provided via
|
||||
the header extension should set the following in local.conf:
|
||||
|
||||
ENABLE_DWC2_HOST = "1"
|
||||
|
||||
## Set CPUs to be isolated from the standard Linux scheduler
|
||||
|
||||
By default Linux will use all available CPUs for scheduling tasks. For real time
|
||||
purposes there can be an advantage to isolating one or more CPUs from the
|
||||
standard scheduler. It should be noted that CPU 0 is special, it is the only CPU
|
||||
available during the early stages of the boot process and cannot be isolated.
|
||||
|
||||
The string assigned to this variable may be a single CPU number, a comma
|
||||
separated list ("1,2"), a range("1-3"), or a mixture of these ("1,3-5")
|
||||
|
||||
ISOLATED_CPUS = "1-2"
|
||||
|
||||
## Enable Openlabs 802.15.4 radio module
|
||||
|
||||
When using device tree kernels, set this variable to enable the 802.15.4 hat:
|
||||
|
||||
ENABLE_AT86RF = "1"
|
||||
|
||||
See: <https://openlabs.co/OSHW/Raspberry-Pi-802.15.4-radio>
|
||||
|
||||
## Enable CAN
|
||||
|
||||
In order to use CAN with an MCP2515-based module, set the following variables:
|
||||
|
||||
ENABLE_SPI_BUS = "1"
|
||||
ENABLE_CAN = "1"
|
||||
|
||||
In case of dual CAN module (e.g. PiCAN2 Duo), set following variables instead:
|
||||
|
||||
ENABLE_SPI_BUS = "1"
|
||||
ENABLE_DUAL_CAN = "1"
|
||||
|
||||
Some modules may require setting the frequency of the crystal oscillator used on the particular board. The frequency is usually marked on the package of the crystal. By default, it is set to 16 MHz. To change that to 8 MHz, the following variable also has to be set:
|
||||
|
||||
CAN_OSCILLATOR="8000000"
|
||||
|
||||
Tested modules:
|
||||
|
||||
* PiCAN2 (16 MHz crystal): <http://skpang.co.uk/catalog/pican2-canbus-board-for-raspberry-pi-23-p-1475.html>
|
||||
* WaveShare RS485 CAN HAT (8 MHz or 12 MHz crystal): <https://www.waveshare.com/rs485-can-hat.htm>
|
||||
* PiCAN2 Duo (16 MHz crystal): <http://skpang.co.uk/catalog/pican2-duo-canbus-board-for-raspberry-pi-23-p-1480.html>
|
||||
|
||||
## Enable infrared
|
||||
|
||||
Users who want to enable infrared support, for example for using LIRC (Linux
|
||||
Infrared Remote Control), have to explicitly set in local.conf:
|
||||
|
||||
ENABLE_IR = "1"
|
||||
|
||||
This will add device tree overlays gpio-ir and gpio-ir-tx to config.txt.
|
||||
Appropriate kernel modules will be also included in the image. By default the
|
||||
GPIO pin for gpio-ir is set to 18 and the pin for gpio-ir-tx is 17. Both pins
|
||||
can be easily changed by modifying variables `GPIO_IR` and `GPIO_IR_TX`.
|
||||
|
||||
## Enable gpio-shutdown
|
||||
|
||||
When using device tree kernels, set this variable to enable gpio-shutdown:
|
||||
|
||||
ENABLE_GPIO_SHUTDOWN = "1"
|
||||
|
||||
This will add the corresponding device tree overlay to config.txt and include
|
||||
the gpio-keys kernel module in the image. If System V init is used, additional
|
||||
mapping is applied to bind the button event to shutdown command. Systemd init
|
||||
should handle the event out of the box.
|
||||
|
||||
By default the feature uses gpio pin 3 (except RPi 1 Model B rev 1 enumerates
|
||||
the pin as gpio 1). This conflicts with the I2C bus. If you set `ENABLE_I2C`
|
||||
to `1` or enabled `PiTFT` support, or otherwise want to use another pin, use
|
||||
`GPIO_SHUTDOWN_PIN` to assign another pin. Example using gpio pin 25:
|
||||
|
||||
GPIO_SHUTDOWN_PIN = "25"
|
||||
|
||||
## Enable One-Wire Interface
|
||||
|
||||
One-wire is a single-wire communication bus typically used to connect sensors
|
||||
to the RaspberryPi. The Raspberry Pi supports one-wire on any GPIO pin, but
|
||||
the default is GPIO 4. To enable the one-wire interface explicitly set it in
|
||||
`local.conf`
|
||||
|
||||
ENABLE_W1 = "1"
|
||||
|
||||
Once discovery is complete you can list the devices that your Raspberry Pi has
|
||||
discovered via all 1-Wire busses check the interface with this command
|
||||
|
||||
`ls /sys/bus/w1/devices/`
|
||||
|
||||
## Manual additions to config.txt
|
||||
|
||||
The `RPI_EXTRA_CONFIG` variable can be used to manually add additional lines to
|
||||
the `config.txt` file if there is not a specific option above for the
|
||||
configuration you need. To add multiple lines you must include `\n` separators.
|
||||
If double-quotes are needed in the lines you are adding you can use single
|
||||
quotes around the whole string.
|
||||
|
||||
For example, to add a comment containing a double-quote and a configuration
|
||||
option:
|
||||
|
||||
RPI_EXTRA_CONFIG = ' \n \
|
||||
# Raspberry Pi 7\" display/touch screen \n \
|
||||
lcd_rotate=2 \n \
|
||||
'
|
||||
## Enable Raspberry Pi Camera Module
|
||||
|
||||
Raspberry Pi does not have the unicam device ( Raspberry Pi Camera ) enabled by default.
|
||||
Because this unicam device ( bcm2835-unicam ) as of now is used by libcamera opensource.
|
||||
So we have to explicitly enable it in local.conf.
|
||||
|
||||
RASPBERRYPI_CAMERA_V2 = "1"
|
||||
|
||||
This will add the device tree overlay imx219 ( Raspberry Pi Camera Module V2 sensor driver
|
||||
) to config.txt. Also, this will enable adding Contiguous Memory Allocation value in the
|
||||
cmdline.txt.
|
||||
|
||||
Similarly, the Raspberry Pi Camera Module v3 also has to be explicitly enabled in local.conf.
|
||||
|
||||
RASPBERRYPI_CAMERA_V3 = "1"
|
||||
|
||||
This will add the device tree overlay imx708 ( Raspberry Pi Camera Module V3 sensor driver )
|
||||
to config.txt.
|
||||
|
||||
See:
|
||||
* <https://www.raspberrypi.com/documentation/computers/camera_software.html>
|
||||
* <https://www.raspberrypi.org/blog/an-open-source-camera-stack-for-raspberry-pi-using-libcamera/>
|
||||
|
||||
## WM8960 soundcard support
|
||||
|
||||
Support for WM8960 based sound cards such as the WM8960 Hi-Fi Sound Card HAT for Raspberry Pi from Waveshare, and ReSpeaker 2 / 4 / 6 Mics Pi HAT from Seeed Studio, can be enabled in `local.conf`
|
||||
|
||||
MACHINE_FEATURES += "wm8960"
|
||||
|
||||
You may need to adjust volume and toggle switches that are off by default
|
||||
|
||||
amixer -c1 sset 'Headphone',0 80%,80%
|
||||
amixer -c1 sset 'Speaker',0 80%,80%
|
||||
amixer -c1 sset 'Left Input Mixer Boost' toggle
|
||||
amixer -c1 sset 'Left Output Mixer PCM' toggle
|
||||
amixer -c1 sset 'Right Input Mixer Boost' toggle
|
||||
amixer -c1 sset 'Right Output Mixer PCM' toggle
|
||||
|
||||
Audio capture on ReSpeaker 2 / 4 / 6 Mics Pi HAT from Seeed Studio is very noisy.
|
||||
|
||||
## Support for RTC devices
|
||||
|
||||
The RaspberryPi boards don't feature an RTC module and the machine
|
||||
configurations provided in this BSP layer have this assumption (until, if at
|
||||
all, some later boards will come with one).
|
||||
|
||||
`rtc` is handled as a `MACHINE_FEATURES` in the context of the build system
|
||||
which means that if an attached device is provided for which support is needed,
|
||||
the recommended way forward is to write a new machine configuration based on an
|
||||
existing one. Check the documentation for
|
||||
`MACHINE_FEATURES_BACKFILL_CONSIDERED` for how this is disabled for the
|
||||
relevant machines.
|
||||
|
||||
Even when `MACHINE_FEATURES` is tweaked to include the needed `rtc` string,
|
||||
make sure that your kernel configuration is supporting the attached device and
|
||||
the device tree is properly tweaked. Also, mind the runtime components that
|
||||
take advantage of your RTC device. You can do that by checking what is
|
||||
included/configured in the build system based on the inclusion of `rtc` in
|
||||
`MACHINE_FEATURES`.
|
||||
|
||||
## Raspberry Pi Distro VLC
|
||||
|
||||
To enable Raspberry Pi Distro VLC, the `meta-openembedded/meta-multimedia` layer must be
|
||||
included in your `bblayers.conf`.
|
||||
|
||||
VLC does not support HW accelerated video decode through MMAL on a 64-bit OS.
|
||||
|
||||
See:
|
||||
* <https://forums.raspberrypi.com/viewtopic.php?t=275370>
|
||||
* <https://forums.raspberrypi.com/viewtopic.php?t=325218#p1946169>
|
||||
|
||||
MMAL is not enabled by default. To enable it add
|
||||
|
||||
DISABLE_VC4GRAPHICS = "1"
|
||||
|
||||
to `local.conf`. Adding `vlc` to `IMAGE_INSTALL` will then default to building the Raspberry
|
||||
Pi's Distro implementation of VLC with HW accelerated video decode through MMAL into the system
|
||||
image. It also defaults to building VLC with Raspberry PI's Distro implementation of ffmpeg. The
|
||||
oe-core implementation of ffmpeg and the meta-openembedded/meta-multimedia implementation of VLC
|
||||
can however be selected via:
|
||||
|
||||
PREFERRED_PROVIDER_ffmpeg = "ffmpeg"
|
||||
PREFERRED_PROVIDER_vlc = "vlc"
|
||||
|
||||
Usage example: Start VLC with mmal_vout plugin and without an active display server.
|
||||
|
||||
DISPLAYNUM=$(tvservice -l | tail -c 2)
|
||||
MMAL_DISPLAY=$(expr $DISPLAYNUM + 1)
|
||||
VLC_SETTINGS="-I dummy --vout=mmal_vout --mmal-resize --mmal-display hdmi-$MMAL_DISPLAY --no-dbus"
|
||||
cvlc $VLC_SETTINGS <video/playlist>
|
||||
@@ -0,0 +1,27 @@
|
||||
.. meta-raspberrypi documentation master file, created by
|
||||
sphinx-quickstart on Tue May 23 09:51:24 2017.
|
||||
You can adapt this file completely to your liking, but it should at least
|
||||
contain the root `toctree` directive.
|
||||
|
||||
Welcome to meta-raspberrypi's documentation!
|
||||
============================================
|
||||
|
||||
Contents:
|
||||
|
||||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
readme
|
||||
layer-contents
|
||||
extra-build-config
|
||||
extra-apps
|
||||
ipcompliance
|
||||
contributing
|
||||
|
||||
Indices and tables
|
||||
==================
|
||||
|
||||
* :ref:`genindex`
|
||||
* :ref:`modindex`
|
||||
* :ref:`search`
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
# IP Compliance
|
||||
|
||||
## linux-firmware-rpidistro
|
||||
|
||||
By default, some of the machine configurations recommend packages for the
|
||||
WiFi/BT firmware, provided by
|
||||
[linux-firmware-rpidistro](https://github.com/RPi-Distro/firmware-nonfree).
|
||||
This package includes some firmware blobs under the `Synaptics` license which
|
||||
could carry a legal risk: one of the clauses can be (at least theoretically)
|
||||
used as a `killswitch`. This was
|
||||
[reported](https://github.com/RPi-Distro/firmware-nonfree/issues/29) in the
|
||||
upstream repository.
|
||||
|
||||
You can find the full license text body in the content of the above mentioned
|
||||
package.
|
||||
|
||||
Due to the above, the build system will only allow this recipe to be built if
|
||||
the user acknowledges this risk by adding the following configuration:
|
||||
|
||||
LICENSE_FLAGS_ACCEPTED = "synaptics-killswitch"
|
||||
|
||||
You can provide this configuration as part of your `local.conf`, `distro.conf`,
|
||||
etc.
|
||||
@@ -0,0 +1,58 @@
|
||||
# Layer Contents
|
||||
|
||||
## Supported Machines
|
||||
|
||||
* raspberrypi
|
||||
* raspberrypi0
|
||||
* raspberrypi0-wifi
|
||||
* raspberrypi0-2w-64
|
||||
* raspberrypi2
|
||||
* raspberrypi3
|
||||
* raspberrypi3-64 (64 bit kernel & userspace)
|
||||
* raspberrypi4
|
||||
* raspberrypi4-64 (64 bit kernel & userspace)
|
||||
* raspberrypi-cm (dummy alias for raspberrypi)
|
||||
* raspberrypi-cm3
|
||||
|
||||
Note: The raspberrypi3 machines include support for Raspberry Pi 3B+.
|
||||
|
||||
## Multi-board Machines
|
||||
|
||||
This layer generally provides support for machines that are targetting a single
|
||||
Raspberry Pi board (or a very few subsets of them). This is so that the build
|
||||
infrastructure can tune and tweak the configuration with the flexibility to
|
||||
optimise for both runtime performance and disk storage.
|
||||
|
||||
For usecases where compatibility of more boards is required, the layer provides
|
||||
machines that are tagetting a wider support of Raspberry Pi boards.
|
||||
|
||||
### raspberrypi-armv7
|
||||
|
||||
This machine targets support for all the ARMv7-based Raspberry Pi boards. It
|
||||
will pull in the firmware and deploy the kernel image and kernel modules for
|
||||
all the relevant boards.
|
||||
|
||||
### raspberrypi-armv8
|
||||
|
||||
This machine targets support for all the ARMv8-based Raspberry Pi boards. It
|
||||
will pull in the firmware and deploy the kernel image and kernel modules for
|
||||
all the relevant boards.
|
||||
|
||||
## Images
|
||||
|
||||
* rpi-test-image
|
||||
* Image based on core-image-base which includes most of the packages in this
|
||||
layer and some media samples.
|
||||
|
||||
For other uses it's recommended to base images on `core-image-minimal` or
|
||||
`core-image-base` as appropriate.
|
||||
|
||||
## WiFi and Bluetooth Firmware
|
||||
|
||||
Be aware that the WiFi and Bluetooth firmware for the supported boards
|
||||
is not available in the base version of `linux-firmware` from OE-Core
|
||||
(poky). The files are added from Raspbian repositories in this layer's
|
||||
bbappends to that recipe. All machines define
|
||||
`MACHINE_EXTRA_RRECOMMENDS` to include the required wireless firmware;
|
||||
raspberrypi3 supports 3, 3B, and 3B+ and so include multiple firmware
|
||||
packages.
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
../README.md
|
||||
@@ -0,0 +1 @@
|
||||
myst_parser
|
||||
Reference in New Issue
Block a user