public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@siemens.com>
To: vijai kumar <vijaikumar.kanagarajan@gmail.com>
Cc: Vijai Kumar K <Vijaikumar_Kanagarajan@mentor.com>,
	isar-users <isar-users@googlegroups.com>
Subject: Re: [PATCH v3 2/2] u-boot: Move libssl-dev dependency to u-boot-custom
Date: Mon, 22 Nov 2021 07:20:51 +0100	[thread overview]
Message-ID: <af657b5f-20da-f7f0-6553-9553fbdce361@siemens.com> (raw)
In-Reply-To: <CALLGG_J01u-0yn0AEPzQstvhyCZXiXoW=YebU19zVX9tobhD8w@mail.gmail.com>

On 19.11.21 17:54, vijai kumar wrote:
> On Tue, Nov 9, 2021 at 11:31 AM Jan Kiszka <jan.kiszka@siemens.com> wrote:
>>
>> On 06.11.21 13:12, Vijai Kumar K wrote:
>>> Move the libssl-dependency to u-boot-custom.inc.
>>>
>>> Signed-off-by: Vijai Kumar K <Vijaikumar_Kanagarajan@mentor.com>
>>> ---
>>>  meta-isar/recipes-bsp/u-boot/u-boot-2021.10.inc | 3 ---
>>>  meta/recipes-bsp/u-boot/u-boot-custom.inc       | 4 +++-
>>>  2 files changed, 3 insertions(+), 4 deletions(-)
>>>
>>> diff --git a/meta-isar/recipes-bsp/u-boot/u-boot-2021.10.inc b/meta-isar/recipes-bsp/u-boot/u-boot-2021.10.inc
>>> index 158c297..f3f822a 100644
>>> --- a/meta-isar/recipes-bsp/u-boot/u-boot-2021.10.inc
>>> +++ b/meta-isar/recipes-bsp/u-boot/u-boot-2021.10.inc
>>> @@ -5,9 +5,6 @@
>>>
>>>  require recipes-bsp/u-boot/u-boot-custom.inc
>>>
>>> -DEBIAN_BUILD_DEPENDS += ", libssl-dev:native"
>>> -DEBIAN_BUILD_DEPENDS += "${@', libssl-dev' if d.getVar('ISAR_CROSS_COMPILE') == '1' else ''}"
>>> -
>>>  SRC_URI += " \
>>>      https://ftp.denx.de/pub/u-boot/u-boot-${PV}.tar.bz2 \
>>>      "
>>> diff --git a/meta/recipes-bsp/u-boot/u-boot-custom.inc b/meta/recipes-bsp/u-boot/u-boot-custom.inc
>>> index 9984d8c..57d4f36 100644
>>> --- a/meta/recipes-bsp/u-boot/u-boot-custom.inc
>>> +++ b/meta/recipes-bsp/u-boot/u-boot-custom.inc
>>> @@ -24,7 +24,9 @@ python() {
>>>          d.setVar('DEBIAN_BUILD_DEPENDS', d.getVar('BUILD_DEPENDS'))
>>>  }
>>>
>>> -DEBIAN_BUILD_DEPENDS ?= "bc, bison, flex, device-tree-compiler, git"
>>> +DEBIAN_BUILD_DEPENDS ?= "bc, bison, flex, device-tree-compiler, git, libssl-dev:native"
>>> +DEBIAN_BUILD_DEPENDS += "${@', libssl-dev' if d.getVar('ISAR_CROSS_COMPILE') == '1' else ''}"
>>> +
>>
>> It would feel more logical to me to put the :native part under the
>> cross-compile condition. The outcome will be the same, but :native is a
>> redundant statement in the native build case.
> 
> Hi Jan,
> 
> Sorry I thought I had replied to this. But it looks like not.
> 
> From my testing,
> 1. libssl-dev:native is needed to build the u-boot image(bin).
> 2. libssl-dev of host(Debian) is needed only when we cross compile u-boot-tools.
> 
> Even though the :native looks redundant, from the perspective of
> u-boot, it makes sense.
> Also, we now make it depend on cross-compile because tools are always built.
> 
> If you see my patches on u-boot refactor[1], the libssl-dev inclusion
> will only take place in case we cross
> compile tools. (ISAR_CROSS_COMPILE == 1 && U_BOOT_TOOLS_PACKAGE = 1)
> 
> [1]: https://groups.google.com/g/isar-users/c/RvvuZ5BRI0U/m/-m8u_mZMAQAJ
> 

Well, thinking about this again, the best way would be to only make this
dependent on whether we are building tools or not. The cross-compile
dependency is just unneeded, will not save any installation in practice
because non-cross means libssl-dev:native == libssl-dev.

Jan

-- 
Siemens AG, T RDA IOT
Corporate Competence Center Embedded Linux

  reply	other threads:[~2021-11-22  6:20 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-03 10:49 [PATCH] meta-isar: u-boot: Update to 2021.10 Vijai Kumar K
2021-11-03 11:01 ` Jan Kiszka
2021-11-05  5:55   ` Kanagarajan, Vijaikumar
2021-11-03 18:25 ` Henning Schild
2021-11-05  6:05   ` Kanagarajan, Vijaikumar
2021-11-05  6:15 ` [PATCH v2 1/2] " Vijai Kumar K
2021-11-05  6:15   ` [PATCH v2 2/2] u-boot: Move libssl-dev dependency to u-boot-custom Vijai Kumar K
2021-11-05  6:28     ` Jan Kiszka
2021-11-05  7:40       ` vijai kumar
2021-11-05 12:16         ` vijai kumar
2021-11-06 12:12     ` [PATCH v3 1/2] meta-isar: u-boot: Update to 2021.10 Vijai Kumar K
2021-11-06 12:12       ` [PATCH v3 2/2] u-boot: Move libssl-dev dependency to u-boot-custom Vijai Kumar K
2021-11-09  6:01         ` Jan Kiszka
2021-11-19 16:54           ` vijai kumar
2021-11-22  6:20             ` Jan Kiszka [this message]
2021-11-22  6:37               ` vijai kumar
2021-11-09  6:06       ` [PATCH v3 1/2] meta-isar: u-boot: Update to 2021.10 Jan Kiszka
2021-11-19 17:54       ` vijaikumar....@gmail.com

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=af657b5f-20da-f7f0-6553-9553fbdce361@siemens.com \
    --to=jan.kiszka@siemens.com \
    --cc=Vijaikumar_Kanagarajan@mentor.com \
    --cc=isar-users@googlegroups.com \
    --cc=vijaikumar.kanagarajan@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox