From patchwork Mon Mar 23 10:52:29 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Quirin Gylstorff X-Patchwork-Id: 4987 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Mon, 23 Mar 2026 11:53:52 +0100 X-Sieve: CMU Sieve 2.4 Received: from mail-wm1-f62.google.com (mail-wm1-f62.google.com [209.85.128.62]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 62NArprJ030979 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 23 Mar 2026 11:53:51 +0100 Received: by mail-wm1-f62.google.com with SMTP id 5b1f17b1804b1-48532df52c5sf47502975e9.1 for ; Mon, 23 Mar 2026 03:53:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1774263225; cv=pass; d=google.com; s=arc-20240605; b=Rth6JH+YHZsdFDUeKcENoqRYPYFd3DPBoAlblYw9ibp/HWw5L5XHJDE+Q18qYDXxAb 8Buu+nH2oULUCoN/gdfKwHW3cFkrDGr/pG8iw2CSt4JEduuj/W0ayEvweC55qkjBcXd6 72u8/4G0K7S1oQwjNAMlxzfks0YSqu5FGd7kerm1bXN8lSZr9OJ3QcsYnEMuMBLk3IS2 vB5KRttVIeglL4b8KNmv97YpeOrjpggDTPDsInCaq69usHbqQfnLOsJG8rxKeSNDkgQ8 JWSepj2ESlWaWKXoMerTC8VyzS3neFO+kCt81laVQsqw7OSR5InuN08wMfwIjEg+qm/G sreg== 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=udKoXCu17GTtBzTaMq+4lpy2vMcy5hTBUHR3qFXZpS0=; fh=V9shPsUQRcMha6H6tyBz+LRUSYNmcTDaEq7gBcDIFQc=; b=jrK4W1TESApOCuV5MSBTF/uI8+S36ucrgBIMzGFQZ9Lg/nfbJX5hBfS/I44ZwL6MQQ Zk3sjstj5R3opRq3QBax2x7yf1tOXwiS+xpOTPghwGaHwC9AP5bu5h71rQ6mwNYPRXe/ 8+goDGlVfGtg5M4EokFfDBKzgLsZ7DT6RbXYDkVqaCPwc+/f3dUVeqazj+ufulRY2ybn w+VRn2kmKc5coK10YT43ra1admEh8xXUL8GauJGU8TjvqfLrIisRlWioLDKyOcXNzziH n2bOZic/aFdTZ4oItHmJ710VnVdjfvuRzOo9x1os07nhgycEO8B7pMYLTI6JoFx3iYkU 4WHw==; darn=isar-build.org ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=Q9iZQuJJ; spf=pass (google.com: domain of fm-51332-202603231053417e59dd3c4d00020735-ktmqe3@rts-flowmailer.siemens.com designates 185.136.65.227 as permitted sender) smtp.mailfrom=fm-51332-202603231053417e59dd3c4d00020735-KtmQe3@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=1774263225; x=1774868025; 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=udKoXCu17GTtBzTaMq+4lpy2vMcy5hTBUHR3qFXZpS0=; b=jfBxojf3zvDgU+KfQD877xlzKzCD5O2PX7FbCrWMXkwmtQzrxEiVH+TRRrim8Fdu12 fbPBSM5DKzYlFew225A0H22CJs2UkwN+sbmWPZma8YQ0oVjLK3a/CmsnN1jYTMVltljD AaaLHt1aaaON2yh1W2fvQMsgYqhBEEmdw9i1VicdgLQq/Sdsgyg2sZW8D4OfrPpm4wWQ TAwjs4JlLW6SNMraMOjmTBYaiuiDjCeB7jyc/rP2iLW8pA9hskaR5IfcKuqoBYgdPVgG eFsSnL1jxhAPlzVYUZsFAZqLM9meh6K3j3dB0gg4fft5lVqh1N7xdcxAWI8V12PzmahQ sRMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1774263225; x=1774868025; 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=udKoXCu17GTtBzTaMq+4lpy2vMcy5hTBUHR3qFXZpS0=; b=X12FlE0/I+vMcf6/hcyyb87+Eq0zfB2KEUDn9U/hGWzmnp+uTLzDQyHol0wABjaa+4 HviodgE04c9tnBz7XHx+2C/SCuKXYFWj+AuE/zgVE16TmUOEp/KkKqXhGFmhY3skrd2j xnk7sopi3/EI0uoCq4yYhpI/IJ1qcquVZQEv56kTfunJArOKUNN2pe7Yd24PX5s2UCms 7rV7F2RYqu/zPQjSbNiuLD0xx3QIXy9cYZ/QLk8Q6cWSkm/TKaPU5v3aHPp07Wc2OF1o MWQn3k8hRsSw4XnNI6NkmV874jav2BCuDkdaNzYuLESDF5cadfGiTR2TBv09VcHyvTU3 ohFQ== X-Forwarded-Encrypted: i=2; AJvYcCVLO+OfVPLCsxGTnkRnbO29hPV7RLebbUP0qmW6OrwpDxzy1/G20QQv8//xlvMiKoH4RTRfUJM=@isar-build.org X-Gm-Message-State: AOJu0Yx3y2pgITfJqxceu0P0GZsTUGVVau/bK5qAvrQcKoOAJcHHmM7+ 63eTbdzzdrBYFnRO6l2d26WtgBbSZt14pBShHZMKznfotIIk3OTWs/1r X-Received: by 2002:a05:600c:474f:b0:477:7bca:8b34 with SMTP id 5b1f17b1804b1-486fedab2edmr165845285e9.6.1774263224502; Mon, 23 Mar 2026 03:53:44 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com; h="AV1CL+Fhvbdgo4sJOAiTRmt4PtpVSnbIXhnth4JNiEemjVTobA==" Received: by 2002:a05:600c:1d25:b0:485:3f21:7f96 with SMTP id 5b1f17b1804b1-486f927d9afls33496835e9.1.-pod-prod-07-eu; Mon, 23 Mar 2026 03:53:42 -0700 (PDT) X-Received: by 2002:a05:600c:47ca:b0:487:169:9f64 with SMTP id 5b1f17b1804b1-4870169a1eemr83754935e9.12.1774263222340; Mon, 23 Mar 2026 03:53:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1774263222; cv=none; d=google.com; s=arc-20240605; b=ACxNhE+Xe+cmNsWjliGVnbCXfXxrxw8GMmRYSYf6RJ0xcXzqj0vYZX2vuKl1H49m/P fdziAj6qf+ZCU7ELcocwBoXLPArYQmENIy3MNGecxC+L32V/w34AlP/ojQdSiGif3FCc cstHFhOmJAvlBfp84EPUfBicSEvAFd27roMgNjVsek7aR3HgsGExdJed9/ESOilu1GqI XVoEaw43SCxLBDQQLJso/60pAkN96oOrbbb2ZSxos8flJHA/rbr2THW17HF4JDQJxszn FjfHo0l3rW4f+B3pYkF79oMDJzs+CXG6t5TQ96Ai0+WF8AXFbZdSz50jv9Y/wLjai4qY s0lg== 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=3s2tMv+CkeeGW9vUFGjUq9un5XZBhC3iDm6YZLEfhok=; fh=7tclEdh7YbwSQowgJ6LNq720O7H5HTEaqj22NJWRE2E=; b=OmJjpMzfFNHede7PiTycGKblAce0UqC7ZFSTmuYL6J06Y17itihqSlxQmFKqIVGHFY 1gKDuIoNcu40MjVKFCvb1fO71dRkcN0rvtqfXetW8QgU61vc3Rcz8UeC+bia5qCCpKy8 YTAw1nACaMxZAzvGMzsb7ExLnkMvcOL1e/igwZgBMIfHMVwDuStGH++LY4ReO7BWn59l Q1z7USRwbyHmo9brepNLcNrf+3F1rP4spn7QpWzmm27h8Zg7ZUuA1hooeQts269tl4Ym aI69l83gM7wanqbcAHehX/5p6s0e8J+0u0JJluRvqvjx4gIrnolvruu3VFqOcCPnc/cC cTuw==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=Q9iZQuJJ; spf=pass (google.com: domain of fm-51332-202603231053417e59dd3c4d00020735-ktmqe3@rts-flowmailer.siemens.com designates 185.136.65.227 as permitted sender) smtp.mailfrom=fm-51332-202603231053417e59dd3c4d00020735-KtmQe3@rts-flowmailer.siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com Received: from mta-65-227.siemens.flowmailer.net (mta-65-227.siemens.flowmailer.net. [185.136.65.227]) by gmr-mx.google.com with ESMTPS id 5b1f17b1804b1-486f8aacd4dsi2580435e9.0.2026.03.23.03.53.42 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 23 Mar 2026 03:53:42 -0700 (PDT) Received-SPF: pass (google.com: domain of fm-51332-202603231053417e59dd3c4d00020735-ktmqe3@rts-flowmailer.siemens.com designates 185.136.65.227 as permitted sender) client-ip=185.136.65.227; Received: by mta-65-227.siemens.flowmailer.net with ESMTPSA id 202603231053417e59dd3c4d00020735 for ; Mon, 23 Mar 2026 11:53:41 +0100 X-Patchwork-Original-From: "'Quirin Gylstorff' via isar-users" From: Quirin Gylstorff To: isar-users@googlegroups.com Subject: [RFC PATCH 2/3] Add example of a rust hello world as isar recipe Date: Mon, 23 Mar 2026 11:52:29 +0100 Message-ID: <20260323105332.2721282-3-Quirin.Gylstorff@siemens.com> In-Reply-To: <20260323105332.2721282-1-Quirin.Gylstorff@siemens.com> References: <20260323105332.2721282-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=Q9iZQuJJ; spf=pass (google.com: domain of fm-51332-202603231053417e59dd3c4d00020735-ktmqe3@rts-flowmailer.siemens.com designates 185.136.65.227 as permitted sender) smtp.mailfrom=fm-51332-202603231053417e59dd3c4d00020735-KtmQe3@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..2d57b8c8 --- /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://${PN} \ + file://rules" + +DEBIAN_BUILD_DEPENDS += "dh-cargo" + +S = "${WORKDIR}/${PN}" + +do_prepare_build() { + deb_debianize + install -m 644 ${WORKDIR}/rules ${S}/debian/rules +} +