From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6928728789410119680 X-Received: by 2002:a05:6512:33a8:: with SMTP id i8mr8276169lfg.366.1613382341707; Mon, 15 Feb 2021 01:45:41 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:6512:6d4:: with SMTP id u20ls22780lff.1.gmail; Mon, 15 Feb 2021 01:45:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJzx0dddM1Jn7pkvgxBoqSbBB3BaOaHtnoRDkZe9BOO5hWvZ4Sp/JaVS4CeUDtJSobLaG7EF X-Received: by 2002:a05:6512:285:: with SMTP id j5mr8423269lfp.65.1613382340543; Mon, 15 Feb 2021 01:45:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613382340; cv=none; d=google.com; s=arc-20160816; b=IWzIBlG/1wiT/coPpzFaB40xT7fSmVPQmw2ALxDdz0/kwgpXavpDgpuNllqbsL5jz1 C8XPG4MRGAsGPS/vWo9sruJ8ZSpw4dULsA7yGkww9wSq7ZRvPLBOFrvr8LvxhxI31Bds TWiVTiUD/J0uudNtIYPf5gmUosBFfF0lBBmv/3KiPHupg/kKsYUAC47Cxx7ochnTPdkq 96OCCy8kdT0FOD6iUOCKZQDDG6KB3WE+FVvjpsnDDstdekxkvqBEs3mcItaFOkIklMky PQLQDg7w1w84e7odKeyoTZpFodx9QRQVV1T8FWH3UsIXiew/QjDdPTHpXLY+SmT4F73I jwCQ== 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=+eAy1AGWHiT4aIGSaqhSVGu4qF9dVfzIRQgE+nXO9Gs=; b=utsx9VTHxEJOk/+1qa7tRct/hWHkchHWFznzEWTKeUYeEFWk8UWJYZWlkG7dcA6Qw8 byHzu2GSTxvIaGpKrOrNA3TB+DewgE0ly9GHnj5FNWQSzqjyRpYie0YcwSJTFJxbKm0X 0xCytwPEtOu2ALAXk4Wd3FfjfbUN8KoZira2ghk8G8g+FHOBUGheGkrDSNiskzgYVfmR j32xahExVvpRcRQVedtX1BCAWQPUyr8NGya9uHVqV++UKANp6fC/n408k1NbVU30E7e+ 289SMr0NbtS5UJtkVXTXaN4EB+nRJ7b5oJbQrEnAQ7J7XusMSVKioM0Pz5XW2NyJSo9m efSA== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of jan.kiszka@siemens.com designates 194.138.37.40 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 gecko.sbs.de (gecko.sbs.de. [194.138.37.40]) by gmr-mx.google.com with ESMTPS id d25si810624lji.8.2021.02.15.01.45.40 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 15 Feb 2021 01:45:40 -0800 (PST) Received-SPF: pass (google.com: domain of jan.kiszka@siemens.com designates 194.138.37.40 as permitted sender) client-ip=194.138.37.40; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of jan.kiszka@siemens.com designates 194.138.37.40 as permitted sender) smtp.mailfrom=jan.kiszka@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 gecko.sbs.de (8.15.2/8.15.2) with ESMTPS id 11F9jdIj021020 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Mon, 15 Feb 2021 10:45:39 +0100 Received: from md1f2u6c.ad001.siemens.net ([139.22.41.241]) by mail2.sbs.de (8.15.2/8.15.2) with ESMTP id 11F9Zc8V014925; Mon, 15 Feb 2021 10:35:39 +0100 From: Jan Kiszka To: isar-users Cc: Henning Schild Subject: [PATCH v3 1/2] meta-isar: Add simple example for injecting prebuilt deb packages Date: Mon, 15 Feb 2021 10:35:37 +0100 Message-Id: <47fa5842a5a61c4a0548b907a07c343066578fb5.1613381738.git.jan.kiszka@siemens.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TUID: pAAmaXz5J5nW From: Jan Kiszka While it's definitely nicer and more convenient to pull deb packages from repos, this may not always be the case. This recipe demonstrates how to implement such a pattern. The example embeds the deb as local artifact which is clearly an anti-pattern. That path was only chosen here because it's hard to find a stable URL to a prebuilt arch-independent deb file in the wild. The procedure for creating the deb is also included as README. Signed-off-by: Jan Kiszka --- meta-isar/conf/local.conf.sample | 2 +- .../prebuilt-deb/files/README-create-deb.txt | 14 ++++++++++++ .../files/example-prebuilt_1.0.0-0_all.deb | Bin 0 -> 776 bytes .../prebuilt-deb/prebuilt-deb_0.1.bb | 20 ++++++++++++++++++ 4 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 meta-isar/recipes-app/prebuilt-deb/files/README-create-deb.txt create mode 100644 meta-isar/recipes-app/prebuilt-deb/files/example-prebuilt_1.0.0-0_all.deb create mode 100644 meta-isar/recipes-app/prebuilt-deb/prebuilt-deb_0.1.bb diff --git a/meta-isar/conf/local.conf.sample b/meta-isar/conf/local.conf.sample index 107496c1..cc0b5c66 100644 --- a/meta-isar/conf/local.conf.sample +++ b/meta-isar/conf/local.conf.sample @@ -172,7 +172,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" +IMAGE_INSTALL = "hello-isar example-raw example-module-${KERNEL_NAME} enable-fsck isar-exclude-docs samefile hello isar-disable-apt-cache cowsay example-prebuilt" # # Enable cross-compilation support diff --git a/meta-isar/recipes-app/prebuilt-deb/files/README-create-deb.txt b/meta-isar/recipes-app/prebuilt-deb/files/README-create-deb.txt new file mode 100644 index 00000000..e2dc35dc --- /dev/null +++ b/meta-isar/recipes-app/prebuilt-deb/files/README-create-deb.txt @@ -0,0 +1,14 @@ +Create test deb package: + +mkdir -p example-prebuilt/DEBIAN example-prebuilt/opt +cat << EOF > example-prebuilt/DEBIAN/control +Section: misc +Priority: optional +Package: example-prebuilt +Version: 1.0.0 +Maintainer: Who Knows +Description: Just a test package +Architecture: all +EOF +echo "Just some test content" > example-prebuilt/opt/some-package-file +dpkg -b example-prebuilt example-prebuilt_1.0.0-0_all.deb diff --git a/meta-isar/recipes-app/prebuilt-deb/files/example-prebuilt_1.0.0-0_all.deb b/meta-isar/recipes-app/prebuilt-deb/files/example-prebuilt_1.0.0-0_all.deb new file mode 100644 index 0000000000000000000000000000000000000000..3049dab62d8e8bb1857626e2a791e65a986c8f36 GIT binary patch literal 776 zcmY$iNi0gvu;WTeP0CEn(@o0EODw8XP*5;5Gc-0dH8e4^R8TMg@?oT*fq|KciGl(U zK|unSk)8opa(-S(QGSkINn(*+MHONF#>QrF{eR7?BBB@=Se{+m;>L1d0#iePBBK}s z1c=Be={!*X&&UzWAkMuyuspRjqxy_YRdYBVND7#5f2 zojAB~Q`K$05-xTIohG9ar1|Vp{`0?+ zGmh5!vGP}B^_Qz+ljl!vuwN=~khxmP{$jH3WN!ur_pGvC@;BsPGcc|Jh7|+D;&bc5 zHXcd;%>)WEmdL1-#F9jKL;ypXP+S_BSm20@?TpBAacGgFB`_`+)+5J-+Z>rA{{;?r zDJES0U>A4Mbkg>BhKoyfKZ^bHDTkvjv;OI?g)B0Xc6n=U6YUqgTlLZCx22wE_MFR! zml`a@^X-z-ZcRL~D)HNvt!|yXnddOzB=Yw^ccs|9VlcYWwh z4s