Commit Graph

63 Commits

Author SHA1 Message Date
Fabio Baltieri 98d9a7f86f scripts: compliance: add a compliance check to keep blocks of code sorted
This allows defining a list within two marker (zephyr-keep-sorted-start
and zephyr-keep-sorted-stop), and have the CI validate that the block is
kept sorted every time stuff gets added to it.

This is mainly for Kconfig and CMake include lists so that there's no
ambiguity on where to add new stuff.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2023-11-13 09:41:05 +01:00
Fabio Baltieri 183b84d0e2 scripts: compliance: add a check for missing west area maintainer enties
Add a check to ensure that every module has a corresponding maintainers
file entry, ensure modules are not added with no recorded point of
contact.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2023-09-14 08:13:57 -07:00
Fabio Baltieri 9de541b9c2 scripts: ci: check_compliance: add a no-modules Kconfig check
Add a variation of the basic Kconfig check that runs with no modules,
catches symbols that are used in the main repository but are defined
only in modules, which are potentially problematic if a downstream
project is not using the specific module.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2023-07-05 09:11:02 +02:00
Przemyslaw Bida 32c566afa7 tests bsim/net: Separate bsim networking and bluetooth tests.
Splitting bsim tests workflows to be triggered separatley for networking
(thread/802.15.4) and bluetooth tests.

Signed-off-by: Przemyslaw Bida <przemyslaw.bida@nordicsemi.no>
2023-04-12 22:42:03 +09:00
Alberto Escolar Piedras 3b8bf3021f gitignore: Ignore new bsim tests build folders
The default bsim tests build folder was changed in
2a9eda226b
Ignore it by default for users convenience.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2023-03-07 08:33:38 +01:00
Fabio Baltieri 86f7d80600 gitignore: update the list of compliance generated files
Update the list of compliance generated txt files and sort the list
while we are at it.

$ ./scripts/ci/check_compliance.py -l | sort
BinaryFiles
Checkpatch
DevicetreeBindings
Gitlint
Identity
ImageSize
Kconfig
KconfigBasic
MaintainersFormat
Nits
Pylint
YAMLLint

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2023-01-27 18:10:44 +09:00
Carles Cufi 66ad0e68a6 scripts: compliance: Use consistent naming convention
Tests are named with CamelCase in general, use that in the names.

Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
2022-11-21 11:02:39 -05:00
Carles Cufi 95053c8358 scripts: compliance: Fix DT Bindings check name
Check names must not contain spaces, since they are passed via `-m` in
the command-line.

Also update .gitignore and compliance.yml.

Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
2022-11-21 11:02:39 -05:00
Anas Nashif 0baf45f00a gitignore: ignore files generated by check_compliance
ignore many files generated by the check_compliance script.

Fixes #51611

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2022-11-19 13:41:48 +01:00
Daniel DeGrasse 88bfd3e27f gitignore: exclude scripts/pylib/build_helpers from git ignore list
Exclude scripts/pylib/build_helpers from default gitignore behavior of
ignoring all directories whose names begin with build, as this directory
is used for build helper scripts shared by west and twister.

Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
2022-10-26 08:48:37 -04:00
Jordan Yates 7df826e649 .gitignore: exempt `scripts/build` from ignore
Since the build scripts have been moved to `scripts/build`, exempt that
specific subdirectory from the `.gitignore` pattern.

Signed-off-by: Jordan Yates <jordan.yates@data61.csiro.au>
2022-07-30 08:29:29 -05:00
Martí Bolívar f8df2dadd9 .gitignore: fix !doc/build pattern
There is no doc/guides/build directory. Fix a line referencing this to
refer to the actual directory containing build and configuration
system documentation, doc/build. (This is distinct from the
documentation build directory, which is canonically doc/_build. I
know...).

Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
2022-07-22 10:31:31 +02:00
Aaron Massey 3f4159c5c7 gitignore: Ignore emacs temporary edit files
Emacs creates autosave and temporary files when editing.

These should be ignored by git.

