zephyr/scripts
Martí Bolívar e76b7205ef dts: edtlib: allow pickling/unpickling EDT objects
We have a use case for saving the EDT object to be able to open it up
again later. It would be convenient to be able to do this with the
pickle module from stdlib.

The only thing stopping us from doing that appears to be the open
reference to sys.stderr that's held the edt object even after
EDT.__init__ exits. However, there doesn't seem to be a need to keep
holding on to this object, and in fact it would be a little bit nicer
to drop the reference in case something else (even in the same Python
process that created it originally) wants the EDT object around, but
might want the warn file closed if its refcount zeroes out.

Just drop the reference at the end of __init__ and make EDT._warn()
throw an exception if it's attempted to be used after the constructor
exits.

Make pickle-ability an API guarantee so we can treat any regressions
as bugs going forward.

Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
2020-07-08 14:02:44 -05:00
..
checkpatch
ci ci: do not run sanitycheck on linter config changes 2020-07-03 07:58:31 -04:00
coccinelle zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
dts dts: edtlib: allow pickling/unpickling EDT objects 2020-07-08 14:02:44 -05:00
footprint
gitlint
kconfig Bluetooth: smp: Warn on enabling several Bluetooth options 2020-06-17 17:14:33 +03:00
net scripts: net: Fix incorrect error messages 2020-05-21 14:45:07 +02:00
release
sanity_chk sanitycheck: Use the C LibYAML parser if available 2020-07-08 13:34:45 -05:00
support
tests/sanitycheck sanitycheck: Testcases for report functions of TestSuite Class 2020-07-03 12:20:35 -04:00
tracing scripts: add script for usb backend to receive tracing data 2020-02-05 23:54:26 -05:00
west_commands scripts: bossac: automatically pull the flash offset from the config 2020-07-02 08:23:03 -04:00
.gitignore scripts: tests: sanitycheck: Add basic foundation for sanitycheck testsuite 2020-03-24 22:32:26 -04:00
checkpatch.pl Revert "checkpatch: update checkpatch to warn about C99 type usage" 2020-06-08 08:23:57 -05:00
checkstack.pl
coccicheck scripts: Fix documunt referenc for coccicheck 2020-05-08 17:44:44 +02:00
dir_is_writeable.py
file2hex.py scripts: file2hex.py: PEP 8 style fix 2020-06-12 11:09:58 +02:00
filter-known-issues.py
gen_app_partitions.py
gen_cfb_font_header.py zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
gen_gcov_files.py scripts: gen_gcov_files.py: add argument help text 2020-06-13 16:33:22 -04:00
gen_kobject_list.py zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
gen_offset_header.py scripts: gen_offset_header: add argument help text 2020-05-21 14:45:24 +02:00
gen_relocate_app.py zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
gen_syscalls.py scripts: gen_syscalls: typo fix 2020-06-09 10:39:49 +02:00
mergehex.py
parse_syscalls.py userspace: net sockets are kernel objects 2020-06-03 22:33:32 +02:00
process_gperf.py scripts: process_gperf: typo fix 2020-06-09 10:40:58 +02:00
requirements-base.txt scripts: west: add CANopen flash runner 2020-05-08 10:53:42 +02:00
requirements-build-test.txt tests: sanitycheck: Testcases for load_from_file and apply_filters 2020-06-15 22:27:18 -04:00
requirements-doc.txt ci: do not use latest breathe release for docs 2020-04-07 18:51:13 -04:00
requirements-extras.txt scripts/requirements: Split & document requirement.txt 2020-03-19 15:41:08 +01:00
requirements-run-test.txt requirements: add psutil, needed by sanitycheck 2020-05-06 11:07:22 -05:00
requirements.txt scripts/requirements: Split & document requirement.txt 2020-03-19 15:41:08 +01:00
sanitycheck sanitycheck: fix --failed-only handling 2020-07-03 07:25:49 -04:00
series-push-hook.sh
spelling.txt
subfolder_list.py python: subfolder_list.py now generates shorter link names 2020-04-22 17:24:04 +02:00
tags.sh
user_wordsize.py posix arch: build on aarch64 / allow host-specific cmake includes 2020-05-09 12:17:24 +02:00
valgrind.supp
west-commands.yml cmake: West extension command for Zephyr config package registration 2020-03-27 16:23:46 +01:00
zephyr_module.py scripts: zephyr modules: introducing Zephyr module dependency handling 2020-06-12 11:07:58 +02:00