From patchwork Tue Mar 31 08:10:05 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Quirin Gylstorff X-Patchwork-Id: 4996 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Tue, 31 Mar 2026 10:10:32 +0200 X-Sieve: CMU Sieve 2.4 Received: from mail-yx1-f60.google.com (mail-yx1-f60.google.com [74.125.224.60]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 62V8AUHW011186 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 31 Mar 2026 10:10:31 +0200 Received: by mail-yx1-f60.google.com with SMTP id 956f58d0204a3-64ffe451e14sf6005686d50.0 for ; Tue, 31 Mar 2026 01:10:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1774944624; cv=pass; d=google.com; s=arc-20240605; b=NglxPK9CnnCdWc4j2QV7y6g+yIdJCHAp05P8DD3bmAHO3sdnHszmJm+EIDX30dnuyE Lp4tYne6TGRT/ajOPb2dgjqUXs2kM3rdP8u+X/AEKVdK07UgqIhoauh3JGGCDr6uTGF0 WZV+L//3lcvSt0x5z93ilMObOjV85dzKXrbt3NVtWEl4nSgqUb2pBpRtlcQ7rGtf9xfN BgzuiolygedKYEs23Cj6huuFjBrdTbjS1EWDlJib/eL04dEMaVkdDAeo4zBzPD0qZOnK cgoRlwDk44s942zCE1eXQs5xqDZ8xCnd9PwbX2nnpDjn836haJlypRn/Bw+1F1f80bqd wQ2A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:feedback-id:mime-version :references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=C7O1KODfrgTbhzvRMXO2gH8Qa9yajCC+GaOGQ7SQ06c=; fh=rr95+8jndoZGAToKy1ool4K5nG6ryxNvvQvOseAiAWM=; b=jxSEIs1fsrL9evXZxSRLonAu/sg2OeQUTI4ajYhD0aPZcu19Jffji98K8GwH2qr8aQ KqJQQcHHmeltmh34lvuft7h90oa+S3dY2GE4paMOymgVAFPB8fmdw5lXVtf9SkuzBYD9 /uPXYK0/VuffK0m3soirGJO2UaYVjwF/ExO9iP41n45WP5XtrSa9b5wX45m/CMaR9oFc 22gi76cG+Ug4YEAolIDJL3L7ds277YUweezMylGkosP91WKGTQ52q4EkqByCL7SHlIha Srz+tyJvSoaA/bClsOQZNFUUX+UhH7Vp22DOX6eiyg1aFcyJePouwS/+sra1OjyFukhr HSKg==; darn=isar-build.org ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=Pl4Y1Sci; spf=pass (google.com: domain of fm-51332-2026033108101997e019aef90002073c-9krurl@rts-flowmailer.siemens.com designates 185.136.64.226 as permitted sender) smtp.mailfrom=fm-51332-2026033108101997e019aef90002073c-9Krurl@rts-flowmailer.siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20251104; t=1774944624; x=1775549424; darn=isar-build.org; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:feedback-id :mime-version:references:in-reply-to:message-id:date:subject:to:from :from:to:cc:subject:date:message-id:reply-to; bh=C7O1KODfrgTbhzvRMXO2gH8Qa9yajCC+GaOGQ7SQ06c=; b=MULuFBKiWRkoRnl7GuPAssnmPRAnNU19gqyOKJHAzQIXS4fJ2O3lAS8PxSNAhItgZJ brgguOv1GNXqjEuGA6eIFBfuFmH3txsYEW+ttDekOvu6O7uC+HSMXspsFVVz+4xFERaE 6CW2zJmkg6r6wS421quUjWSMb4MPWRGXaSJ8ZAjgAT7zWF6PM0oT/JyRaZsXxLOvnHv5 RKQD5KUQobrl1r2IwnhfzAz1BnQ4ge52HiTle+Bzo45d5adq2nq4xLaW+P5V2Bhc7bKK m1Tj8v4i97CLLRHcIXb/fVo+W+FE21RvwX0CO+Ezwwpio6EoEDWuSnYdfQHiw9O064k0 dkig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1774944624; x=1775549424; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:feedback-id :mime-version:references:in-reply-to:message-id:date:subject:to:from :x-beenthere:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=C7O1KODfrgTbhzvRMXO2gH8Qa9yajCC+GaOGQ7SQ06c=; b=fWT4a+QkXSGo/f0BzWkyt2+z5n9dDI2G/0aUyHpZvGK8fxZW8dt17ZNyK6k5oRcWdi lBKV+LaUj2UN/bWAZik2yi/lhY/cI1JF1y6Z54Ct4aHmJI+EUEUYMFtcCxsvj6ldZKUI HV0cE/qFIBSUIr77HF7ilKtooWy5/F+1jhxwYTI6oOxQMWXzoiwl4r2vMzvwk6MRamaD 5G36ga5LV4Yxp/068gZ1akf6swDfDKVbi8kDKI2tWR7FWr0rJGUStt26+3IbcyW0NqVh jTIoO68aNuUIhN/nNPd9d83XAiyP9LW7hd6iWL0kx710A9sx+trct7GXoTtXiy2878sp enzA== X-Forwarded-Encrypted: i=2; AJvYcCVgo42ebVJRJRqy1YPqO4dBpGMYQ38ywm21/GewOh3wsWfX6g+wX4957Lt1bSGvhZ5Tzxzv5gc=@isar-build.org X-Gm-Message-State: AOJu0Yyy8uVhoQaCjY0TtXxRRz/IdY6Ppi8Nq4svJx7RL33dZw5RqrY4 MywPc2aGRljxcunR4yFFuLn/IP7YXG9i5m8EtV38StUYKYT8Mj+J/UA5 X-Received: by 2002:a05:690e:12c4:b0:650:1b68:8753 with SMTP id 956f58d0204a3-6501b688e07mr7891622d50.20.1774944623720; Tue, 31 Mar 2026 01:10:23 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com; h="AYAyTiLh9bknSPaSYcMMZ4Sv6TEeCvaJK2dUkigVIQAIHe7kzQ==" Received: by 2002:a53:b783:0:b0:650:1cdb:5f4d with SMTP id 956f58d0204a3-6501cdb6634ls2970711d50.2.-pod-prod-02-us; Tue, 31 Mar 2026 01:10:22 -0700 (PDT) X-Received: by 2002:a05:6102:6047:b0:602:9900:8dd9 with SMTP id ada2fe7eead31-604f93bff92mr5597204137.35.1774944622702; Tue, 31 Mar 2026 01:10:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1774944622; cv=none; d=google.com; s=arc-20240605; b=MfCX+mNg8VYxzQEG1yn8MjGTjDCXYmHiKtop+SqI0Ep16GvsCVDk6EkIsYUPjQJ/Lo Uhurw+pCGaIAVo30bVX/p0GCCc5Tii0bx66Di+eu46hA34y4RJoP5foLqHckn13EBHZ2 eMF0WV/B/qBkJKmI4VG4zw+1N+KDgVlA5Fgwh5Fkw8vIoT/yRJQUTkVdFMyKQnLsj0GY cQ4Pnw69iNANMpijGewSWnLx536DOsFlQX4JjsiUdTK73F6AA0sm1FRDFNimzmwbINhz UiurgjNHEttT+rfW2sp4HjWFE8vPQA2/GPJy/wZagSwahwV9fjJWX2EtsCB2iZTJ42j5 zkzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=feedback-id:content-transfer-encoding:mime-version:references :in-reply-to:message-id:date:subject:to:from:dkim-signature; bh=L422cLStf50I4fcGnm4lyYU1+rgBCrQ/nGhb5PcoyPk=; fh=7tclEdh7YbwSQowgJ6LNq720O7H5HTEaqj22NJWRE2E=; b=lAmeWWBP8Kdj3q+Zux1ljHBMLmIfX3/G4G1KOGkkOpZsH0hW2Ag2z/o6xtVtd8uAs8 sWky4Dt7NyYJaPgVsQzTtochdGBMWXcZ+EGcdG0zGT+VkA3pHpm42zprQXrUrdEoP7KQ ez7W+fBCab0vEBUhoQG6xU86gxKq2cxl2XnbnEK3VDW5g54QjoOTVZcTcTPll5RTCr5S IBS3ZOTeRgB/4h32upz/dtxYklvBFXiVPI8MxfQ1LuARoAi13sNKwD1TjVDbh/NUnmLm xloKH8WHwXsqMlbAUtuo+gayvNAv2i9AqrVc9aH+HWETvA3mSxiu1cEVXRe4Rztd/rJi 1wQw==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=Pl4Y1Sci; spf=pass (google.com: domain of fm-51332-2026033108101997e019aef90002073c-9krurl@rts-flowmailer.siemens.com designates 185.136.64.226 as permitted sender) smtp.mailfrom=fm-51332-2026033108101997e019aef90002073c-9Krurl@rts-flowmailer.siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com Received: from mta-64-226.siemens.flowmailer.net (mta-64-226.siemens.flowmailer.net. [185.136.64.226]) by gmr-mx.google.com with ESMTPS id ada2fe7eead31-60512594c9bsi272643137.1.2026.03.31.01.10.22 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 31 Mar 2026 01:10:22 -0700 (PDT) Received-SPF: pass (google.com: domain of fm-51332-2026033108101997e019aef90002073c-9krurl@rts-flowmailer.siemens.com designates 185.136.64.226 as permitted sender) client-ip=185.136.64.226; Received: by mta-64-226.siemens.flowmailer.net with ESMTPSA id 2026033108101997e019aef90002073c for ; Tue, 31 Mar 2026 10:10:20 +0200 X-Patchwork-Original-From: "'Quirin Gylstorff' via isar-users" From: Quirin Gylstorff To: isar-users@googlegroups.com Subject: [PATCH v2 2/3] Add example of a rust hello world as isar recipe Date: Tue, 31 Mar 2026 10:10:05 +0200 Message-ID: <20260331081019.32111-3-Quirin.Gylstorff@siemens.com> In-Reply-To: <20260331081019.32111-1-Quirin.Gylstorff@siemens.com> References: <20260331081019.32111-1-Quirin.Gylstorff@siemens.com> MIME-Version: 1.0 X-Flowmailer-Platform: Siemens Feedback-ID: 519:519-51332:519-21489:flowmailer X-Original-Sender: quirin.gylstorff@siemens.com X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=Pl4Y1Sci; spf=pass (google.com: domain of fm-51332-2026033108101997e019aef90002073c-9krurl@rts-flowmailer.siemens.com designates 185.136.64.226 as permitted sender) smtp.mailfrom=fm-51332-2026033108101997e019aef90002073c-9Krurl@rts-flowmailer.siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com X-Original-From: Quirin Gylstorff Reply-To: Quirin Gylstorff 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=-4.9 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2,RCVD_IN_RP_CERTIFIED, RCVD_IN_RP_RNBL,RCVD_IN_RP_SAFE,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: =?utf-8?q?INBOX?= From: Quirin Gylstorff Signed-off-by: Quirin Gylstorff --- .../recipes-app/rust-hello-isar/files/rules | 27 +++++++++++++++++++ .../files/rust-hello-isar/Cargo.toml | 6 +++++ .../files/rust-hello-isar/src/main.rs | 3 +++ .../rust-hello-isar/rust-hello-isar_0.1.bb | 22 +++++++++++++++ 4 files changed, 58 insertions(+) create mode 100755 meta-isar/recipes-app/rust-hello-isar/files/rules create mode 100644 meta-isar/recipes-app/rust-hello-isar/files/rust-hello-isar/Cargo.toml create mode 100644 meta-isar/recipes-app/rust-hello-isar/files/rust-hello-isar/src/main.rs create mode 100644 meta-isar/recipes-app/rust-hello-isar/rust-hello-isar_0.1.bb diff --git a/meta-isar/recipes-app/rust-hello-isar/files/rules b/meta-isar/recipes-app/rust-hello-isar/files/rules new file mode 100755 index 00000000..213cc876 --- /dev/null +++ b/meta-isar/recipes-app/rust-hello-isar/files/rules @@ -0,0 +1,27 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS = hardening=+all +DPKG_EXPORT_BUILDFLAGS = 1 +include /usr/share/dpkg/default.mk +include /usr/share/rustc/architecture.mk +export DEB_HOST_RUST_TYPE +export PATH:=/usr/share/cargo/bin:$(PATH) +export CARGO=/usr/share/cargo/bin/cargo +export CARGO_HOME=$(CURDIR)/debian/cargo_home +export CARGO_REGISTRY=$(CURDIR)/debian/cargo_registry +export DEB_CARGO_CRATE=$(DEB_SOURCE)_$(DEB_VERSION_UPSTREAM) + +%: + dh $@ --buildsystem=cargo + +execute_after_dh_auto_clean: + $(CARGO) clean + rm -rf $(CARGO_HOME) + rm -rf $(CARGO_REGISTRY) + rm -f debian/cargo-checksum.json + +execute_before_dh_auto_configure: + $(CARGO) prepare-debian $(CARGO_REGISTRY) --link-from-system + rm -f Cargo.lock + touch debian/cargo-checksum.json + diff --git a/meta-isar/recipes-app/rust-hello-isar/files/rust-hello-isar/Cargo.toml b/meta-isar/recipes-app/rust-hello-isar/files/rust-hello-isar/Cargo.toml new file mode 100644 index 00000000..f761691e --- /dev/null +++ b/meta-isar/recipes-app/rust-hello-isar/files/rust-hello-isar/Cargo.toml @@ -0,0 +1,6 @@ +[package] +name = "rust-hello-isar" +version = "0.1.0" +edition = "2024" + +[dependencies] diff --git a/meta-isar/recipes-app/rust-hello-isar/files/rust-hello-isar/src/main.rs b/meta-isar/recipes-app/rust-hello-isar/files/rust-hello-isar/src/main.rs new file mode 100644 index 00000000..50469bdf --- /dev/null +++ b/meta-isar/recipes-app/rust-hello-isar/files/rust-hello-isar/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello, isar!"); +} diff --git a/meta-isar/recipes-app/rust-hello-isar/rust-hello-isar_0.1.bb b/meta-isar/recipes-app/rust-hello-isar/rust-hello-isar_0.1.bb new file mode 100644 index 00000000..0a20bb4b --- /dev/null +++ b/meta-isar/recipes-app/rust-hello-isar/rust-hello-isar_0.1.bb @@ -0,0 +1,22 @@ +# Sample application +# +# This software is a part of ISAR. +# Copyright (C) 2026 Siemens AG + +inherit dpkg + +DESCRIPTION = "Hello world example for Rust" +MAINTAINER = "isar-users " + +SRC_URI = "file://${BPN} \ + file://rules" + +DEBIAN_BUILD_DEPENDS += "dh-cargo" + +S = "${WORKDIR}/${BPN}" + +do_prepare_build() { + deb_debianize + install -m 644 ${WORKDIR}/rules ${S}/debian/rules +} +