From 002422cec20f16166643247d8fa25e1afa0f962a Mon Sep 17 00:00:00 2001
From: Philippe Coval <philippe.coval.ext@huawei.com>
Date: Wed, 6 Jul 2022 10:56:48 +0200
Subject: [PATCH] r-b/u-boot: Add bc as dep

Observed issue was:

   /bin/sh: 1: bc: not found
   bc: not found

By the way the build script should stop on issue like this.

Relate-to: https://gitlab.eclipse.org/eclipse/oniro-core/oniro/-/issues/542#note_876941
Relate-to: https://gitlab.eclipse.org/pcoval/meta-oniro-blueprint-flutter/-/issues/4
Origin: https://gitlab.eclipse.org/pcoval/meta-seco-rockchip
Signed-off-by: Philippe Coval <philippe.coval.ext@huawei.com>
---
 recipes-bsp/u-boot/u-boot-seco_2017.09.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/recipes-bsp/u-boot/u-boot-seco_2017.09.bb b/recipes-bsp/u-boot/u-boot-seco_2017.09.bb
index 633762a..ad882b4 100644
--- a/recipes-bsp/u-boot/u-boot-seco_2017.09.bb
+++ b/recipes-bsp/u-boot/u-boot-seco_2017.09.bb
@@ -32,7 +32,7 @@ SRCREV_FORMAT = "default_rkbin"
 DEPENDS:append = " ${PYTHON_PN}-native"
 
 # Needed for packing BSP u-boot
-DEPENDS:append = " coreutils-native ${PYTHON_PN}-pyelftools-native"
+DEPENDS:append = " bc-native coreutils-native ${PYTHON_PN}-pyelftools-native"
 
 do_configure:prepend() {
 	# Make sure we use /usr/bin/env ${PYTHON_PN} for scripts
-- 
GitLab