编译uboot报错:
HOSTLD scripts/kconfig/conf
scripts/kconfig/conf --silentoldconfig Kconfig
CHK include/config.h
UPD include/config.h
GEN include/autoconf.mk
GEN include/autoconf.mk.dep
GCC version: 8.2.1
MVXV
chip_id I2M
File "ms_gen_mvxv_h.py", line 20
print 'ERROR: must specify output header file!!'
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print('ERROR: must specify output header file!!')?
make: *** [Makefile:1154: include/config/uboot.release] Error 1
这可能是python版本不对导致的,我当前的版本是python3.8,降级到2.7就可以正常编译了
sudo apt-get install python2.7
sudo rm /usr/bin/python
sudo ln -s /usr/bin/python2.7 /usr/bin/python