summaryrefslogtreecommitdiffstats
path: root/lwip.py
diff options
context:
space:
mode:
authorKinsey Moore <kinsey.moore@oarcorp.com>2022-08-24 07:54:37 -0500
committerJoel Sherrill <joel@rtems.org>2022-08-25 13:37:09 -0500
commit23bf77373f5d6c3130a25fc3eb48ac863978ce93 (patch)
treeb1a1263d9bb7330e1c9fa52bbbc327336b77338c /lwip.py
parentrtemslwip: Document a deficiency in syslog (diff)
downloadrtems-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.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/lwip.py b/lwip.py
index b97d273..e63f4e6 100644
--- a/lwip.py
+++ b/lwip.py
@@ -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))