aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2019-02-06 18:10:35 +0100
committerPau Espin Pedrol <pespin@sysmocom.de>2019-02-06 18:12:22 +0100
commitd20c118fd2490232ee694a791a8a5deb5cba8be5 (patch)
tree3fb8eeaff00986f044179d5b4803fe084c302a3e
parentbbb6193093b862427ac97fd576432700d50093ae (diff)
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
-rwxr-xr-xfirmware/src/common/build_eeprom.py2
-rw-r--r--firmware/src/usrp2/Makefile.am4
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 $@