diff mbox series

[2/2] boot/uboot: Add python pyelftools library as uboot dependency

Message ID 20190418132331.14213-2-shyam.saini@amarulasolutions.com
State Accepted
Headers show
Series [1/2] package/python-pyelftools: Add host variant | expand

Commit Message

Shyam Saini April 18, 2019, 1:23 p.m. UTC
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 mbox series


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.
+	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.
 	bool "U-Boot needs OpenSSL"
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
+UBOOT_DEPENDENCIES += host-python-pyelftools
 UBOOT_DEPENDENCIES += host-openssl