All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/2] package/python-pyelftools: Add host variant
@ 2019-04-18 13:23 Shyam Saini
  2019-04-18 13:23 ` [Buildroot] [PATCH 2/2] boot/uboot: Add python pyelftools library as uboot dependency Shyam Saini
  2019-04-20 20:23 ` [Buildroot] [PATCH 1/2] package/python-pyelftools: Add host variant Thomas Petazzoni
  0 siblings, 2 replies; 3+ messages in thread
From: Shyam Saini @ 2019-04-18 13:23 UTC (permalink / raw)
  To: buildroot

This would be used by uboot for rockchip rk3399
socs boards.

Signed-off-by: Shyam Saini <shyam.saini@amarulasolutions.com>
---
 package/python-pyelftools/python-pyelftools.mk | 1 +
 1 file changed, 1 insertion(+)

diff --git a/package/python-pyelftools/python-pyelftools.mk b/package/python-pyelftools/python-pyelftools.mk
index 5b5b488cf0..92dafbe27f 100644
--- a/package/python-pyelftools/python-pyelftools.mk
+++ b/package/python-pyelftools/python-pyelftools.mk
@@ -12,3 +12,4 @@ PYTHON_PYELFTOOLS_LICENSE_FILES = LICENSE
 PYTHON_PYELFTOOLS_SETUP_TYPE = distutils
 
 $(eval $(python-package))
+$(eval $(host-python-package))
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [Buildroot] [PATCH 2/2] boot/uboot: Add python pyelftools library as uboot dependency
  2019-04-18 13:23 [Buildroot] [PATCH 1/2] package/python-pyelftools: Add host variant Shyam Saini
@ 2019-04-18 13:23 ` Shyam Saini
  2019-04-20 20:23 ` [Buildroot] [PATCH 1/2] package/python-pyelftools: Add host variant Thomas Petazzoni
  1 sibling, 0 replies; 3+ messages in thread
From: Shyam Saini @ 2019-04-18 13:23 UTC (permalink / raw)
  To: buildroot

Rockchip rk3399 SOC based boards require python pyelftools library for
parsing dtb files, so lets add it as uboot dependency.

This commit introduces new a variable BR2_TARGET_UBOOT_NEEDS_PYELFTOOLS
to achieve this.

Signed-off-by: Shyam Saini <shyam.saini@amarulasolutions.com>
---
 boot/uboot/Config.in | 8 ++++++++
 boot/uboot/uboot.mk  | 4 ++++
 2 files changed, 12 insertions(+)

diff --git a/boot/uboot/Config.in b/boot/uboot/Config.in
index d4a93615ee..33b7e67ff7 100644
--- a/boot/uboot/Config.in
+++ b/boot/uboot/Config.in
@@ -151,6 +151,14 @@ config BR2_TARGET_UBOOT_NEEDS_PYLIBFDT
 	  Select this option if your U-Boot board configuration
 	  requires the Python libfdt library to be available.
 
+config BR2_TARGET_UBOOT_NEEDS_PYELFTOOLS
+	bool "U-Boot needs pyelftools"
+	help
+	  Select this option if your U-Boot board configuration
+	  requires the Python pyelftools library to be available.
+	  This is used by some rockchip SOCs for elf parsing.
+	  For example: rk3399 soc boards.
+
 config BR2_TARGET_UBOOT_NEEDS_OPENSSL
 	bool "U-Boot needs OpenSSL"
 	help
diff --git a/boot/uboot/uboot.mk b/boot/uboot/uboot.mk
index 3c070b41b3..ae09c37d84 100644
--- a/boot/uboot/uboot.mk
+++ b/boot/uboot/uboot.mk
@@ -152,6 +152,10 @@ ifeq ($(BR2_TARGET_UBOOT_NEEDS_PYLIBFDT),y)
 UBOOT_DEPENDENCIES += host-python host-swig
 endif
 
+ifeq ($(BR2_TARGET_UBOOT_NEEDS_PYELFTOOLS),y)
+UBOOT_DEPENDENCIES += host-python-pyelftools
+endif
+
 ifeq ($(BR2_TARGET_UBOOT_NEEDS_OPENSSL),y)
 UBOOT_DEPENDENCIES += host-openssl
 endif
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [Buildroot] [PATCH 1/2] package/python-pyelftools: Add host variant
  2019-04-18 13:23 [Buildroot] [PATCH 1/2] package/python-pyelftools: Add host variant Shyam Saini
  2019-04-18 13:23 ` [Buildroot] [PATCH 2/2] boot/uboot: Add python pyelftools library as uboot dependency Shyam Saini
@ 2019-04-20 20:23 ` Thomas Petazzoni
  1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni @ 2019-04-20 20:23 UTC (permalink / raw)
  To: buildroot

On Thu, 18 Apr 2019 18:53:30 +0530
Shyam Saini <shyam.saini@amarulasolutions.com> wrote:

> This would be used by uboot for rockchip rk3399
> socs boards.
> 
> Signed-off-by: Shyam Saini <shyam.saini@amarulasolutions.com>
> ---
>  package/python-pyelftools/python-pyelftools.mk | 1 +
>  1 file changed, 1 insertion(+)

Series applied to master. Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-04-20 20:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-18 13:23 [Buildroot] [PATCH 1/2] package/python-pyelftools: Add host variant Shyam Saini
2019-04-18 13:23 ` [Buildroot] [PATCH 2/2] boot/uboot: Add python pyelftools library as uboot dependency Shyam Saini
2019-04-20 20:23 ` [Buildroot] [PATCH 1/2] package/python-pyelftools: Add host variant Thomas Petazzoni

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.