mirror of https://gerrit.osmocom.org/libusrp
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
This commit is contained in:
parent
bbb6193093
commit
d20c118fd2
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env python
|
||||
#!/usr/bin/env python2
|
||||
#
|
||||
# Copyright 2004,2006 Free Software Foundation, Inc.
|
||||
#
|
||||
|
|
|
@ -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 $@
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue