diff options
author | Kinsey Moore <kinsey.moore@oarcorp.com> | 2022-08-24 07:54:37 -0500 |
---|---|---|
committer | Joel Sherrill <joel@rtems.org> | 2022-08-25 13:37:09 -0500 |
commit | 23bf77373f5d6c3130a25fc3eb48ac863978ce93 (patch) | |
tree | b1a1263d9bb7330e1c9fa52bbbc327336b77338c /lwip.py | |
parent | rtemslwip: Document a deficiency in syslog (diff) | |
download | rtems-lwip-23bf77373f5d6c3130a25fc3eb48ac863978ce93.tar.bz2 |
lwip.py: Remove usage of YAML
YAML is not supported in base Python installs and so is not safe to
blindly assume is available. This swaps existing usage to JSON to be
more compatible.
Diffstat (limited to 'lwip.py')
-rw-r--r-- | lwip.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -26,7 +26,7 @@ # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. from rtems_waf import rtems -import yaml +import json import os xilinx_drv_incl = '' @@ -66,8 +66,8 @@ def build(bld): arch_lib_path = rtems.arch_bsp_lib_path(bld.env.RTEMS_VERSION, bld.env.RTEMS_ARCH_BSP) - with open('file-import.yaml', 'r') as cf: - files = yaml.full_load(cf.read()) + with open('file-import.json', 'r') as cf: + files = json.load(cf) for f in files['files-to-import']: if f[-2:] == '.c': source_files.append(os.path.join('./lwip', f)) |