Skip to contentSkip to conversation

package/python-pillow: enable host package

PATCH In review Kory Maincent via buildroot 2 participants 4 messages Jun 2, 2022 – Jun 5, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 package/python-pillow: enable host package

From: Kory Maincent <[email protected]>

Enable host package, needed for the build of specific optee-os package version.

---
 package/python-pillow/python-pillow.mk | 1 +
 1 file changed, 1 insertion(+)
package/python-pillow/python-pillow.mk +1 -0
index 1105326799..2abe5e04ef 100644
@@ -72,3 +72,4 @@ PYTHON_PILLOW_BUILD_OPTS += --disable-webp --disable-webpmux
 endif
 
 $(eval $(python-package))
+$(eval $(host-python-package))
Signature · 6 lines
2.25.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

PATCH 2/2 boot/optee-os: add support to build with python-pillow

From: Kory Maincent <[email protected]>

SOC constructor version of optee-os may uses python-pillow to build the Trusted User Interface feature.
Add support to build these specific versions by adding a new BR2_TARGET_OPTEE_OS_NEEDS_PYTHON_PILLOW option which will select host-python-pillow dependency.

---
 boot/optee-os/Config.in   | 7 +++++++
 boot/optee-os/optee-os.mk | 4 ++++
 2 files changed, 11 insertions(+)
boot/optee-os/Config.in +7 -0
index fb8a189a75..b459393191 100644
@@ -72,6 +72,13 @@ config BR2_TARGET_OPTEE_OS_NEEDS_PYTHON_CRYPTOGRAPHY
 	  python-cryptography. Select this option if optee-os needs
 	  python-cryptography to be built.
 
+config BR2_TARGET_OPTEE_OS_NEEDS_PYTHON_PILLOW
+	bool "OP-TEE OS needs host-python-pillow"
+	help
+	  OP-TEE OS version from SOC manufacturer may use python-pillow
+	  to build the Trusted User Interface feature.
+	  Select this option if optee-os need python-pillow to be built.
+
 config BR2_TARGET_OPTEE_OS_CORE
 	bool "Build core"
 	default y
boot/optee-os/optee-os.mk +4 -0
index 5313a1badc..88f14b48e4 100644
@@ -29,6 +29,10 @@ else
 OPTEE_OS_DEPENDENCIES += host-python-pycryptodomex
 endif
 
+ifeq ($(BR2_TARGET_OPTEE_OS_NEEDS_PYTHON_PILLOW),y)
+OPTEE_OS_DEPENDENCIES += host-python-pillow
+endif
+
 ifeq ($(BR2_TARGET_OPTEE_OS_NEEDS_DTC),y)
 OPTEE_OS_DEPENDENCIES += host-dtc
 endif
Signature · 6 lines
2.25.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#2 lore raw

Re: [Buildroot] [PATCH 2/2] boot/optee-os: add support to build with python-pillow

Hello Kory,

Quoted 4 lines · On Thu, 2 Jun 2022 at 11:00, <[email protected]> wrote:

From: Kory Maincent <[email protected]>

SOC constructor version of optee-os may uses python-pillow to build the

s/uses/use/

Quoted 7 lines

Trusted User Interface feature.
Add support to build these specific versions by adding a new BR2_TARGET_OPTEE_OS_NEEDS_PYTHON_PILLOW option which will select host-python-pillow dependency.

---

LGTM (Acked-by: Etienne Carriere <[email protected]>) with 2 minor spelling issues.

Quoted 9 lines
 boot/optee-os/Config.in   | 7 +++++++
 boot/optee-os/optee-os.mk | 4 ++++
 2 files changed, 11 insertions(+)
boot/optee-os/Config.in +0 -0
index fb8a189a75..b459393191 100644

boot/optee-os/Config.in config BR2_TARGET_OPTEE_OS_NEEDS_PYTHON_CRYPTOGRAPHY · line 80

Quoted 9 lines
boot/optee-os/Config.in +6 -0
@@ -72,6 +72,13 @@ config BR2_TARGET_OPTEE_OS_NEEDS_PYTHON_CRYPTOGRAPHY
          python-cryptography. Select this option if optee-os needs
          python-cryptography to be built.
 
+config BR2_TARGET_OPTEE_OS_NEEDS_PYTHON_PILLOW
+       bool "OP-TEE OS needs host-python-pillow"
+       help
+         OP-TEE OS version from SOC manufacturer may use python-pillow
+         to build the Trusted User Interface feature.
+         Select this option if optee-os need python-pillow to be built.

s/need/needs/

Quoted 20 lines
boot/optee-os/Config.in +1 -0
+
 config BR2_TARGET_OPTEE_OS_CORE
        bool "Build core"
        default y
boot/optee-os/optee-os.mk +4 -1
index 5313a1badc..88f14b48e4 100644
@@ -29,6 +29,10 @@ else
 OPTEE_OS_DEPENDENCIES += host-python-pycryptodomex
 endif
 
+ifeq ($(BR2_TARGET_OPTEE_OS_NEEDS_PYTHON_PILLOW),y)
+OPTEE_OS_DEPENDENCIES += host-python-pillow
+endif
+
 ifeq ($(BR2_TARGET_OPTEE_OS_NEEDS_DTC),y)
 OPTEE_OS_DEPENDENCIES += host-dtc
 endif
--
Quoted 2 lines

2.25.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#3 lore raw
In reply to Kory Maincent via buildroot
Quoted 9 lines · On Thu, 2 Jun 2022 11:00:11 +0200 Kory Maincent via buildroot…

From: Kory Maincent <[email protected]>

Enable host package, needed for the build of specific optee-os package version.

---
 package/python-pillow/python-pillow.mk | 1 +
 1 file changed, 1 insertion(+)

Both applied to master, with improved commit logs, and an improved Config.in help text on PATCH 2/2.

Thomas

Signature · 7 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot