zephyr/scripts
Torsten Rasmussen fffaf05e5d scripts: support for build meta file creation
This commit is motivated by the west discussion in:
https://github.com/zephyrproject-rtos/west/issues/548

The commit provides the ability to generate a build meta info file
containing lists of:
- Zephyr:         path and revision
- Zephyr modules: name, path, and revision
- West:           manifest path
                  path and revision for each project

For Zephyr or Zephyr modules the revision will be `null` if it is not
under git version control.

If Zephyr, a modules, or a project has uncommitted changes, the revision
will be marked dirty.

If west is not installed or used for the build process, the
west-projects list will be empty.

If a project is both a Zephyr module and a west project it will show up
in both lists.

Similar to Zephyr, which is independently referred as the Zephyr in use
but also listed as west project when west is used.
This is important in case ZEPHYR_BASE was manually set and pointing to
a different Zephyr repository.

The build meta file is not created per default but can be enabled with
the BUILD_OUTPUT_META Kconfig setting.

A project using west and having an extra Zephyr module loaded not
controlled using git can look like:
zephyr:
  path: /.../zephyr
  revision: 863600cd0e3c0a271e86629c5089821e5e4380cc-dirty
modules:
- name: mcuboot
  path: /.../bootloader/mcuboot
  revision: c61538748ead773ea75a551a7beee299228bdcaf
- name: local_module
  path: /.../local_module
  revision: null
west:
  manifest: /.../zephyr/west.yml
  projects:
  - path: /.../zephyr
    revision: 863600cd0e3c0a271e86629c5089821e5e4380cc-dirty
  - path: /.../bootloader/mcuboot
    revision: c61538748ead773ea75a551a7beee299228bdcaf
  - path: /.../tools/net-tools
    revision: f49bd1354616fae4093bf36e5eaee43c51a55127

And without west:
zephyr:
  path: /.../zephyr
  revision: 863600cd0e3c0a271e86629c5089821e5e4380cc-dirty
modules:
- name: hal_nordic
  path: /.../modules/hal/nordic
  revision: a6e5299041f152da5ae0ab17b2e44e088bb96d6d
west: null

Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
2021-11-11 06:06:07 -05:00
..
checkpatch
ci ci: hotfix: disable test exclusion by tags 2021-11-10 22:37:21 -05:00
coccinelle
coredump scripts: coredump: rename parser to avoid conflict with builtin module 2021-07-19 21:14:16 +03:00
dts gen_defines: generate ranges defines for PCIe I/O and memory regions 2021-11-10 08:23:00 -05:00
footprint footprint: Add Bluetooth samples to footprint tracking 2021-11-10 08:05:21 -05:00
gitlint
kconfig kconfig: add support for warnings when using experimental features 2021-10-22 13:59:21 +02:00
logging/dictionary scripts: colorize parsed dictionary logging 2021-07-16 21:34:06 -04:00
net
pylib/twister twister: reenable build samples on Windows OS 2021-11-04 07:33:39 -04:00
release scripts: add script to extract top-ten bug-bashers 2021-09-01 17:06:50 -04:00
schemas/twister twister: Allow baud rates other than 115200 2021-10-14 16:35:48 -04:00
support
tests ztest: add a weak implementation of test_main() 2021-10-28 16:57:51 -04:00
tracing
west_commands west: build.py: resolve symlinks in cached source directory check 2021-11-10 08:27:16 -05:00
.gitignore
checkpatch.pl
checkstack.pl
coccicheck
dir_is_writeable.py
file2hex.py
gen_app_partitions.py gen_app_partitions: add .sdata/.sbss section into app_smem 2021-10-25 19:16:37 -04:00
gen_cfb_font_header.py
gen_gcov_files.py
gen_handles.py device: add fudge factor for handle padding 2021-09-30 21:37:59 -04:00
gen_kobject_list.py kernel: add support for event objects 2021-10-16 06:27:10 -04:00
gen_kobject_placeholders.py
gen_offset_header.py
gen_relocate_app.py scripts: gen_relocate_app: check if argument matches 2021-11-02 22:26:41 -04:00
gen_syscalls.py Tracing: TRACING_SYSCALL status ignored fix 2021-10-26 15:13:08 -04:00
get_maintainer.py scripts: get_maintainer: add count function 2021-10-18 08:36:21 -04:00
list_boards.py
mergehex.py
parse_syscalls.py
process_gperf.py
requirements-base.txt
requirements-build-test.txt
requirements-compliance.txt
requirements-doc.txt
requirements-extras.txt scripts: add script to extract top-ten bug-bashers 2021-09-01 17:06:50 -04:00
requirements-run-test.txt
requirements.txt
series-push-hook.sh
spelling.txt
subfolder_list.py
tags.sh
twister twister: reenable build samples on Windows OS 2021-11-04 07:33:39 -04:00
uf2conv.py
user_wordsize.py
valgrind.supp
west-commands.yml
zephyr_module.py scripts: support for build meta file creation 2021-11-11 06:06:07 -05:00