From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7030828924489695232 X-Received: by 2002:a05:600c:35d2:: with SMTP id r18mr60589518wmq.166.1636992423826; Mon, 15 Nov 2021 08:07:03 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a5d:4092:: with SMTP id o18ls11063189wrp.1.gmail; Mon, 15 Nov 2021 08:07:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJxqd40FMBFnQp4aYXJmbZqOsaWpqF0OSqLhn3PXHKK7/QPZPTLN+g58I5AQiTzkKcajCT56 X-Received: by 2002:a5d:668f:: with SMTP id l15mr149644wru.182.1636992422711; Mon, 15 Nov 2021 08:07:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636992422; cv=none; d=google.com; s=arc-20160816; b=gTrmCMI5eAdh+cnTEzp8N7+vIa5A46nuyH5FuQkA5o7rYYNMyqGVxLePMW44OUXe/3 ZhmG0XheztRFcbVI0lbXrgPN8n39FUPUqfN8Ncue5l34iiqJ4q00ifZp35nO0/lH0r35 GH88efXwVoqyjmppJS7zcczTjBss/6x1M9hXdMHDypb6X6FbINvCcD5u3PjhJHaZmbMx CZek4cH3368FGZlRy6S5XOuJpanmfLAqdj/WEqwvmN5UTWEMNA12m5RtPKmfil+XcRVS nSFT2bKwoL7yS4uKOouDxrtz4pqT2P2OCDTw1ApNCzOLsI6I/GRqlRCBZQtyRy/hOGWj J4rQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:ironport-sdr:ironport-sdr; bh=zEY2BHGLCSU4qlL8mw6zm9wZBzUGcT4+2PrZCAKAT+4=; b=D/wKNfoknBwUKT9Dih0vOENG5DJcSoR8zOXGX4utAVEdjn+v0gjjmxe350jLbAt15g jyGnyIq4NvNaFYC7u+oPoBGWhZdJb1p1PBiEwUTt2LzwiUbf7k8rQDnQZaWAjHCLyLR3 g3BewSSQPyvx8Xrhb2IAhmJfkt5jCGW36vvPenBncoZyaSuuo+VEP212Tw2IiMDSc1/2 VRdkVz4vmRj9zU773X8WA/RhuVq1D41u/S5Po3dxHPqU+ZoBMZdV3vDmJ0k01d4yXljy WICKHybvVhI11dGD6MdODfupFLE84iJjHkmprakM974MSfy59zx47RRsUzIHPpDsnZ6U WlVQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of vijaikumar_kanagarajan@mentor.com designates 68.232.137.180 as permitted sender) smtp.mailfrom=Vijaikumar_Kanagarajan@mentor.com Return-Path: Received: from esa3.mentor.iphmx.com (esa3.mentor.iphmx.com. [68.232.137.180]) by gmr-mx.google.com with ESMTPS id i7si1216546wrc.4.2021.11.15.08.07.02 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 15 Nov 2021 08:07:02 -0800 (PST) Received-SPF: pass (google.com: domain of vijaikumar_kanagarajan@mentor.com designates 68.232.137.180 as permitted sender) client-ip=68.232.137.180; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of vijaikumar_kanagarajan@mentor.com designates 68.232.137.180 as permitted sender) smtp.mailfrom=Vijaikumar_Kanagarajan@mentor.com IronPort-SDR: UWOn7fyXto20MyMC/kPcjxk1EPvvGB/UWRyLOWzRFYN3Aa3E4S1SEvC3yH7tc4h7CnpOa2kPya TDqRd5qTkc+H3lPSXIVx2Rmmr51pyfS/5sFAiDitC4vaMa6DWj9hcXk6Rc3nNgzMJGXsLmyPcx qPfK+81V31gcUj/2kM54rGCQjUx/imsFziS3zo/nZJh45IKdavDzeMuXGfxNdxfHpNdn0RwHff YycAWGC+Fx8ej5BsIn5K9RMy/Q8Mh3mMDgKFTGoJAgjXmyDgvRJMqwUeCp1HMdrXDxAJmL6Wls SpeyRbtePx/qoXXZtwA32cCo X-IronPort-AV: E=Sophos;i="5.87,236,1631606400"; d="scan'208";a="68347020" Received: from orw-gwy-02-in.mentorg.com ([192.94.38.167]) by esa3.mentor.iphmx.com with ESMTP; 15 Nov 2021 08:07:01 -0800 IronPort-SDR: vXVzh6ve5ryWfAgqy5JTwYfyHiv92P2JJktww4mtcxPUaJOldl93WyCwd/x30acQVZDMszo6Gr dQ+wT4P6FmyIs59GAhmbmW9JFpGDZ0YQga9DgHHa9ulTj1163L+8cqKIE1aIOvP7HLvbY0+jC9 dcpy8PdeBFLdtC+G0+4ej1rQCBZVRvo7PAfA3R9UuAoyA3lfCZkS9YLAO2UX2tlRm4gaLUMy8F L9zxomqEKRFeH092hEJj+jDkuGVY8q4YENmXKm7TKxEekUOlB3Q6eHnhoAa+7Awtkc+LpioGwX PKE= From: Vijai Kumar K To: CC: Vijai Kumar K Subject: [RFC PATCH 0/2] U-boot refactor Date: Mon, 15 Nov 2021 21:36:40 +0530 Message-ID: <20211115160642.765371-1-Vijaikumar_Kanagarajan@mentor.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain Return-Path: Vijaikumar_Kanagarajan@mentor.com X-ClientProxiedBy: SVR-ORW-MBX-09.mgc.mentorg.com (147.34.90.209) To svr-orw-mbx-01.mgc.mentorg.com (147.34.90.201) X-TUID: VFJ0Sl/BTbxW Hi, This series refactors u-boot recipe to build selective packages based on DEB_BUILD_PROFILES. This solves 2 problems(kind of related). 1. Tools were always built irrespective of whether we ship them or not. 2. libssl-dev package is needed only when we cross compile tools. Having this change, makes sure the dependency is only included when it is actually needed. P1 drops the U_BOOT_TOOLS_PACKAGE variable and introduces U_BOOT_BUILD_PROFILES in which we can specify which package to build(tools, dev, config). P2 makes sure libssl-dev is included only when it is needed. Thanks, Vijai Kumar K Vijai Kumar K (2): u-boot: Switch to use DEB_BUILD_PROFILES meta/u-boot: Include libssl-dev only when building tools .../u-boot/u-boot-de0-nano-soc_2021.10.bb | 3 +- .../u-boot/u-boot-stm32mp15x_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 | 32 ++++++------------- 5 files changed, 34 insertions(+), 25 deletions(-) -- 2.25.1