From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7065369477208080384 X-Received: by 2002:a05:600c:1f05:b0:37b:d9aa:e210 with SMTP id bd5-20020a05600c1f0500b0037bd9aae210mr10454483wmb.63.1645185218746; Fri, 18 Feb 2022 03:53:38 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:600c:17c3:b0:37c:5305:28db with SMTP id y3-20020a05600c17c300b0037c530528dbls6228915wmo.2.canary-gmail; Fri, 18 Feb 2022 03:53:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJxC+bGrdx7/m1Zpql9fmD98lsPsy7UevIhrYHoc6ujd8iQP1PjVwWdJExswyzegJ7uibzUl X-Received: by 2002:a7b:c94e:0:b0:37b:ea2f:788c with SMTP id i14-20020a7bc94e000000b0037bea2f788cmr6887556wml.14.1645185217792; Fri, 18 Feb 2022 03:53:37 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1645185217; cv=pass; d=google.com; s=arc-20160816; b=snzY79L6u6M0dguIFETcpMIf+tJs01hlvrlCKzZWLLOrF1ZwwZ1Ui2e3Mdnh/K1BAn pAZudV7IGMBR2iz1hUyTNGA5Sl8eKznikvXAyNzjtQwANWJQYiJgZNh3VcRzquG28Yzi StVpngC2R92CdstIvS4aMvAeSxJU7hES5BM/z9JQ3fJXl3qVORBqqMBy5ZXWYImTiCzz N/pxDRSP5lHHIA6PriIMKyAe66LRHRGuCzqfIrU+dzA0OXwBSn21NULWxcIDm2kgpAmW kLCWxkCLlxyfKiD7OQa0AAnRFEwY+fFJYpfyP1NELXLxAnU9DBkUm4OIo69fDGR5e96V YFgw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :dkim-signature; bh=Hu7WMl7UsMdkpmEEzLRhYgn1Cab1ytLv9auI+HV3q5Y=; b=ugMuO6i3BJzEqtzTiBZIo0FyCEg8q6QhxVSsU4U0fFcXoYBYQscMLk5P8otg2z7eoS 2brJURNFAVtYXRvTY3bS73spLnYNlX3/ny8WdWVyaW3S0O3nCc3hgwRBj4NbAE9S8sj2 WIvRq45Wb6hxCAEjtokaeYfp2PgH4z5Q89IVGDlkwUMBgh2QovuvqVJsXZvfQqjholSg AHS4J4a1h99xMNi+zwUENgIY3xOcpWSfPIXrDqbTNjo2lrrTEtwJzyy2O5uRBb+eACQX j/lX6AQBUbgv2XtxD6x5QmXf8CND9sIDHFAO6D3e85brbrE1vit9RzZJJjmZLrmQPufE r19w== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=selector2 header.b=E2drKcg5; arc=pass (i=1 spf=pass spfdomain=siemens.com dmarc=pass fromdomain=siemens.com); spf=pass (google.com: domain of jan.kiszka@siemens.com designates 2a01:111:f400:7e1a::614 as permitted sender) smtp.mailfrom=jan.kiszka@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Return-Path: Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on20614.outbound.protection.outlook.com. [2a01:111:f400:7e1a::614]) by gmr-mx.google.com with ESMTPS id y17si239877wmi.2.2022.02.18.03.53.37 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 18 Feb 2022 03:53:37 -0800 (PST) Received-SPF: pass (google.com: domain of jan.kiszka@siemens.com designates 2a01:111:f400:7e1a::614 as permitted sender) client-ip=2a01:111:f400:7e1a::614; Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=selector2 header.b=E2drKcg5; arc=pass (i=1 spf=pass spfdomain=siemens.com dmarc=pass fromdomain=siemens.com); spf=pass (google.com: domain of jan.kiszka@siemens.com designates 2a01:111:f400:7e1a::614 as permitted sender) smtp.mailfrom=jan.kiszka@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=eS894/OA8r3ef/wZ5y0SJW/Yn6Q9js7Q9Q0z/zDYvnnSVwhErx0mSpvX7IB7p+SSeD6adIJH3n4+B5YQqucSTaFS/oLD1OepbUrtdmB6IJkLAIL8T1/mi15weqCEtmyILMsm2G7vZrt7kt3hBl2W+lFXBiMqvbcUcaKn8lOaNQPF6VDDieMAVz7weNiB9ldpgznKlGE7NZCzTXwY2Sowwr9M7n/WnhAwvmMsTOWHVIst6QsPgvVZArNJYmCnhtiP1EUucc33+PuYA4qNIJI0au20Nf8c7tdmXLDwWWb6BjVLRcFyp6aojmF0RwAnYN30Frwi5AwH5yOHBB+4GnVC6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Hu7WMl7UsMdkpmEEzLRhYgn1Cab1ytLv9auI+HV3q5Y=; b=Rm08dOoNnO6aAzS/nHJtaI91/Mz74t8HOhEnOv68POQ8N9aUUHmm8IXWEQ/8uoj9hRm8C/p546p5uItWkPYxRJ8KIHpor7Yl6T7mGCnC8+zB4WkSILyi8tnjFW/3I7JFH/5oHVoFB0R2I396d1x9F+0OynjtOSgm/1nmUeSoqModmQuX1rg+6IfKj988aL4y9xFNtMxgNYEI8VRIWiYQVJInfrAyAjpuTZ5iq9HP/4cCJG8/6d3n0BW5dH0nrnHSTcdTlXE6idxkP+GKdp/+5W+CstQdnqQhSp51HiUTGOdH7EW7ctQ8Ilhzc/MLTRbmuurAirKnehE6cLjPncUg7A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 194.138.21.72) smtp.rcpttodomain=mentor.com smtp.mailfrom=siemens.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=siemens.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=siemens.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Hu7WMl7UsMdkpmEEzLRhYgn1Cab1ytLv9auI+HV3q5Y=; b=E2drKcg5DvF0jVBBgRz8WIUV8YBZqS+x8LjxiRJXD8CoEc8l8JE86sfCzVelljDy7y+7XE51AsIJmDyCkouGhpFyM70l6kH6l2mlOab0KjrEsR0PqWBUvwVBojQc8tjs/PW81+FmTr2/E1JYyPqQ2wl+obl/1X95F+WOnqQIZB1fptTX27pG3OhQKfMB1cGlWrn45kQ9hmyjpeqhaWpyS4yam6Kg+2s07DItFSf6P9fY61Wvcza3LbVk8o6wUHk7WY/8AS9Ir+uD1PzgLfTvrNrFUQ/9YVqp1FLAeTSCuC96WPrUeq/ALYvnLK/wC8NAFcb4FNlfeXu2mCVNcwzN2w== Received: from SV0P279CA0036.NORP279.PROD.OUTLOOK.COM (2603:10a6:f10:12::23) by AM6PR10MB1991.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:209:32::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4975.11; Fri, 18 Feb 2022 11:53:36 +0000 Received: from HE1EUR01FT017.eop-EUR01.prod.protection.outlook.com (2603:10a6:f10:12:cafe::25) by SV0P279CA0036.outlook.office365.com (2603:10a6:f10:12::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4995.16 via Frontend Transport; Fri, 18 Feb 2022 11:53:36 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 194.138.21.72) smtp.mailfrom=siemens.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=siemens.com; Received-SPF: Pass (protection.outlook.com: domain of siemens.com designates 194.138.21.72 as permitted sender) receiver=protection.outlook.com; client-ip=194.138.21.72; helo=hybrid.siemens.com; Received: from hybrid.siemens.com (194.138.21.72) by HE1EUR01FT017.mail.protection.outlook.com (10.152.0.166) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.4995.15 via Frontend Transport; Fri, 18 Feb 2022 11:53:36 +0000 Received: from DEMCHDC8A0A.ad011.siemens.net (139.25.226.106) by DEMCHDC9SMA.ad011.siemens.net (194.138.21.72) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.18; Fri, 18 Feb 2022 12:53:35 +0100 Received: from [167.87.0.165] (167.87.0.165) by DEMCHDC8A0A.ad011.siemens.net (139.25.226.106) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.18; Fri, 18 Feb 2022 12:53:35 +0100 Message-ID: Date: Fri, 18 Feb 2022 12:53:34 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH 1/2] u-boot: Switch to use DEB_BUILD_PROFILES Content-Language: en-US To: Vijai Kumar K , References: <20220216180142.1074548-1-Vijaikumar_Kanagarajan@mentor.com> <20220216180142.1074548-2-Vijaikumar_Kanagarajan@mentor.com> From: Jan Kiszka In-Reply-To: <20220216180142.1074548-2-Vijaikumar_Kanagarajan@mentor.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-Path: jan.kiszka@siemens.com X-Originating-IP: [167.87.0.165] X-ClientProxiedBy: DEMCHDC89YA.ad011.siemens.net (139.25.226.104) To DEMCHDC8A0A.ad011.siemens.net (139.25.226.106) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c1471a18-cf84-4fd9-f20d-08d9f2d54bb4 X-MS-TrafficTypeDiagnostic: AM6PR10MB1991:EE_ X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:1443; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: OPn/DkZl/9p+LxxMpNZcLLJM44GOyUjLIGvfDtv+jQsAfACxc/wTwoaVJ8hqd2OkYY4lgw9ULDe9o5w+LUUU5oiBdjttGim2ckJZdj7qi+NlDEFG/Dce4dbR+QMtHX7wo6EK1cJ9kOLRLtfdYouSvPSRdE+QcJG9rdFtWK2/uo04Xq1sQrPZUQlH5cFJrL4xQKQHfDzp63J3JYgVcrk0miZEjzGHlG39AWk1zYClLTmHid7IUXlsOdxjrCAAZx6htjvW/KrqHGHsoVktT3rVotBeYa2CsksHuPKgseBILSIKBDjxtQO2r2O/F0vmp5I/yD6IqOlk7bj0IWNi2bdDNuNCQzvHAH+z3MuUsFe2TN5j2m0sB8tuGUrgWuYsmmg6nDcsMhjq0eMIkmKf8qIlj8lWd+/5CBHgbdeEhb8HMMPX83IlQxK09IOzVwxFM3ku4tgHxgARgShG9YCvfaXTqj/YPQQt17KUqtgs6s7FuSOyD788k12ESqbMFSSzWcdvbxxj9wEVn8EtJtgGRGJh/kJtZctOuopzhwkMnlfwNr1/+aL8HPKjSvskFxQXuChxn8+O7O3DxwPyCJ2taJ/dTyTFkQtoqk27AX8V6/aNg0rbQFpABAnTBI+WQz3vXy41cGa0nnBQSdOuXnFuyKPIa/EWg20zGzZyIjDFI21Ujz4CrM+BAmkiHPf/eVBoRwgRRZZy74olEFJjgn0MAmG4tPzOizsUxPydw66/Lg5gdhm/26wKNIjShx8KjRF8EDBylUutQWUZohEeSsUUuAPEAQ== X-Forefront-Antispam-Report: CIP:194.138.21.72;CTRY:DE;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:hybrid.siemens.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230001)(4636009)(40470700004)(46966006)(36840700001)(86362001)(40460700003)(356005)(956004)(336012)(186003)(83380400001)(82310400004)(16526019)(110136005)(70586007)(70206006)(8676002)(8936002)(81166007)(6706004)(26005)(316002)(16576012)(53546011)(31696002)(508600001)(5660300002)(47076005)(36860700001)(36756003)(82960400001)(2616005)(31686004)(44832011)(2906002)(3940600001)(43740500002)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: siemens.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Feb 2022 11:53:36.0927 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c1471a18-cf84-4fd9-f20d-08d9f2d54bb4 X-MS-Exchange-CrossTenant-Id: 38ae3bcd-9579-4fd4-adda-b42e1495d55a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=38ae3bcd-9579-4fd4-adda-b42e1495d55a;Ip=[194.138.21.72];Helo=[hybrid.siemens.com] X-MS-Exchange-CrossTenant-AuthSource: HE1EUR01FT017.eop-EUR01.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR10MB1991 X-TUID: oVxRHaLUSWvU On 16.02.22 19:01, Vijai Kumar K wrote: > Use DEB_BUILD_PROFILES to select packages to build. > > This patch drops the U_BOOT_TOOLS_PACKAGE and U_BOOT_CONFIG_PACKAGE > variables and uses DEB_BUILD_PROFILES to enable particular packages > like u-boot-tools, u-boot-dev and u-boot-config. > > Also, provide backward compatibility with U_BOOT_*_PACKAGES > variable and prompt a deprecation warning to user. > > Signed-off-by: Vijai Kumar K > --- > RECIPE-API-CHANGELOG.md | 14 ++++- > .../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 | 51 ++++++++++--------- > 4 files changed, 60 insertions(+), 27 deletions(-) > > diff --git a/RECIPE-API-CHANGELOG.md b/RECIPE-API-CHANGELOG.md > index cad15a8..c135bd0 100644 > --- a/RECIPE-API-CHANGELOG.md > +++ b/RECIPE-API-CHANGELOG.md > @@ -342,4 +342,16 @@ The bitbake variable defines the respective environment variable which is availa > When cross compiling, `cross` is added to the `DEB_BUILD_PROFILES` environment variable. > Please note, that manually exported versions of the variables are overwritten. > > -For a list of well-known Debian build profiles and common practices, we refer to Debian's BuildProfileSpec. > \ No newline at end of file > +For a list of well-known Debian build profiles and common practices, we refer to Debian's BuildProfileSpec. > + > +### Deprecate U_BOOT_TOOLS_PACKAGE and U_BOOT_CONFIG_PACKAGE > + > +Use DEB_BUILD_PROFILES instead of U_BOOT_TOOLS_PACKAGE and U_BOOT_CONFIG_PACKAGE > + > +U_BOOT_TOOLS_PACKAGE = "1" is achieved by DEB_BUILD_PROFILES += "tools" > +U_BOOT_CONFIG_PACKAGE = "1" is achieved by DEB_BUILD_PROFILES += "config" This is actually not an equivalent interface: So far, we also had layers setting U_BOOT_*_PACKAGE at distro or even layer-level. Now you need to patch that into the respective U-Boot recipes because the variable is shared with other recipes. We need to check if that actually addresse all use cases. Did you have a look at the usual suspects already, specifically isar-cip-core? I'm even seeing the SWUpdate package doing things differently there depending on the availability of U_BOOT_CONFIG_PACKAGE. Jan > + > +u-boot-${MACHINE}-dev package build can also be controlled now. Enabled by default > +in u-boot-custom.inc. To remove use the below code in your recipe. > + > +DEB_BUILD_PROFILES_remove = "dev" > 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 9984d8c..3d53356 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('DEB_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('DEB_BUILD_PROFILES', 'config', 1, 0, d) else ''}" > +PROVIDES += "${@('u-boot-' + d.getVar('MACHINE') + '-dev') \ > + if bb.utils.contains('DEB_BUILD_PROFILES', 'dev', 1, 0, d) else ''}" > > inherit dpkg > > @@ -22,6 +25,20 @@ python() { > if d.getVar('BUILD_DEPENDS'): > bb.warn("u-boot-custom: Deprecated use of BUILD_DEPENDS, please switch to DEBIAN_BUILD_DEPENDS") > d.setVar('DEBIAN_BUILD_DEPENDS', d.getVar('BUILD_DEPENDS')) > + > + if d.getVar('U_BOOT_TOOLS_PACKAGE') is not None: > + bb.warn("u-boot-custom: Deprecated use of U_BOOT_TOOLS_PACKAGE, please switch to DEB_BUILD_PROFILES") > + if d.getVar('U_BOOT_TOOLS_PACKAGE') == "1": > + d.appendVar('DEB_BUILD_PROFILES', " tools") > + else: > + d.setVar('DEB_BUILD_PROFILES_remove', "tools") > + > + if d.getVar('U_BOOT_CONFIG_PACKAGE') is not None: > + bb.warn("u-boot-custom: Deprecated use of U_BOOT_CONFIG_PACKAGE, please switch to DEB_BUILD_PROFILES") > + if d.getVar('U_BOOT_CONFIG_PACKAGE') == "1": > + d.appendVar('DEB_BUILD_PROFILES', " config") > + else: > + d.setVar('DEB_BUILD_PROFILES_remove', "config") > } > > DEBIAN_BUILD_DEPENDS ?= "bc, bison, flex, device-tree-compiler, git" > @@ -29,8 +46,8 @@ DEBIAN_BUILD_DEPENDS ?= "bc, bison, flex, device-tree-compiler, git" > TEMPLATE_FILES = "debian/control.tmpl" > TEMPLATE_VARS += "MACHINE DEBIAN_BUILD_DEPENDS" > > -U_BOOT_TOOLS_PACKAGE ?= "0" > -U_BOOT_CONFIG_PACKAGE ?= "0" > + > +DEB_BUILD_PROFILES = "dev" > > do_prepare_build() { > cp -r ${WORKDIR}/debian ${S}/ > @@ -40,31 +57,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('DEB_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('DEB_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 -- Siemens AG, Technology Competence Center Embedded Linux