summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarel Gardas <karel@functional.vision>2023-07-22 17:03:50 +0200
committerKarel Gardas <karel@functional.vision>2023-07-22 17:35:12 +0200
commit8151754a5d6efd9b6be4d728f3633dc6a63672a9 (patch)
tree061e6e433204403e2ddbd80158970348c52b3d08
parentAllow vendor field in toolchain target triplet (diff)
downloadrtems_waf-8151754a5d6efd9b6be4d728f3633dc6a63672a9.tar.bz2
fix typo and logic issue when libbsd checking is enforced by the user code
Fixes #4930.
-rw-r--r--rtems_bsd.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/rtems_bsd.py b/rtems_bsd.py
index 7fbe66f..8faae10 100644
--- a/rtems_bsd.py
+++ b/rtems_bsd.py
@@ -71,8 +71,8 @@ def bsp_configure(conf, arch_bsp, mandatory=True):
'configure RTEMS with --disable-networking')
rtems_libbsd_path = conf.options.rtems_libbsd
if rtems_libbsd_path is None:
- if conf.options.rtems is None:
- rtems_libbsd_path = conf.options.rtems
+ if conf.options.rtems_path is not None:
+ rtems_libbsd_path = conf.options.rtems_path
else:
rtems_libbsd_path = conf.env.PREFIX