Skip to content

Commit

Permalink
setup.py: Remove support for building LSB-compliant bootloaders.
Browse files Browse the repository at this point in the history
  • Loading branch information
htgoebel committed Feb 16, 2017
1 parent 07c5248 commit d72a544
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,23 +110,6 @@ def compile_bootloader(self):

src_dir = os.path.join(HOMEPATH, 'bootloader')
cmd = [sys.executable, './waf', 'configure', 'all']
if is_linux:
env = os.environ.copy()
try:
env['PATH'] += ':/opt/lsb/bin'
except:
env['PATH'] = '/opt/lsb/bin'
lsb = False
try:
FNULL = open(os.devnull, 'w')
if subprocess.call(['which', 'lsbcc'], env=env,
stderr=FNULL, stdout=FNULL,
close_fds=True) == 0:
lsb = True
except compat.FileNotFoundError:
pass
if not lsb:
cmd.append('--no-lsb')
rc = subprocess.call(cmd, cwd=src_dir)
if rc:
raise SystemExit('ERROR: Failed compiling the bootloader. '
Expand Down

0 comments on commit d72a544

Please sign in to comment.