Skip to contentSkip to conversation

boot/at91bootstrap3: add dependency to host python3

PATCH New Eugen Hristev 3 participants 3 messages Aug 4, 2020 – Aug 5, 2020 Arm/Microchip (AT91) SoC support

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 boot/at91bootstrap3: add dependency to host python3

Starting with version 3.9.3, AT91Bootstrap adds dependency for host python3.
Python2 was deprecated so moving to Python3.
AT91Bootstrap only requires Python3 at build time, for some scripts that generate specific metadata.

---
Changes in v2:
- fix typo s/boot/build

 boot/at91bootstrap3/at91bootstrap3.mk | 2 ++
 1 file changed, 2 insertions(+)
boot/at91bootstrap3/at91bootstrap3.mk +2 -0
index 5cf865c681..a601f35a4b 100644
@@ -6,6 +6,8 @@
 
 AT91BOOTSTRAP3_VERSION = $(call qstrip,$(BR2_TARGET_AT91BOOTSTRAP3_VERSION))
 
+AT91BOOTSTRAP3_DEPENDENCIES += host-python3
+
 ifeq ($(BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_TARBALL),y)
 AT91BOOTSTRAP3_TARBALL = $(call qstrip,$(BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_TARBALL_LOCATION))
 AT91BOOTSTRAP3_SITE = $(patsubst %/,%,$(dir $(AT91BOOTSTRAP3_TARBALL)))
Signature · 1 line
2.25.1
#1 lore raw

PATCH v2 1/1 boot/at91bootstrap3: add dependency to host python3

Hello,

Quoted 10 lines · Eugen Hristev

Starting with version 3.9.3, AT91Bootstrap adds dependency for host python3.
Python2 was deprecated so moving to Python3.
AT91Bootstrap only requires Python3 at build time, for some scripts that generate specific metadata.

---
Changes in v2:
- fix typo s/boot/build

Greets
Alex

Quoted 24 lines
 boot/at91bootstrap3/at91bootstrap3.mk | 2 ++
 1 file changed, 2 insertions(+)
boot/at91bootstrap3/at91bootstrap3.mk +2 -0
index 5cf865c681..a601f35a4b 100644
@@ -6,6 +6,8 @@
 
 AT91BOOTSTRAP3_VERSION = $(call qstrip,$(BR2_TARGET_AT91BOOTSTRAP3_VERSION))
 
+AT91BOOTSTRAP3_DEPENDENCIES += host-python3
+
 ifeq ($(BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_TARBALL),y)
 AT91BOOTSTRAP3_TARBALL = $(call qstrip,$(BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_TARBALL_LOCATION))
 AT91BOOTSTRAP3_SITE = $(patsubst %/,%,$(dir $(AT91BOOTSTRAP3_TARBALL)))
Signature · 6 lines
2.25.1

_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
Signature · 11 lines
/"\ ASCII RIBBON | ?With the first link, the chain is forged. The first
\ / CAMPAIGN     | speech censured, the first thought forbidden, the
 X  AGAINST      | first freedom denied, chains us all irrevocably.?
/ \ HTML MAIL    | (Jean-Luc Picard, quoting Judge Aaron Satie)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20200804/1e5d4d37/attachment.asc>
#2 lore raw

PATCH v2 1/1 boot/at91bootstrap3: add dependency to host python3

In reply to Eugen Hristev
Quoted 19 lines · On Tue, 4 Aug 2020 11:29:06 +0300 Eugen Hristev <[email protected]>…

Starting with version 3.9.3, AT91Bootstrap adds dependency for host python3.
Python2 was deprecated so moving to Python3.
AT91Bootstrap only requires Python3 at build time, for some scripts that generate specific metadata.

---
Changes in v2:
- fix typo s/boot/build

 boot/at91bootstrap3/at91bootstrap3.mk | 2 ++
 1 file changed, 2 insertions(+)
boot/at91bootstrap3/at91bootstrap3.mk +0 -0
index 5cf865c681..a601f35a4b 100644

boot/at91bootstrap3/at91bootstrap3.mk line 9

Quoted 4 lines
boot/at91bootstrap3/at91bootstrap3.mk +1 -0
@@ -6,6 +6,8 @@
 
 AT91BOOTSTRAP3_VERSION = $(call qstrip,$(BR2_TARGET_AT91BOOTSTRAP3_VERSION))
 
+AT91BOOTSTRAP3_DEPENDENCIES += host-python3

In fact the Python dependency is not needed in all situations: it's only NAND-based configuration that need Python if I understand correctly.

So I think we should handle this with a BR2_TARGET_AT91BOOTSTRAP3_NEEDS_PYTHON option, a bit like what U-Boot is doing, but perhaps without the python2/python3 choice.

Could you work on this ?

Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com