summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2016-09-11 17:02:51 +1000
committerChris Johns <chrisj@rtems.org>2016-09-11 17:02:51 +1000
commitc60c068bb66282b3ae6a8fb8144b4d8ef3f92afb (patch)
treebbdef46f2e72c291bbf2f0015fc30a9714604dee
parentAdd support to access rtems-libbsd. (diff)
downloadrtems_waf-c60c068bb66282b3ae6a8fb8144b4d8ef3f92afb.tar.bz2
libbsd: Fix UnboundLocalError when rtems_libbsd is None.
-rw-r--r--rtems_bsd.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/rtems_bsd.py b/rtems_bsd.py
index eaff438..13212de 100644
--- a/rtems_bsd.py
+++ b/rtems_bsd.py
@@ -26,6 +26,8 @@
from __future__ import print_function
+import os.path
+
try:
import rtems_waf.rtems as rtems
except:
@@ -56,7 +58,6 @@ def bsp_configure(conf, arch_bsp):
if conf.options.rtems_libbsd is None:
rtems_libbsd_path = conf.env.PREFIX
else:
- import os.path
if not os.path.exists(conf.options.rtems_libbsd):
conf.fatal('RTEMS LibBSD not found')
rtems_libbsd_path = conf.options.rtems_libbsd