Signed-off-by: Aaron Massey <aaronmassey@google.com>
2022-05-20 18:21:18 +02:00
Daniel Leung 02ea021cbe gitignore: add .clangd to the ignore list
This adds .clangd to .gitignore for when you need to provide
local configurations to clang's language server.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2022-04-24 19:47:40 +02:00
Jake Swensen f7870ff61b gitignore: ignore macos DS_Store files
.DS_Store files contain meta-data for the local macos system and should
not be tracked.

Signed-off-by: Jake Swensen <jake@swensen.io>
2021-11-03 16:14:20 -04:00
Jake Swensen 9b923c46fe gitignore: add ci output to ignore list
When running `scripts/ci/check_compliance.py` with no arguments, the
script will output compliance.xml to the root project directory.

Additionally, if the script fails to find a library, it can output a
_error.types file.

Signed-off-by: Jake Swensen <jake@swensen.io>
2021-11-03 16:14:20 -04:00
Gerard Marull-Paretas 3fde4af4d4 gitignore: add common Python venv directories
Add common directory names used for Python virtual environments to
gitignore.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2021-04-20 11:30:40 -05:00
Anas Nashif 5a4ab3388b gitignore: add twister-out
Add twister-out in the main .gitignore file.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2020-12-11 14:13:02 -05:00
Kumar Gala 97c3de64de gitignore: exclude tests/drivers/build_all
Exclude tests/drivers/build_all from the build*/ wildcard.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2020-03-20 13:49:05 -05:00
Flavio Ceolin 05cb5b3ef0 docs: guide: Add build system information
A detailed overview of Zephyr's build system. This is a
thorough view of the low level build process starting from CMake and
using Make as the build system tool. Things missing here that will be
further documented:

- west
- external modules/libraries

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
2019-11-15 14:58:51 -05:00
Henrik Brix Andersen 61861b6aa5 gitignore: ignore Emacs TAGS file
Ignore the Emacs TAGS file generated by scripts/tags.sh. Move the
entry for the lower-case tags file to the correct section.

Signed-off-by: Henrik Brix Andersen <henrik@brixandersen.dk>
2019-06-27 07:18:35 -04:00
Anas Nashif 6e07e75538 gitignore: ignore IDE files
Ignore files generated by IDEs.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2018-11-21 15:05:07 +01:00
Alberto Escolar Piedras 396d56e7c6 gitignore: Ignore default bsimt_bt test output folder
Similarly to sanitycheck the bsim_bt tests have their own
work folder where compilation output and coverage results are
kept.
Ignore the default folder

Signed-off-by: Alberto Escolar Piedras <alpi@oticon.com>
2018-11-13 11:14:19 -05:00
Marti Bolivar e3eb8e776a .gitignore: only ignore build directories
The "build*" pattern is ignoring any file that begins with
"build". Add a trailing "/" to limit the effect of the pattern
to directories.

This continues to ignore build directories, but allows adding files
whose names begin with build, which will be used later to create a
build.rst file for documenting west's build command.

Signed-off-by: Marti Bolivar <marti@foundries.io>
2018-10-12 11:37:48 +02:00
Alberto Escolar Piedras af71ca3a8b gitignore: add hide-defaults-note and a few more files
Add hide-defaults-note to the .gitignore file to prevent
people from commiting it by mistake.

Also add the Eclipse .settings folder.

Also ignore all the .*project file (IDEs typical pattern for
project files)

Signed-off-by: Alberto Escolar Piedras <alpi@oticon.com>
2018-10-10 04:21:45 -04:00
Kumar Gala 0fed8b9280 gitignore: Ignore any sanity-out* or build* dir
Tweak the wildcard matching for any build or sanity-out dir

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2018-10-04 21:13:19 -04:00
Sebastian Bøe 6da970e593 revert: print a note about the changed 'default' behavior"
The deprecation warning has existed for 1 release and 3 months, giving
users plenty of time to be warned.

This reverts commit 9c93e8e87b.

Signed-off-by: Sebastian Bøe <sebastian.boe@nordicsemi.no>
2018-10-02 14:06:02 -07:00
Yasushi SHOJI e1e12ba0c6 gitignore: Ignore GNU Global's tag files
GNU Global creates a few files at the root dir.  Ignore them all.

