Pau Espin Pedrol has uploaded this change for review. ( 
https://gerrit.osmocom.org/12847


Change subject: build_eeprom.py: Fix build for distros with python3 as default
......................................................................

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
---
M firmware/src/common/build_eeprom.py
M firmware/src/usrp2/Makefile.am
2 files changed, 3 insertions(+), 3 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/libusrp refs/changes/47/12847/1

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 @@
        $(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 $@



--
To view, visit https://gerrit.osmocom.org/12847
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: libusrp
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie695c26f1b2a4f84bdc2b67938fe37a4c50681dd
Gerrit-Change-Number: 12847
Gerrit-PatchSet: 1
Gerrit-Owner: Pau Espin Pedrol <[email protected]>

Reply via email to