From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6994374891774410752 X-Received: by 2002:a05:6512:3905:: with SMTP id a5mr16443536lfu.406.1628504809530; Mon, 09 Aug 2021 03:26:49 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:651c:88c:: with SMTP id d12ls2356293ljq.9.gmail; Mon, 09 Aug 2021 03:26:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzC+X+BrsKLt7fPmtwldKkptVA2PTwMWqvprBNm4YmLgJp9TPnXYZYIk8R4i5HSmJ6mgmc2 X-Received: by 2002:a2e:5005:: with SMTP id e5mr2423994ljb.253.1628504808480; Mon, 09 Aug 2021 03:26:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628504808; cv=none; d=google.com; s=arc-20160816; b=XPZhmwYyL7Tte+tjaO2J2J1SYJZTlm7Pae8uQ7Kw7/aNqUyK1BvVZEm687Ia0Pmu6f F13dgYLrfv5ckeB7/L0XvfDLMSjyHZ09zSlKAi2rMu1kyoA49TCnLleMkEe1aBzyo1J5 LEPv39e2NRqyNd8zWPfGVd8Pypl4AAKBl/WUs4UWzM39+vb0uokGiNYKPiB1NcBcpW9x 32sDTHkSEz4V+5flYWGxZKEJKcBsaWn7L/Z2o0CAPYvE+cExQOdlboMnXAG3E6VGh+oW YJfGIj39GwZ+wlvnOCJ/OtC07HqmEUe59/xCIh6W01rU9DzA8dvToGi7ThQmPJVU3kAa PtRA== 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; bh=F/O4VqtAbrXXVE2qMNPJgKD5aTBB6u3uFBodPRJ10tA=; b=tOar05nxPOEPAhF4DwzhUI2cyRbIeT3hvzH0dUUh0pHfoH844kIjAo3vz8VpQHzilI qVDYu+Jbj/2BqK4peCyMv9ekychLS3n93sDzY30Xs8A6+tlr7LP5CmAiR4hbwCHCczgy BXWzjqLWThaaLtc4BPNTpMPsZicB+akBRoPQTLymfafOJgPIQz4onG6+1WAQBneE2h/I tHUuDVrpnOwCS04LnCBEv1xvtvPXkfw21vuKLqW/0e/ojhhOBomq1AboN4JvyZ70JV8d iqRfpnR+FuxXnMrlAoIYL9tHtVrhWyv5Q2NW9r4PHPaJunvtlEcmHnm+WuS4K/i03zTx 5DkQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of quirin.gylstorff@siemens.com designates 194.138.37.39 as permitted sender) smtp.mailfrom=Quirin.Gylstorff@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Return-Path: Received: from lizzard.sbs.de (lizzard.sbs.de. [194.138.37.39]) by gmr-mx.google.com with ESMTPS id v15si695249lfa.6.2021.08.09.03.26.48 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 09 Aug 2021 03:26:48 -0700 (PDT) Received-SPF: pass (google.com: domain of quirin.gylstorff@siemens.com designates 194.138.37.39 as permitted sender) client-ip=194.138.37.39; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of quirin.gylstorff@siemens.com designates 194.138.37.39 as permitted sender) smtp.mailfrom=Quirin.Gylstorff@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Received: from mail2.sbs.de (mail2.sbs.de [192.129.41.66]) by lizzard.sbs.de (8.15.2/8.15.2) with ESMTPS id 179AQl71017128 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Mon, 9 Aug 2021 12:26:47 +0200 Received: from md2dvrtc.fritz.box ([167.87.4.54]) by mail2.sbs.de (8.15.2/8.15.2) with ESMTP id 179AQkTr007138; Mon, 9 Aug 2021 12:26:47 +0200 From: "Q. Gylstorff" To: isar-users@googlegroups.com Cc: Quirin Gylstorff Subject: [RFC PATCH 2/2] Add example for build-config-snippets Date: Mon, 9 Aug 2021 12:26:45 +0200 Message-Id: <20210809102645.17414-3-Quirin.Gylstorff@siemens.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210809102645.17414-1-Quirin.Gylstorff@siemens.com> References: <20210809102645.17414-1-Quirin.Gylstorff@siemens.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TUID: aJPKIskNNNKe From: Quirin Gylstorff Signed-off-by: Quirin Gylstorff --- meta-isar/conf/local.conf.sample | 2 +- .../example-build-config_0.1.bb | 32 +++++++++++++++++++ .../example-build-config/files/build.snippet | 1 + .../example-build-config/files/build_config | 1 + 4 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 meta-isar/recipes-app/example-build-config/example-build-config_0.1.bb create mode 100644 meta-isar/recipes-app/example-build-config/files/build.snippet create mode 100644 meta-isar/recipes-app/example-build-config/files/build_config diff --git a/meta-isar/conf/local.conf.sample b/meta-isar/conf/local.conf.sample index 6cf1656..b86d618 100644 --- a/meta-isar/conf/local.conf.sample +++ b/meta-isar/conf/local.conf.sample @@ -178,7 +178,7 @@ CONF_VERSION = "1" # # The default list of extra packages to be installed. -IMAGE_INSTALL = "hello-isar example-raw example-module-${KERNEL_NAME} enable-fsck isar-exclude-docs samefile hello isar-disable-apt-cache cowsay example-prebuilt" +IMAGE_INSTALL = "hello-isar example-raw example-module-${KERNEL_NAME} enable-fsck isar-exclude-docs samefile hello isar-disable-apt-cache cowsay example-prebuilt example-build-config" # # Enable cross-compilation support diff --git a/meta-isar/recipes-app/example-build-config/example-build-config_0.1.bb b/meta-isar/recipes-app/example-build-config/example-build-config_0.1.bb new file mode 100644 index 0000000..c899aed --- /dev/null +++ b/meta-isar/recipes-app/example-build-config/example-build-config_0.1.bb @@ -0,0 +1,32 @@ +# Sample application using dpkg-raw, which turns a folder (${D}) of +# files into a .deb +# +# This software is a part of ISAR. + +DESCRIPTION = "Sample use for build-config-snippets for ISAR" +MAINTAINER = "Your name here " + +inherit dpkg-raw +inherit build-config-snippets +BUILD_CONFIG ?= "build_config" + +SRC_URI += "file://${BUILD_CONFIG}" + +BUILD_FEATURE_libhello = "" +BUILD_FEATURE_libhello[DEPENDS] = "libhello" +BUILD_FEATURE_libhello[DEBIAN_DEPENDS] = "libhello" +BUILD_FEATURE_libhello[DEBIAN_BUILD_DEPENDS] = "libhello" +BUILD_FEATURE_libhello[BUILD_CONFIG_SNIPPETS] = "file://build.snippet" + + +BUILD_FEATURES += "libhello" +do_prepare_build[cleandirs] = "${D}/usr/share/example-build-config" +do_prepare_build() { + # use deb_debianize to generate the necessary debian files + deb_debianize + + # ${BUILD_CONFIG}.gen contains the concated build_config + install ${WORKDIR}/build_config.gen ${D}/usr/share/example-build-config/build_config.gen +} + + diff --git a/meta-isar/recipes-app/example-build-config/files/build.snippet b/meta-isar/recipes-app/example-build-config/files/build.snippet new file mode 100644 index 0000000..199e48a --- /dev/null +++ b/meta-isar/recipes-app/example-build-config/files/build.snippet @@ -0,0 +1 @@ +# build snippet test diff --git a/meta-isar/recipes-app/example-build-config/files/build_config b/meta-isar/recipes-app/example-build-config/files/build_config new file mode 100644 index 0000000..d95da26 --- /dev/null +++ b/meta-isar/recipes-app/example-build-config/files/build_config @@ -0,0 +1 @@ +# BUILD CONFIG EXAMPLE -- 2.20.1