From patchwork Mon Nov 15 23:51:19 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vijai Kumar K X-Patchwork-Id: 1037 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3) with LMTPA; Tue, 16 Nov 2021 10:51:57 +0100 X-Sieve: CMU Sieve 2.4 Received: from mail-lf1-f64.google.com (mail-lf1-f64.google.com [209.85.167.64]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8) with ESMTPS id 1AG9puQO006121 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 16 Nov 2021 10:51:57 +0100 Received: by mail-lf1-f64.google.com with SMTP id g38-20020a0565123ba600b004036147023bsf7998959lfv.10 for ; Tue, 16 Nov 2021 01:51:57 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1637056311; cv=pass; d=google.com; s=arc-20160816; b=GfbSU9utk3xNuTg2duwLFk28mReLA0zSY4MzK8GZsyFnVcODMB3/rRhlj0Eub+aykF D4aXNE2RPAQRub7nxqm+qmE+sK3+FhcUyj4dOFwXIDrmEVbi5DeBxFB/+3d6GfSVnJvA bhuBICuaryVe2dYKZWU6hvvZTQfgRK1UVxG9ExMxzbNsC4lcl9Vgwp0XdQO1T88uNccv MWQ+k7h+Ixc4qLPVRlmm7Hd5PeNd4ddWApmwxOb7hA5dIxAs7/vpZf3LvO56/e14g74V Av/5SQGgvPTc9H2Zycgy6ewylIXSAzzZCD55x4plFaskfPupuzsBcJc5g8ib/6f1OTy0 IsNw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:ironport-sdr:ironport-sdr:sender :dkim-signature; bh=/TbRDmc9W7B6+OXmxvxDSaH/QWzWSmFv/UneKkacySc=; b=TeX9acYaLehtYU0Z4UpAt1/PVDmKdtL5co4taXuuo3OgHiPVO7CUk+neCPC9EtN42a uqZFQ3ZQWOhZHVtpMdT3lHIRtgOo8rkTky5qYFQJg2UFWE5CDDrn0ZdR/FCeFE4rrqyB mNZOo90NIs1MZELTT+t9q7a+hHC78e6fMsKAOH8GmR1BblBkJGgxZXy7iwsTwrP953or 4mbPuQXhOOze3/rboaXLpd9bAd7fJXBk8r1YjXhH9cAJEuAZpRn7IG97OG8V3P8CyvQb wkOJShYJQRuuFA6zsfXCa3ALtuqsgXPg5Qz36ULBOQriv6jmC1SJVwmHNdFFD7ka1AZf ptKw== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of vijaikumar_kanagarajan@mentor.com designates 68.232.137.252 as permitted sender) smtp.mailfrom=Vijaikumar_Kanagarajan@mentor.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:ironport-sdr:ironport-sdr:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=/TbRDmc9W7B6+OXmxvxDSaH/QWzWSmFv/UneKkacySc=; b=NrbH7IlsQZZVmDpu5Zhu+qUSdvOlZkJA97UWudf/q6WoPas0pXubOjpj4lJGIFuFbN FiOS5E2kZjhubCyhCkVN8hh4P7NYPj8CsnBHaOKu5RdK1sU7+O5tuAQGPqJ9qWKjfn9w JWp09NjoDPgimY3TqOcIlXYROqLIixxRl5iDfiK3SRK7nmLI53ALoVl5yuz39CpPVkUN GeqNWh0B3igWHF+o76Cmr1YRwZCKwBStihrJT+PmxAxF1MMSUiyNH6U5YMbISjMPglZ3 IfkjNhG0lvD33cKUkisAKX3Nqdw02zo9E8ZrzUaojenSF3YpVS4MG76hTqBZLCy8dBnp unQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender:x-gm-message-state:ironport-sdr:ironport-sdr:from:to:cc :subject:date:message-id:in-reply-to:references:mime-version :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:x-spam-checked-in-group:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=/TbRDmc9W7B6+OXmxvxDSaH/QWzWSmFv/UneKkacySc=; b=ujKLNAYwPJnZ49J03JkXxdhSdLCQBLxo0IwRUfuhWyb+2ySrXDAXItCrlD2HQX3WHT i5SmuNw+XMf2i+ku4nyoPgABfD0eIuZLxaGJ7A2k8/0TyNVU8K4Ckn78vJ5BvpIzYRBi fO2Oyr9tLz7/dLLj5ATpHDQoeVJs6lUAIEsMkQivlvxN4D7xuT1r4M6/5tLt9KsfPiHC +GAVhrHjjh8D2P+f1fmFSElw2Ce5g3ikSAg3BDo9BW2iABM26s8zTu0f07acqNOvO5sx D11YD/sGAbMaggXjmqkXM2o1JRJ2IDyVS0JJ+NKzvp3oiRr5rL6PNqptpWnKVOw0sdDV ycPQ== Sender: isar-users@googlegroups.com X-Gm-Message-State: AOAM533Nx9PbtLQZdn/2p2gxFn1sAn38yIpeffxTtj8SHE3CNPrqJ2bD 1OCqDeuuOcqNEEVSSNHBAnE= X-Google-Smtp-Source: ABdhPJywoAhaepwWamzrsMCbdbE2e3l/yk2lpugojQDCs5ZauIu0tnZ2XzqMgZhzwSQfN2NRxitLKQ== X-Received: by 2002:a05:6512:104b:: with SMTP id c11mr5596838lfb.115.1637056311529; Tue, 16 Nov 2021 01:51:51 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:6512:2610:: with SMTP id bt16ls1555949lfb.2.gmail; Tue, 16 Nov 2021 01:51:50 -0800 (PST) X-Received: by 2002:ac2:51b0:: with SMTP id f16mr5517788lfk.20.1637056310337; Tue, 16 Nov 2021 01:51:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1637056310; cv=none; d=google.com; s=arc-20160816; b=uoNoPxHtjNoo7wg+QVxA0GfmKJFU535RcwxgtHkbvPVv3PKgAFjRA/nf108J6wnJ0E v+LM7Vkfs4vmT8Be+9jf1sEhcX2USHmZiC2RfnAut8HXdN3YCBFNp7MFwWUp/W8LWMny Lr7xZHsIRHy7OJNyIdRqSHnE1sFs6XVplpkq0vFffZuLbDEa/WArfzAHI78hDjcglVfF Lrq+XB0pXse4gPi4W1OM2dHnSH4osJE2dngG8gTyRBGb3lMSSB7tOsFuUBK6o4zOt0Jv wQT4pQo7FS0Qnl3xnxMfvY4tWSKsMwP5LQz4T/WynBpGZ8492ZvRYHK3uGqpCyzTF7E3 HM2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:ironport-sdr:ironport-sdr; bh=EVTPxZM5FLk1ct1oKTKCaOJAm0MuuDhPZwHb7m0xcPs=; b=IWtXB8zHwtYZ4azP1RY1u3hNMi0EET9FMxCDAN/2kKQaPjNglbmxGWHJsj8hOuwLaE VfmZHGlw2ljPMEoT2hRsishXqJPyTGZzMeu5G3ex1Ai7s8qgfQAn9oXSbpKcmpma6AVW GnqQonh1yiAGkVatt+7lukkvS/nJ2YDXL8gZHho0AGXvIpu1FfHHRGHtpCI8w6RI/xyl 0On7F7jISGOWMHtv8Gq/VMKvrhUP3/pwFKfp/Tbz8G2JoDPfATjcjeMNaYayel9iBOMt 7s2TYv8un9b7OzZ7UInHPafiq4D9Yki6oPBjOTSLC6ROIr4UKrjg/JBoc+EXwUwRaAEK WBrw== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of vijaikumar_kanagarajan@mentor.com designates 68.232.137.252 as permitted sender) smtp.mailfrom=Vijaikumar_Kanagarajan@mentor.com Received: from esa4.mentor.iphmx.com (esa4.mentor.iphmx.com. [68.232.137.252]) by gmr-mx.google.com with ESMTPS id c15si1222479lfv.8.2021.11.16.01.51.49 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 16 Nov 2021 01:51:50 -0800 (PST) Received-SPF: pass (google.com: domain of vijaikumar_kanagarajan@mentor.com designates 68.232.137.252 as permitted sender) client-ip=68.232.137.252; IronPort-SDR: kcz2zRsYPOjv2ZrZJwOWJpLCHrKkBRVcbdwfsn0qej83eahsDsVjaxN5M3y7zuZOz5E3Fs4h+Y aKqzaPPEv2kYvTXz74KrRkCqXHa4Md1vEPGo8kGFn8ssHPgFE0hWmoeaOWe20h5+P/YZ6OkJYE BZR9M6OrL2h+YzKY4Ob+PtCs+uCXh5XjALwyTLIf+lTK2UDngPz2raxpD+/qM4r5BMng+g+sk/ CJXRuqThFJpaflvfnKR2XGACPMzXPfFxMF1UlXpgwQXiXcQzCrjY4nK0M5iWwEV0lCAAmDspuB oQuKwMnawx2bp9IZR0cOe0YZ X-IronPort-AV: E=Sophos;i="5.87,238,1631606400"; d="scan'208";a="68544455" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa4.mentor.iphmx.com with ESMTP; 16 Nov 2021 01:51:49 -0800 IronPort-SDR: 9QRXWJJoXSb1yBBHgiM25GjXLszmYevQyOHIOls0WxTHblaav+31fFq18fNjE5Cqc1o/Gw6OIr +MRW+BzHFdwpQYshbCvX1h0lMrYJnx42y/gU0+8OPnl8M1xppDhYWAfSsqiZArbj6zQsVqOtRJ biNEkQehpl4/2CHETxqUTdOFjBA6ZLOWfgY+qV0u3td1quJhFr4eH9VJMiHLY3Sag4N48MqcU0 pL1YRUV/fy0NeMaYyJ9Gea7A5JzZgBTWneYxLAkgsVoiOJ923EsBXp+vvE5s4EQO4jFudEodbA vsQ= From: Vijai Kumar K To: CC: Vijai Kumar K Subject: [PATCH v2 1/2] u-boot: Switch to use DEB_BUILD_PROFILES Date: Tue, 16 Nov 2021 15:21:19 +0530 Message-ID: <20211116095120.769193-2-Vijaikumar_Kanagarajan@mentor.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211116095120.769193-1-Vijaikumar_Kanagarajan@mentor.com> References: <20211115160642.765371-1-Vijaikumar_Kanagarajan@mentor.com> <20211116095120.769193-1-Vijaikumar_Kanagarajan@mentor.com> MIME-Version: 1.0 X-ClientProxiedBy: svr-orw-mbx-13.mgc.mentorg.com (147.34.90.213) To svr-orw-mbx-01.mgc.mentorg.com (147.34.90.201) X-Original-Sender: vijaikumar_kanagarajan@mentor.com X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of vijaikumar_kanagarajan@mentor.com designates 68.232.137.252 as permitted sender) smtp.mailfrom=Vijaikumar_Kanagarajan@mentor.com Precedence: list Mailing-list: list isar-users@googlegroups.com; contact isar-users+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: isar-users@googlegroups.com X-Google-Group-Id: 914930254986 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_MED, DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on shymkent.ilbers.de X-getmail-retrieved-from-mailbox: INBOX Use DEB_BUILD_PROFILES to select packages to build. This patch drops the U_BOOT_TOOLS_PACKAGE variable and introduces U_BOOT_BUILD_PROFILES through which we can enable particular packages like u-boot-tools and u-boot-dev. Signed-off-by: Vijai Kumar K --- .../u-boot/u-boot-de0-nano-soc_2021.10.bb | 2 +- .../u-boot/files/debian/control.tmpl | 13 +++++++ meta/recipes-bsp/u-boot/files/debian/rules | 9 ++++- meta/recipes-bsp/u-boot/u-boot-custom.inc | 38 +++++++------------ 4 files changed, 35 insertions(+), 27 deletions(-) diff --git a/meta-isar/recipes-bsp/u-boot/u-boot-de0-nano-soc_2021.10.bb b/meta-isar/recipes-bsp/u-boot/u-boot-de0-nano-soc_2021.10.bb index dcb76c5..640b7ea 100644 --- a/meta-isar/recipes-bsp/u-boot/u-boot-de0-nano-soc_2021.10.bb +++ b/meta-isar/recipes-bsp/u-boot/u-boot-de0-nano-soc_2021.10.bb @@ -6,4 +6,4 @@ require u-boot-${PV}.inc # Just for testing purposes, distro package would be recent enough -U_BOOT_TOOLS_PACKAGE = "1" +U_BOOT_BUILD_PROFILES += "tools" diff --git a/meta/recipes-bsp/u-boot/files/debian/control.tmpl b/meta/recipes-bsp/u-boot/files/debian/control.tmpl index 9379be7..7ac11ad 100644 --- a/meta/recipes-bsp/u-boot/files/debian/control.tmpl +++ b/meta/recipes-bsp/u-boot/files/debian/control.tmpl @@ -11,4 +11,17 @@ Description: ${DESCRIPTION}, bootloader binaries Package: u-boot-${MACHINE}-dev Architecture: ${DISTRO_ARCH} +Build-Profiles: Description: ${DESCRIPTION}, bootloader libraries + +Package: u-boot-tools +Architecture: linux-any +Build-Profiles: +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: ${DESCRIPTION}, companion tools + +Package: u-boot-${MACHINE}-config +Build-Profiles: +Provides: u-boot-config +Architecture: ${DISTRO_ARCH} +Description: ${DESCRIPTION}, environment configuration diff --git a/meta/recipes-bsp/u-boot/files/debian/rules b/meta/recipes-bsp/u-boot/files/debian/rules index 3d66762..121b00e 100755 --- a/meta/recipes-bsp/u-boot/files/debian/rules +++ b/meta/recipes-bsp/u-boot/files/debian/rules @@ -20,10 +20,17 @@ override_dh_auto_build: else \ ./scripts/get_default_envs.sh >u-boot-initial-env; \ fi - $(MAKE) $(PARALLEL_MAKE) $(SET_CROSS_BUILD_TOOLS) NO_SDL=1 tools-only envtools +ifneq (,$(filter dev,$(DEB_BUILD_PROFILES))) + $(MAKE) $(PARALLEL_MAKE) $(SET_CROSS_BUILD_TOOLS) NO_SDL=1 envtools +endif +ifneq (,$(filter tools,$(DEB_BUILD_PROFILES))) + $(MAKE) $(PARALLEL_MAKE) $(SET_CROSS_BUILD_TOOLS) NO_SDL=1 tools-only +endif override_dh_auto_install: +ifneq (,$(filter dev,$(DEB_BUILD_PROFILES))) mv tools/env/lib.a tools/env/libubootenv.a +endif override_dh_auto_test: diff --git a/meta/recipes-bsp/u-boot/u-boot-custom.inc b/meta/recipes-bsp/u-boot/u-boot-custom.inc index 57d4f36..60dc1c9 100644 --- a/meta/recipes-bsp/u-boot/u-boot-custom.inc +++ b/meta/recipes-bsp/u-boot/u-boot-custom.inc @@ -9,10 +9,13 @@ FILESEXTRAPATHS_prepend := "${FILE_DIRNAME}/files:" DESCRIPTION ?= "Custom U-Boot" -PROVIDES += "u-boot-${MACHINE} u-boot-${MACHINE}-dev" -PROVIDES += "${@'u-boot-tools' if d.getVar('U_BOOT_TOOLS_PACKAGE') == '1' else ''}" +PROVIDES += "u-boot-${MACHINE}" +PROVIDES += "${@'u-boot-tools' \ + if bb.utils.contains('U_BOOT_BUILD_PROFILES', 'tools', 1, 0, d) else ''}" PROVIDES += "${@('u-boot-config u-boot-' + d.getVar('MACHINE') + '-config') \ - if d.getVar('U_BOOT_CONFIG_PACKAGE') == '1' else ''}" + if bb.utils.contains('U_BOOT_BUILD_PROFILES', 'config', 1, 0, d) else ''}" +PROVIDES += "${@('u-boot-' + d.getVar('MACHINE') + '-dev') \ + if bb.utils.contains('U_BOOT_BUILD_PROFILES', 'dev', 1, 0, d) else ''}" inherit dpkg @@ -31,8 +34,8 @@ DEBIAN_BUILD_DEPENDS += "${@', libssl-dev' if d.getVar('ISAR_CROSS_COMPILE') == TEMPLATE_FILES = "debian/control.tmpl" TEMPLATE_VARS += "MACHINE DEBIAN_BUILD_DEPENDS" -U_BOOT_TOOLS_PACKAGE ?= "0" -U_BOOT_CONFIG_PACKAGE ?= "0" + +U_BOOT_BUILD_PROFILES ?= "dev" do_prepare_build() { cp -r ${WORKDIR}/debian ${S}/ @@ -42,31 +45,15 @@ do_prepare_build() { echo "${U_BOOT_BIN} /usr/lib/u-boot/${MACHINE}" > \ ${S}/debian/u-boot-${MACHINE}.install - echo "tools/env/libubootenv.a usr/lib" > \ - ${S}/debian/u-boot-${MACHINE}-dev.install - - if [ "${U_BOOT_TOOLS_PACKAGE}" = "1" ]; then - cat <>${S}/debian/control - -Package: u-boot-tools -Architecture: linux-any -Depends: \${shlibs:Depends}, \${misc:Depends} -Description: ${DESCRIPTION}, companion tools -EOF + if [ "${@bb.utils.contains('U_BOOT_BUILD_PROFILES', 'dev', 'yes', 'no', d)}" = "yes" ];then + echo "tools/env/libubootenv.a usr/lib" > \ + ${S}/debian/u-boot-${MACHINE}-dev.install fi - if [ "${U_BOOT_CONFIG_PACKAGE}" = "1" ]; then + if [ "${@bb.utils.contains('U_BOOT_BUILD_PROFILES', 'config', 'yes', 'no', d)}" = "yes" ];then cp ${WORKDIR}/fw_env.config ${S}/ || \ die "U_BOOT_CONFIG_PACKAGE requires a fw_env.config in SRC_URI" - cat <>${S}/debian/control - -Package: u-boot-${MACHINE}-config -Provides: u-boot-config -Architecture: ${DISTRO_ARCH} -Description: ${DESCRIPTION}, environment configuration -EOF - cat <>${S}/debian/u-boot-${MACHINE}-config.install u-boot-initial-env /etc fw_env.config /etc @@ -77,4 +64,5 @@ EOF dpkg_runbuild_prepend() { export U_BOOT_CONFIG="${U_BOOT_CONFIG}" export U_BOOT_BIN="${U_BOOT_BIN}" + export DEB_BUILD_PROFILES="${U_BOOT_BUILD_PROFILES}" } From patchwork Mon Nov 15 23:51:20 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vijai Kumar K X-Patchwork-Id: 1038 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3) with LMTPA; Tue, 16 Nov 2021 10:52:02 +0100 X-Sieve: CMU Sieve 2.4 Received: from mail-lf1-f60.google.com (mail-lf1-f60.google.com [209.85.167.60]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8) with ESMTPS id 1AG9q1Gw006138 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 16 Nov 2021 10:52:02 +0100 Received: by mail-lf1-f60.google.com with SMTP id x7-20020a056512130700b003fd1a7424a8sf7931966lfu.5 for ; Tue, 16 Nov 2021 01:52:02 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1637056315; cv=pass; d=google.com; s=arc-20160816; b=0e6LHl4cbXCvJx4jFYWhStVVsKmBIqigyXbEk/jkGPuyAZB0JJBaS8wXfIqprbHO/l L1TUP4yX7rFVwbKccJK1Wa+IY4rj6vBgguM3uaGUn2dI3Ibh0w3CbaCcqY3+U+DREodR sZwuNdSRuxjjidkvH2jrkyvGdIWSTo9gBkHhHJf6EDtZrLfyFvhGu56AgI+slplOwxnm ptuhCbzVy68DpCJ2vwO9dBC/X8klEnjmP5W7zGNQiJiEaXp/8GWUTQaTfLCEDO9nQX9l MR1eCVMUqmIerNcVJs1OIHLNnz0hOlNcwTficJ32bW/FpPAv5Mh/bciHgwdC6YdGi+fM dBxg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:ironport-sdr:ironport-sdr:sender :dkim-signature; bh=NLgu+I4YUaYsnN95y5UKbivTApph220bZNHeSl46z9M=; b=a4jTqepujnYcDttTsZ9et+6W7DXAVRldZ6aIOB+PH1YG4yco0jdsyzSEROolhZ7n5i uIx+GhVUJLn7ut1E9RH4ZQAPnFryPquiJDnALoS9mCI/YihfjYOpOmyVpSN5MqrMzMEe YbzRf0qGP6NYWLY3Z6FGYPXiXVxGizwV3puULXtRtB88g3oKEZqZ9mgl+4NyO9+43myY Gg4ej9uRL9VI9hXi3uWpgF9ahSH2IzlcZWX1mdJTBc6hXrfctMRmNcOjqgBTGKi/bl+s OOTQlwP9c15NBO45MoE32mvkD0sWOV33SW4QWmpbyBXWgNRpL66hZvuxHvzWgOiUdbmO PfIA== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of vijaikumar_kanagarajan@mentor.com designates 68.232.137.252 as permitted sender) smtp.mailfrom=Vijaikumar_Kanagarajan@mentor.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:ironport-sdr:ironport-sdr:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=NLgu+I4YUaYsnN95y5UKbivTApph220bZNHeSl46z9M=; b=AvSZOr0UPJ8zPQ+c4hozAzi5pZr+EbmszAoYDjg/NJTyf7VM4GZ0LkfuM1fabErTIg tHonobk7OA0YyN+UuIYzeHFstnoBuZ0rQanjTedLhOq6saytYNkQGEv2tyEN6aGPqMNY T+70CiL6e8TXtwarnIpJViBk6KWJjD1aQB9Wa+gVIUHx7xq8efz4Qb9kq5aZXSP/dE9s M7A3qwHSJBr3Gq01UPG1sdM2AdfGSlpzIpVWMV3fbu74m8f3KQ50RM1wLwFI+1ZXQoOK NCwnUwmGHSGM6raQ5+uCulNzNmqliHA1O0zwfuyWEmmAgac209SEIZ8gFFwZGabKn3po iklw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender:x-gm-message-state:ironport-sdr:ironport-sdr:from:to:cc :subject:date:message-id:in-reply-to:references:mime-version :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:x-spam-checked-in-group:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=NLgu+I4YUaYsnN95y5UKbivTApph220bZNHeSl46z9M=; b=0L6ZCT1GWH+OLqaCVqqdZ5uAvOpJ3SyyVlmY/+6m60whyCXX6vfkqM2ujJ17Agxhzs HKlgITZBSsfPrWqW6rsBFsaOyRXIiFk19PPwFoU4NO1MapKZt3Cki1AuOCPjCisiVFpO NSP1bmUps6+8JT46a5fdmV4DB/h9tq/XT1DeCiMqfdsAPJheaFmZk+x1vhMCn52WkMaQ Z/XLXqeiUS/CIDC6T96Yx0YPdPoj9xLYPMDGAPmCSqk7kEnp8kdcVyfvWWf5ZGNUsmmC akh6Tu7PPdcOd5ul4oiii9EqvHFyo8oretpA0qtbP6bk4cwlqC4vBpr6pesXW6/EL/tc v6SQ== Sender: isar-users@googlegroups.com X-Gm-Message-State: AOAM532Z74gmX1cAYyya0qp7lOgzg6TTRiL5KOFYEiupZgqW/6hHZWa+ N7kH7G/3hkjJySZzpEhlqwY= X-Google-Smtp-Source: ABdhPJxc/TN6C5FGseKcLIZCCLwZOKboQjEJ/vAIQJdCK70u8YBuunB2F6rPOQPaFq0+3H97newThA== X-Received: by 2002:a2e:9510:: with SMTP id f16mr5799182ljh.409.1637056314320; Tue, 16 Nov 2021 01:51:54 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:651c:178b:: with SMTP id bn11ls2705400ljb.7.gmail; Tue, 16 Nov 2021 01:51:53 -0800 (PST) X-Received: by 2002:a2e:9953:: with SMTP id r19mr5580751ljj.442.1637056313253; Tue, 16 Nov 2021 01:51:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1637056313; cv=none; d=google.com; s=arc-20160816; b=CRGiO+ReACc+460WvD/RbZD2YY6YDLyu8wtsSVvxVa6NmdRHgMPI1niy47zzPdOElJ YYs2H6BeaH+3mQ1B97Hs9JlNk0pszjNvrb29S/7A4s3qUX0vpfmHqWi55bs4w9tBCjAv HcSZJsgrlJ8ZqYw/WFBNw+aZ5yCYVmC6choJaQI99GE2kdxV2DGw6pmCsZrVoHgulArA LCRaeHqGyRY9xx3WDo9Sf1+HHAGgp+Vt+1HSUG9AvROeN+Q9xWeO1V0AhkcOnQB6xtGq M6S3P0pF9rUKxmxrBhle6yYUuTCTh8uUgXuMRr5C+V7XhdcvvUoK9Dk05XXf7TY2EP+p RG2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:ironport-sdr:ironport-sdr; bh=u15xT+7qKXSAF4BtS05ffzpXIyoutOKnn3eSWOD/wmM=; b=N5IiWsguKAJW5EK5qSbZ3UNHQ0eWpiuxms8+c9PmjjglUJggmL67TJpt98hKdFlgw7 Gj7acUhKSHtPVGVsdoO9wJkPkA0FYDb/vhHh6uzF9qMHk1myzBFXf1t92TjihwFiiwG+ XnzjE5RQEudEuxyO6mRK9GOxOoHZtqaocHFed/RoAnPMGsVZsQLEI0RBOPbh5jifmzMS qlkAwqzgQH9KUSqLR5hN0qhytmO+HYgfMGyqf0QLy1mMu0U+Y9wJXrsx0cwy+41CMIQP UXOfM+G6ErqaZ1yM7atpQOKzirMEcN1flMqsMIaaYYD5WQmwxgcSwU2bRTIzKd4pLMeX isMQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of vijaikumar_kanagarajan@mentor.com designates 68.232.137.252 as permitted sender) smtp.mailfrom=Vijaikumar_Kanagarajan@mentor.com Received: from esa4.mentor.iphmx.com (esa4.mentor.iphmx.com. [68.232.137.252]) by gmr-mx.google.com with ESMTPS id c15si1222479lfv.8.2021.11.16.01.51.52 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 16 Nov 2021 01:51:53 -0800 (PST) Received-SPF: pass (google.com: domain of vijaikumar_kanagarajan@mentor.com designates 68.232.137.252 as permitted sender) client-ip=68.232.137.252; IronPort-SDR: Tjp7XJJDRchqEdG06aGdreMoMZ+A7oQEnXX3FXTzAlHGIcFmDNea93VPFR1hzXMgJHkwlWw4FU r2nMn+8no+bve4Nw/XH1oVYIaXzS5nPnV+YbkILUZGGd8AQKzvDe8on8+aqknSO4HzcOu1/o+N J3enYl5D34thjysZzW9l1Q6zPSoVZvjWYn8uWtd3rJ9WHSIGjSjcNgw9xSROdTuVRR+CPIdAQV D1QfPr1dWs3V5kMK5ksMdM8YlHowunpf7uFjMLbEMoO/5yhcsH7Hc64ZoV+FL3IrWa4FEQmPcM JgI5T7xNLo4+nv/U8O7IoQ7l X-IronPort-AV: E=Sophos;i="5.87,238,1631606400"; d="scan'208";a="68544457" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa4.mentor.iphmx.com with ESMTP; 16 Nov 2021 01:51:52 -0800 IronPort-SDR: AoAGCqX2zClmEUDgmuJ9BndphW3kIIRqMiwy9nHb2jeTsfjJgjKRWzzTaxn066J49HEtzfplMk 2KjL577etRg/kUW6qnjlTZtYQma0p7o9QG8WKyShGch22oLPFLkG0VW4A3ob8+OmDkjO20rFh1 oPWCwm8y1bEY4CZSwlRL1R4+oQkQejWxzGB5nf/Bc7AoxC0qghWa85wAwpPviRERPXTf2mm0yU MAHjYIJFulLuNiRFCiAAQRlaWRe2bSF4ntuMGijz0Lu0lfJspm4w2VAh1pjhQi5UtbBU2JSpNs FQE= From: Vijai Kumar K To: CC: Vijai Kumar K Subject: [PATCH v2 2/2] meta/u-boot: Include libssl-dev only when building tools Date: Tue, 16 Nov 2021 15:21:20 +0530 Message-ID: <20211116095120.769193-3-Vijaikumar_Kanagarajan@mentor.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211116095120.769193-1-Vijaikumar_Kanagarajan@mentor.com> References: <20211115160642.765371-1-Vijaikumar_Kanagarajan@mentor.com> <20211116095120.769193-1-Vijaikumar_Kanagarajan@mentor.com> MIME-Version: 1.0 X-ClientProxiedBy: svr-orw-mbx-13.mgc.mentorg.com (147.34.90.213) To svr-orw-mbx-01.mgc.mentorg.com (147.34.90.201) X-Original-Sender: vijaikumar_kanagarajan@mentor.com X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of vijaikumar_kanagarajan@mentor.com designates 68.232.137.252 as permitted sender) smtp.mailfrom=Vijaikumar_Kanagarajan@mentor.com Precedence: list Mailing-list: list isar-users@googlegroups.com; contact isar-users+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: isar-users@googlegroups.com X-Google-Group-Id: 914930254986 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_MED, DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on shymkent.ilbers.de X-getmail-retrieved-from-mailbox: INBOX libssl-dev of the host architecture is needed only when you cross compile u-boot-tools. Signed-off-by: Vijai Kumar K --- meta/recipes-bsp/u-boot/u-boot-custom.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/meta/recipes-bsp/u-boot/u-boot-custom.inc b/meta/recipes-bsp/u-boot/u-boot-custom.inc index 60dc1c9..855d6a4 100644 --- a/meta/recipes-bsp/u-boot/u-boot-custom.inc +++ b/meta/recipes-bsp/u-boot/u-boot-custom.inc @@ -28,7 +28,8 @@ python() { } 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 ''}" +DEBIAN_BUILD_DEPENDS += "${@', libssl-dev' if (d.getVar('ISAR_CROSS_COMPILE') == '1' and \ + bb.utils.contains('U_BOOT_BUILD_PROFILES', 'tools', 1, 0, d)) else ''}" TEMPLATE_FILES = "debian/control.tmpl"