From d20c118fd2490232ee694a791a8a5deb5cba8be5 Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Wed, 6 Feb 2019 18:10:35 +0100 Subject: [PATCH] build_eeprom.py: Fix build for distros with python3 as default The script contains python2-only syntax, so it can only be run with python2. Make sure to explicitly specify it needs to be run with python2 in order to run it fine on distros where python points to python3. Change-Id: Ie695c26f1b2a4f84bdc2b67938fe37a4c50681dd --- firmware/src/common/build_eeprom.py | 2 +- firmware/src/usrp2/Makefile.am | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/firmware/src/common/build_eeprom.py b/firmware/src/common/build_eeprom.py index 00c2e34..6092d61 100755 --- a/firmware/src/common/build_eeprom.py +++ b/firmware/src/common/build_eeprom.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python2 # # Copyright 2004,2006 Free Software Foundation, Inc. # diff --git a/firmware/src/usrp2/Makefile.am b/firmware/src/usrp2/Makefile.am index 24ff9b1..a32e20c 100644 --- a/firmware/src/usrp2/Makefile.am +++ b/firmware/src/usrp2/Makefile.am @@ -108,11 +108,11 @@ eeprom_boot.ihx: $(EEPROM_BOOT_OBJS) $(LIBDEP) $(XCC) $(LINKOPTS) -o $@ $(EEPROM_BOOT_OBJS) burn-usrp2-eeprom: eeprom_boot.ihx - $(PYTHON) $(srcdir)/../common/build_eeprom.py -p$(prefix) -r2 eeprom_boot.ihx > $@ + $(srcdir)/../common/build_eeprom.py -p$(prefix) -r2 eeprom_boot.ihx > $@ chmod +x $@ burn-usrp4-eeprom: eeprom_boot.ihx - $(PYTHON) $(srcdir)/../common/build_eeprom.py -p$(prefix) -r4 eeprom_boot.ihx > $@ + $(srcdir)/../common/build_eeprom.py -p$(prefix) -r4 eeprom_boot.ihx > $@ chmod +x $@