diff options
author | Chris Johns <chrisj@rtems.org> | 2016-09-11 17:02:51 +1000 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2016-09-11 17:02:51 +1000 |
commit | c60c068bb66282b3ae6a8fb8144b4d8ef3f92afb (patch) | |
tree | bbdef46f2e72c291bbf2f0015fc30a9714604dee | |
parent | c70e91a29dbc4824e78c899ee4f83454a6620c73 (diff) |
libbsd: Fix UnboundLocalError when rtems_libbsd is None.
-rw-r--r-- | rtems_bsd.py | 3 |
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 |