Signed-off-by: Yasushi SHOJI <y-shoji@ispace-inc.com>
2018-09-27 06:00:01 -05:00
Ulf Magnusson 9c93e8e87b Kconfig: Have CMake print a note about the changed 'default' behavior
Always print the note to make sure it isn't missed, but make it easy to
disable (by creating an empty file).

The note will be removed later.

Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
2018-08-10 12:38:28 -07:00
David B. Kinder d901add4c7 doc: update .gitignore file list
Changes to kconfig documentation generation added some new files
(choice*.rst) that need to be added to the .gitignore list.  Actually,
all the doc/reference/kconfig/*.rst files should be ignored.

Signed-off-by: David B. Kinder <david.b.kinder@intel.com>
2018-06-14 18:01:36 -04:00
Ulf Magnusson 11952a60bf kconfig: Remove the C Kconfig implementation
Remove the C Kconfig tools and various scripts associated with them.

scripts/kconfig/diffconfig is popular, so keep it.

I don't know whether anyone is using scripts/kconfig/config. Remove it
and see if anyone screams.

scripts/kconfig/streamline_config.pl deals with modules ('m' values) and
can safely be removed. Zephyr's Kconfig files do not use modules.

Signed-off-by: Ulf Magnusson <ulfalizer@gmail.com>
2018-05-07 21:53:37 +02:00
qianfan Zhao 81bac40b79 gitignore: let git ignore *.patch file only to top tree
add '/*.patch' to .gitignore

Signed-off-by: qianfan Zhao <qianfanguijin@163.com>
2018-05-06 22:22:53 -04:00
Sebastian Bøe 709daa20e9 cmake: Find a directory that could be used to cache files
To improve the build system's "clean build" runtime we need to cache
files in a directory outside of the build directory.

Caching files outside of the build directory is is already being done
to a certain degree today. For instance, if a user has installed
ccache it will cache files in $HOME/.ccache/.

This commit locates a directory that is suitable for caching files in
a cross-platform way. For instance on Linux this is believed to be
$HOME, on Windows this is believed to be %LOCALAPPDATA%.

If for whatever reason no environment variables are are found to be
suitable we fall back to using $ZEPHYR_BASE/.cache/. For users that
often use 'git -clean' the caching mechanism will not work as well,
but it will at least be better than no caching at all.

Signed-off-by: Sebastian Bøe <sebastian.boe@nordicsemi.no>
2018-04-27 12:06:02 +02:00
Pedro Martucci a495b31ee0 sample: net: RPL mesh sample over QEMU
Create a net sample to setup a multi-node RPL mesh network using QMEU.
To enable this, it was necessary implement a hw filter on IEEE 802.15.4
UART Pipe driver and create a QEMU pipe management on cmake.

This sample use a tool developed on zephyr net-tools repository called
virtual-hub.

Signed-off-by: Pedro Martucci <pedropaulomartucci@gmail.com>
2018-02-20 14:47:14 +02:00
Anas Nashif e754d44791 doc: report which warnings/errors are new
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2017-11-13 17:45:42 -05:00
Anas Nashif d5c43eda9c gitignore: add build directory to ignore list
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2017-11-08 20:00:22 -05:00
Leandro Pereira f5a8d498ea scripts: Convert gen_offset_header to Python
By having this as a Python script rather than a host executable, this
should simplify the build process on non-Unix platforms.

With this change, pyelftools is now required to build Zephyr.  Please
consult the getting started documentation for your host platform for
installation instructions.

Jira: ZEP-2062

Signed-off-by: Leandro Pereira <leandro.pereira@intel.com>
2017-07-24 11:20:04 -07:00
Wojciech Bober 8f5555bd9f gitignore: Add .envrc file used by direnv to .gitignore
Change-Id: Ibe1a3004d511e7896b8c30b8198bf490758568a9
Signed-off-by: Wojciech Bober <wojciech.bober@nordicsemi.no>
2017-07-17 15:25:30 -07:00
David B. Kinder 2178f62d2f doc: tweak .gitignore to allow doc theme dev
doc processing wants themes to be in the doc/themes folder
This patch makes it easier to develop and test the website
theme with local content generation usint the web theme.

Change-Id: Icc615f2ecbe3b7cecb7974405a44304ffdf68966
Signed-off-by: David B. Kinder <david.b.kinder@intel.com>
2017-02-23 13:20:04 +00:00
Mazen NEIFER 95428c75e9 gitignore: Ignore Eclipse (Xtensa Xplorer) project files.
When debugging Xtensa port, on needs for sure to create an Xtensa Xplorer
project in order to be able to debug his project. These files will appear
in the git repository as non versioned files. It is safe to ignore them as
we won't anybody commit these files (user specific).

Change-Id: I156ec5c7393f1db98286da0b841a4e8496a9ff89
Signed-off-by: Mazen NEIFER <mazen@nestwave.com>
2017-02-13 08:04:27 -08:00
David B. Kinder 73f41699e3 doc: update .gitignore
gerrit patch https://gerrit.zephyrproject.org/r/#/c/10849/
changed where doxygen xml data is generated.  Git should
ignore this directory.

Change-Id: I7f9aa9246e6453deb74ecb71b5e786253fba9d0a
Signed-off-by: David B. Kinder <david.b.kinder@intel.com>
2017-02-09 23:51:54 +00:00
Anas Nashif 06382b8cba doc: move context back to doc/, fix broken links
Running documentation scripts on the top directory shifted all links one
level dowwn and is breaking all incoming links.

Use a script to copy all RST files into the doc/ directory before
running sphinx and keep structure intact.

Jira: ZEP-1579
Change-Id: Iccff068430e2ddb29e172cd8ae920475815d199e
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2017-01-16 18:05:06 -05:00
Inaky Perez-Gonzalez f2425aa8de testcases: instruct git to ignore *log and outdir-*
These are files and directories generated when running automated
real-hardware testcases.

Change-Id: Ia8474835e435b8824a0b5f2d7db6bbf619634154
Signed-off-by: Inaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com>
2016-06-14 22:01:34 +00:00
Andrew Boie ff872dc349 build: rename non-generated linker scripts to .ld extension
Avoids confusion with .gitignore rules, which were inadequate to
cover all the places where these files are found. At least in
VIM, these files are now syntax highlighted correctly.

Change-Id: I23810b0ed34129320cc2760e19ed1a610afe039e
Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
2016-05-09 18:09:26 +00:00
Daniel Leung f07539313c gitignore: Fix doxygen generated directory names
The dir/file names in .gitignore are relatively to the root
of the git tree, so amend it.

Change-Id: I532b3fae4f66590fb34555dd8407576f1e27f744
Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2016-04-15 22:06:42 +00:00
Maciek Borzecki b5e26faceb gitignore: make sure that SOC specific linker scripts stay visible
Update gitignore so that linker scripts lower in directory tree under
arch/*/soc stay visible when running `git status`

Change-Id: Ia618eab4534c6ff06d3dedbcd3e0062c1dd278de
Signed-off-by: Maciej Borzecki <maciek.borzecki@gmail.com>
2016-03-04 18:31:42 +00:00
Andre Guedes 215f5905a8 gitignore: Add vim temporary files
Change-Id: Ia36f479b449bb17ad0496d977c034f13ea978fd0
Signed-off-by: Andre Guedes <andre.guedes@intel.com>
2016-02-05 20:25:14 -05:00
Allan Stephens 1e15f54fec doc: Prevent accidental commit of Kconfig index file
The Kconfig documentation index file is auto-generated. Adding it
to list of files ignored by git so that it isn't added by accident
in the future.

Change-Id: I763a3d3d9382bec843e1e4ddfc198f756bb5cb80
Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
2016-02-05 20:24:42 -05:00
Andrew Boie 009ddade3a .gitignore: add ctags data file
Change-Id: I4befc9393e46be11f6f16d88ffee03853b27ed38
Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
2016-02-05 20:16:15 -05:00
Anas Nashif 01fbc04fb1 update .gitignore with auto-generated files
Change-Id: I6603cc91ca281e6d84e3c6a73dd6be3f50cfef96
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2016-02-05 20:15:35 -05:00