mbox series

[OpenWrt-Devel,0/6] build: switch to Python 3

Message ID 1560802136-4157-1-git-send-email-ynezz@true.cz
Headers show
Series build: switch to Python 3 | expand

Message

Petr Štetiar June 17, 2019, 8:08 p.m. UTC
Hi,

this patch series switches Python used in buildroot to Python 3 as Python 2.x
series is going to be EOL relatively soon[1].

 "Being the last of the Python 2.x series, 2.7 will have an extended
  period of maintenance. Specifically, 2.7 will receive bugfix support
  until January 1, 2020. After the last release, 2.7 will receive no
  support."

It seems like Python 3 is going to be needed in order to support Meson
build system which has gained some traction recently.

Build tested on following targets:

 ath79/generic
 imx6/generic
 ipq40xx/generic
 lantiq/xway
 layerscape/armv7 (broken)
 layerscape/armv8_32b (broken)
 layerscape/armv8_64b (broken)
 mvebu/cortexa72
 ramips/mt7621
 ramips/mt7620
 sunxi/cortexa7
 x86/64

Layerscape targets are unfortunately left broken as their ls-rcw
firmware package uses Python 2 and converting it to Python 3 would take
more then reasoanble amount of time (I've tried to fix it already) and
would be better fixed by someone who can even run test it.

Run tested on ath79 (Archer C7 v5), ipq40xx (nbg6617) and x86_64 (QEMU
and apu2).

1. https://www.python.org/dev/peps/pep-0373/

Ref: PR#1937
Signed-off-by: Petr Štetiar <ynezz@true.cz>

Petr Štetiar (6):
  tools/b43-tools/b43-fwsquash: convert to Python 3 with 2-to-3
  scripts/dl_github_archive.py: convert to Python 3 with 2-to-3
  scripts/jungo-image: convert to Python 3 with 2-to-3
  tools/scons: switch to Python 3
  build: switch to Python 3
  build: cleanup possibly dangling Python 2 host symlink

 README                                |  2 +-
 include/prereq-build.mk               | 17 +++++++++---
 include/prereq.mk                     | 11 ++++++++
 scripts/dl_github_archive.py          | 10 +++----
 scripts/flashing/jungo-image.py       | 52 +++++++++++++++++------------------
 tools/b43-tools/files/b43-fwsquash.py | 16 +++++------
 tools/scons/files/pywrap.sh           |  6 ++--
 7 files changed, 67 insertions(+), 47 deletions(-)