From patchwork Tue Jun 3 11:35:55 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Kanavin X-Patchwork-Id: 64163 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 32FB7C5B555 for ; Tue, 3 Jun 2025 11:36:08 +0000 (UTC) Received: from mail-wm1-f53.google.com (mail-wm1-f53.google.com [209.85.128.53]) by mx.groups.io with SMTP id smtpd.web10.8965.1748950566873218712 for ; Tue, 03 Jun 2025 04:36:07 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20230601 header.b=bN30gK7q; spf=pass (domain: gmail.com, ip: 209.85.128.53, mailfrom: alex.kanavin@gmail.com) Received: by mail-wm1-f53.google.com with SMTP id 5b1f17b1804b1-442ea341570so37906345e9.1 for ; Tue, 03 Jun 2025 04:36:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1748950565; x=1749555365; darn=lists.yoctoproject.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=KxvmG0uXJ33Tnc3vW3kleVS757GYyB4r0ST7PQhsCf8=; b=bN30gK7qwSMpSZGPe4kSgPwjiCSzKuYZBvaqliU0xfII4E3UanN8Pisr8KY9wv3Mnv inUWqbDswbZXubMxvG+gVvvEKfuU1ilL9NPEydDKACPtRna2M6cvvjZDzH2RA9uSmkMN tcOWwIiC9EPOv3UCng7g6VK4BveMjstszES+mPZxPMMGc4w90O/pk/e1Anj58QONLOLr cbNDVkNlQPtulNS7SlYTiVTLtWeKjN0/QkOlNf6z9fZ+PV1j87e5CAtZ9ZibikSOwFKi 9KWs9JKpgvPdg9ST8L50NpWl15kZWL8RfJiz1hOWZIfdl3WL4vpKcOHIVLGEMatqaqOi RYJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1748950565; x=1749555365; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=KxvmG0uXJ33Tnc3vW3kleVS757GYyB4r0ST7PQhsCf8=; b=n7npYXCOy0wN71dIhMRCNgwwvvPVKfA+OAmTG51y1kLBy31mH5aPmVstu4zNGEYdPD tCqqs9qTIz4jDPnEHo7fz0N0m8NJx/RX0de3EvY9t/mGRLgZY9w7o3MZN57ICrDjKB1k D7z5Hy4+DctGtlT9ZOOTEW3OeElvxQJjkkE0QXj7h1On45vZXe/OH02zJrUDgLGUh0IU UqcVC4PJR5koXX8GC8t6JHwFHMEVIx537MOI0rgUp4kxviXYWnW4Ygzx68kyKBCkyQBr GKQ3TBHOidli3PmfbaEfRuP9+AnVwJrYntuPSD1fFq+4rIbyyBfefidrzSyUdEP/iyJt 5/tA== X-Gm-Message-State: AOJu0YzfM05GY1YP82t3HFzua2Q5P97Two6zMnwXvg1jdUL1B35jBhK6 kpA8kM4zV2Mr53fvSbieUgq3l8QQBIO0igx3ST7pyQwI6/H5Y+raQbzoS0m1ZA== X-Gm-Gg: ASbGnctRLs0lcj0gFY2xLjoyjKFiLaW+QpDDpBFpmpMi4zvyT1sFMHogqcFbcurThrB iVgvkvkAiOVN5g7Atp3nJn+W4+TTNjSjdWHHw5357M6xl8k5erAwWX2/EHtt+lmfqruZjMlkOh9 Ixe3TLIYP3adY4f6LYqJfn6PjQ67eod3gWUXTbRSlxJGewchRA2qM6SOUPc0XkwXbstkJrG009p aI6gZn+nxk/fwG1ZzYFaLEf+t0B4TOohjV0O4vKvAXhXK9gM992aDBmY/X+kYi/1I2dH5i3U/vS vtxTFSf4tiY9ZCJhfWzZLwcJNv7uCkrkd87hR986iYc8iI20eFcKG7PabA/LLnMyGJRy+K2cHWd cgeW9MZmgEgIs X-Google-Smtp-Source: AGHT+IGk4U6kdl5kFF1wuHii1qZH5ynNxGBYahy91FrXXsD/zvLb3zzN/t9FURwkCj5mJGjeT7z5Gw== X-Received: by 2002:a05:6000:4312:b0:3a4:eb80:762d with SMTP id ffacd0b85a97d-3a4f89e248fmr12692383f8f.56.1748950564959; Tue, 03 Jun 2025 04:36:04 -0700 (PDT) Received: from Zen2.lab.linutronix.de. (drugstore.linutronix.de. [80.153.143.164]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-451e58c348asm16707585e9.3.2025.06.03.04.36.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Jun 2025 04:36:04 -0700 (PDT) From: Alexander Kanavin To: poky@lists.yoctoproject.org Cc: Alexander Kanavin Subject: [PATCH 1/4] meta/conf/templates: add a blank template Date: Tue, 3 Jun 2025 13:35:55 +0200 Message-Id: <20250603113558.3104618-1-alex.kanavin@gmail.com> X-Mailer: git-send-email 2.39.5 MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Tue, 03 Jun 2025 11:36:08 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/poky/message/13634 From: Alexander Kanavin The default oe-core/poky templates have a number of settings (such as distro and machine) and are thus unsuitable for building up configurations from fragments. This adds a template with an empty local.conf, so that it can be used as the starting point for fragment-driven configuration. There will also be a blank template in poky; the difference is that this one includes only oe-core and the poky one adds poky layers. Signed-off-by: Alexander Kanavin --- .../conf/templates/blank/bblayers.conf.sample | 10 ++++++++++ meta/conf/templates/blank/conf-notes.txt | 19 +++++++++++++++++++ meta/conf/templates/blank/conf-summary.txt | 1 + meta/conf/templates/blank/local.conf.sample | 10 ++++++++++ 4 files changed, 40 insertions(+) create mode 100644 meta/conf/templates/blank/bblayers.conf.sample create mode 100644 meta/conf/templates/blank/conf-notes.txt create mode 100644 meta/conf/templates/blank/conf-summary.txt create mode 100644 meta/conf/templates/blank/local.conf.sample diff --git a/meta/conf/templates/blank/bblayers.conf.sample b/meta/conf/templates/blank/bblayers.conf.sample new file mode 100644 index 00000000000..c985f4f2420 --- /dev/null +++ b/meta/conf/templates/blank/bblayers.conf.sample @@ -0,0 +1,10 @@ +# LAYER_CONF_VERSION is increased each time build/conf/bblayers.conf +# changes incompatibly +LCONF_VERSION = "7" + +BBPATH = "${TOPDIR}" +BBFILES ?= "" + +BBLAYERS ?= " \ + ##OEROOT##/meta \ + " diff --git a/meta/conf/templates/blank/conf-notes.txt b/meta/conf/templates/blank/conf-notes.txt new file mode 100644 index 00000000000..cfd1f1977bf --- /dev/null +++ b/meta/conf/templates/blank/conf-notes.txt @@ -0,0 +1,19 @@ + +### Shell environment set up for builds. ### + +You can now run 'bitbake ' + +Common targets are: + core-image-minimal + core-image-full-cmdline + core-image-sato + core-image-weston + meta-toolchain + meta-ide-support + +You can also run generated qemu images with a command like 'runqemu qemux86-64'. + +Other commonly useful commands are: + - 'devtool' and 'recipetool' handle common recipe tasks + - 'bitbake-layers' handles common layer tasks + - 'oe-pkgdata-util' handles common target package tasks diff --git a/meta/conf/templates/blank/conf-summary.txt b/meta/conf/templates/blank/conf-summary.txt new file mode 100644 index 00000000000..7528c297947 --- /dev/null +++ b/meta/conf/templates/blank/conf-summary.txt @@ -0,0 +1 @@ +This configuration is empty and is intended as a starting point for adding configuration fragments. diff --git a/meta/conf/templates/blank/local.conf.sample b/meta/conf/templates/blank/local.conf.sample new file mode 100644 index 00000000000..41eea8506df --- /dev/null +++ b/meta/conf/templates/blank/local.conf.sample @@ -0,0 +1,10 @@ +# +# This file is intended for local configuration tweaks. It is intentionally +# set up empty, so that configuration can be constructed from fragments +# using bitbake-config-build tool and by setting MACHINE and DISTRO here. +# +# If you would like to publish this file (for example as a bitbake +# configuration template), it is recommended to create fragments +# from changes made here; the only settings that can remain are +# MACHINE and DISTRO. +# From patchwork Tue Jun 3 11:35:56 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Kanavin X-Patchwork-Id: 64162 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 32F82C5AE59 for ; Tue, 3 Jun 2025 11:36:08 +0000 (UTC) Received: from mail-wm1-f43.google.com (mail-wm1-f43.google.com [209.85.128.43]) by mx.groups.io with SMTP id smtpd.web10.8966.1748950567487540794 for ; Tue, 03 Jun 2025 04:36:07 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Y0mi+Ges; spf=pass (domain: gmail.com, ip: 209.85.128.43, mailfrom: alex.kanavin@gmail.com) Received: by mail-wm1-f43.google.com with SMTP id 5b1f17b1804b1-450cb2ddd46so34770545e9.2 for ; Tue, 03 Jun 2025 04:36:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1748950566; x=1749555366; darn=lists.yoctoproject.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=AcnvmtLmZd9g3NpYml9dxv+NmVaZGtpKzcf9znh1jfw=; b=Y0mi+Ges9IcgVSUj/9a9nWN8Wt70VLaxSlFkphzT4bbhud7Zbw6J+CtcdDSVLMGQT9 fVjAFqps8eARQ3nuBhtq+cLA2+MybroZenoD0g3CZTK+vXbMi6CMwbDEN9clA87lig6n gRf3ENPoQ4D0tYt1g6p6y7cyvSIAIzO+1OFj0ORjRjytDGiTspAlMgI/xzOr1VWsG0U2 LrwSfXxuTZjaiGeVz/0q3A4UDbCYwyuFppLcey9D1GO5r1LpQJLL0IYW2rybwhmkOGJH /+fMUUIWWgDGIIeTNbkPRmGJGrqAlOIJsXhx+7677PUe7Z6/qMTHJdjZxBZZuIBQX6o7 LfNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1748950566; x=1749555366; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=AcnvmtLmZd9g3NpYml9dxv+NmVaZGtpKzcf9znh1jfw=; b=FfjqpRQ1d2wwTE1XJWRGhY8u3+wLyUvqPrQecEGb1D+Z217662yjZf+gXkX7URzI8v maA9RmJ3Gdio57qClu6EC7457ZBrMOORg+1TfW7ekxplkt9XmRNY0i1ZuwFOt/HIdIGY VFh6QcjO5PQECCC2fcTzomvwgEE5QBZqdYlOdjglJK96k+BDZvWpLc4MNbGe7xQO/0ye Q+ultVZjFmvI/aIkR2r2QcLMkYwuhl/ew+yH+aWgRHY5c6JrhVSTxovxD+2AVkQ/80PW 3skUiKCTACn3JHIfyha0rmaTnpzqVRgDfNdj3ckhXKUI4PFKtfFhTTcGrfi75a9rEL+r ZVCA== X-Gm-Message-State: AOJu0YzEJ16rU1i+6RCJ7TPs4fr/wuBQ/70TcJ4zmo2Gk2GcoywacS3D lm7JJOC5vjIbc8di7sFlyMOzumVii7Lnk7MjNG/wNeqXhnoJEqW22v7J/Rsk4g== X-Gm-Gg: ASbGncvbW+DdfQuYcQTJnmhiprrM3IGvzlpmzeTmrCQ/Yn8150Mc3aN2GWQIfZKpaEN 242QuBPj+gTNUjg0YNr0R+8SEFDa6FsOaEYjkwDONurbPbR+cqX4+9D6jB/DV/DHmperzzC1FFg BpllrtHbOcI7xhRxjXgR4hKlAEXbyWLA2bhU3hGkjLndvw8STc3aFKRvkuz8zMOSB1a58iHCASU ytMRA8Ppa2yO6Zy8VkHsqJ0QDCgbnvCxRw4PMNziBw6DwmD4eRIq3++AvjlwyBLXVN3uMMtSAzv meSoQ7tGSSxw2axJYrgRRjl1GUpGoEocF1z/f/j8OtpyXlIc8dDFqR7FGdvFADZc1yeyDd1Wsdj UJl5n0Zlw8xyW X-Google-Smtp-Source: AGHT+IGMqk0UhzKLByoNbgkDdwJSsz95q9EQWVSF6UicTJ/aZU8CRHicAWTJBXA1eSVVrjqXpxm+NQ== X-Received: by 2002:a05:600c:a342:b0:43d:5ec:b2f4 with SMTP id 5b1f17b1804b1-450d64d638emr174030385e9.10.1748950565647; Tue, 03 Jun 2025 04:36:05 -0700 (PDT) Received: from Zen2.lab.linutronix.de. (drugstore.linutronix.de. [80.153.143.164]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-451e58c348asm16707585e9.3.2025.06.03.04.36.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Jun 2025 04:36:05 -0700 (PDT) From: Alexander Kanavin To: poky@lists.yoctoproject.org Cc: Alexander Kanavin Subject: [PATCH 2/4] conf/fragments: add fragments for qemux86-64 and qemuarm64 Date: Tue, 3 Jun 2025 13:35:56 +0200 Message-Id: <20250603113558.3104618-2-alex.kanavin@gmail.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250603113558.3104618-1-alex.kanavin@gmail.com> References: <20250603113558.3104618-1-alex.kanavin@gmail.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Tue, 03 Jun 2025 11:36:08 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/poky/message/13635 From: Alexander Kanavin These will be used by official bitbake-setup configurations, and so let's start with them :) Plenty more fragments can be added over time. Signed-off-by: Alexander Kanavin --- meta/conf/fragments/machines/qemuarm64.conf | 5 +++++ meta/conf/fragments/machines/qemux86-64.conf | 5 +++++ 2 files changed, 10 insertions(+) create mode 100644 meta/conf/fragments/machines/qemuarm64.conf create mode 100644 meta/conf/fragments/machines/qemux86-64.conf diff --git a/meta/conf/fragments/machines/qemuarm64.conf b/meta/conf/fragments/machines/qemuarm64.conf new file mode 100644 index 00000000000..0fc164541d5 --- /dev/null +++ b/meta/conf/fragments/machines/qemuarm64.conf @@ -0,0 +1,5 @@ +BB_CONF_FRAGMENT_SUMMARY = "Use qemuarm64 as a target MACHINE, suitable for running in QEMU system emulator." +BB_CONF_FRAGMENT_DESCRIPTION = "Select qemuarm64 as the target machine. This is the best option for running the target system inside QEMU emulator on arm64 build hosts, \ +as it allows near-native performance with kvm acceleration. Also useful for testing arm64 specific assembly code or compiler output." + +MACHINE ?= "qemuarm64" diff --git a/meta/conf/fragments/machines/qemux86-64.conf b/meta/conf/fragments/machines/qemux86-64.conf new file mode 100644 index 00000000000..0fce37c4e2e --- /dev/null +++ b/meta/conf/fragments/machines/qemux86-64.conf @@ -0,0 +1,5 @@ +BB_CONF_FRAGMENT_SUMMARY = "Use qemux86-64 as a target MACHINE, suitable for running in QEMU system emulator." +BB_CONF_FRAGMENT_DESCRIPTION = "Select qemux86-64 as the target machine. This is the best option for running the target system inside QEMU emulator on x86-64 build hosts, \ +as it allows near-native performance with kvm acceleration. Also useful for testing x86-64 specific assembly code or compiler output." + +MACHINE ?= "qemux86-64" From patchwork Tue Jun 3 11:35:57 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Kanavin X-Patchwork-Id: 64164 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3393AC5AE59 for ; Tue, 3 Jun 2025 11:36:18 +0000 (UTC) Received: from mail-wm1-f54.google.com (mail-wm1-f54.google.com [209.85.128.54]) by mx.groups.io with SMTP id smtpd.web11.9051.1748950568387619565 for ; Tue, 03 Jun 2025 04:36:08 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20230601 header.b=LGy/GW9x; spf=pass (domain: gmail.com, ip: 209.85.128.54, mailfrom: alex.kanavin@gmail.com) Received: by mail-wm1-f54.google.com with SMTP id 5b1f17b1804b1-451ebd3d149so2741865e9.2 for ; Tue, 03 Jun 2025 04:36:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1748950567; x=1749555367; darn=lists.yoctoproject.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=xsEackaOHg3TS1D8iTwOHTNi0cq3brSePmqidvRoAkQ=; b=LGy/GW9xQYZtXRMJbt0yV+ZtwhsQc3CrCEmVa84f7ATGsRz7Z6NVG+xUpBuMAhriV5 te0wiKJSOlhEHIOxMhf8/4oSupsdJws3GrH79F/sdlyeaEbRhpPhDxIuKFDsE2tJF6c4 6avvf+h5XtdIkYnopgZOGhRmQV+hAK3MF5ldNjtXl/6+wCOcazl1n8zqlu+hhlrj2QrA SdsnOnBV9OLETLqhTxVhYwMJ/RXZbifLhdyYdipKOjvPAgxm3HEeaXIT8QxzMkcENrTy 6uNTWDkYfmazquKiOQ1cSK0iaxRcaPMNV5jYzJAhT/vhde/LdO3WTMwKlefCaHG6Hz1p TBsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1748950567; x=1749555367; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=xsEackaOHg3TS1D8iTwOHTNi0cq3brSePmqidvRoAkQ=; b=rN4vrfFtYwaJPqsgHunjuVfwV0zSMABAKmFNT1oHN4OcTlOIT2ufxhmMpCq3FUwddy WcdxdVLQiK4MN8Mu2ApAQ5r72eYD601VISRSxb7l6gDt4Sj/87ufMyz/7vuydCBQEJs0 W6lT0B2T5KnwTC07B4MSQzHmJqYNAQxiL7Gu5IBerBZcfAzONJhPE3GWpgLcUxcKcWpy qkF8LJavWNu0+fC/xnBsk+fPzM0ebUXc8jfmz8GjKFaJMmAGSvPKc4F1laIL9opNcerI Zs8O8gsXQoeCpPducSQWB2glxr5/dU7gjps0Q6MrZVaPziQiRhuHfy0f4nV9en5Tv4cP qesQ== X-Gm-Message-State: AOJu0YzaPIWWVFnX7BSaBDMllXSa40BfOOleMJWTDeHCXLnYDdypFEbr aUm34xmK8Hfw8gQqg2msP1UjttWDKoHB02U8cH4fZ1GhQabkNY25khDXYhNFsA== X-Gm-Gg: ASbGncuXTR/+ZLhIkvJH62IBsXcTKXkWi+MslZ2O4macuo5UaHFXajXHiKfPzC99AK2 pakTeKn1rVXpsI9fWbA36o3BvAPacBCQhMzdpf/aux2VDMeYzG/libEethrlpFTMQwSgOGjbqgv 861LG8Kzorx46nq7a0IdvvqWKmMWUfwThBZ0PlTv1F4+8UzPACKTDIuGJ2stmJCgN1OXxx/NNcJ 9YydPW97LzwvP19OGtw8AoMVYNT7GgHepT07qMR8O2LWr04AC/kVXLO94BITtN0ypq5V5hLpg+1 G4aQzS13drthM/gnS6BlxgnUY6Z1ZmHZ+Y82gfysr8wZcG0EuWCV5FdUeFUlzMzxqFSl0FRLFUz UA0C1W5Xq9bho X-Google-Smtp-Source: AGHT+IHp0RddAjXSaHG0fykcITaytUUjTewiCplsZ3pWkjZQe+x5QFqJv1lCYIwrDgc8CWNffiwyXw== X-Received: by 2002:a05:600c:3544:b0:43c:f050:fed3 with SMTP id 5b1f17b1804b1-4511ec9eb53mr107312945e9.11.1748950566435; Tue, 03 Jun 2025 04:36:06 -0700 (PDT) Received: from Zen2.lab.linutronix.de. (drugstore.linutronix.de. [80.153.143.164]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-451e58c348asm16707585e9.3.2025.06.03.04.36.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Jun 2025 04:36:06 -0700 (PDT) From: Alexander Kanavin To: poky@lists.yoctoproject.org Cc: Alexander Kanavin Subject: [PATCH 3/4] conf/fragments: add a fragment for CDN sstate mirror Date: Tue, 3 Jun 2025 13:35:57 +0200 Message-Id: <20250603113558.3104618-3-alex.kanavin@gmail.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250603113558.3104618-1-alex.kanavin@gmail.com> References: <20250603113558.3104618-1-alex.kanavin@gmail.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Tue, 03 Jun 2025 11:36:18 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/poky/message/13636 From: Alexander Kanavin This will be used in bitbake-setup official configurations and it will be awesome. Signed-off-by: Alexander Kanavin --- meta/conf/fragments/yocto/sstate-mirror-cdn.conf | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 meta/conf/fragments/yocto/sstate-mirror-cdn.conf diff --git a/meta/conf/fragments/yocto/sstate-mirror-cdn.conf b/meta/conf/fragments/yocto/sstate-mirror-cdn.conf new file mode 100644 index 00000000000..e204975ce3b --- /dev/null +++ b/meta/conf/fragments/yocto/sstate-mirror-cdn.conf @@ -0,0 +1,12 @@ +BB_CONF_FRAGMENT_SUMMARY = "Use prebuilt sstate artifacts for standard Yocto build configurations." +BB_CONF_FRAGMENT_DESCRIPTION = "The Yocto Project has prebuilt artefacts available for standard build configurations. \ +This fragment enables their use. This will mean the build will query the \ +the network to check for artefacts at the start of builds, which does slow it down \ +initially but it will then speed up the builds by not having to build things if they are \ +present in the cache. It assumes you can download something faster than you can build it \ +which will depend on your network. \ +Note: For this to work you also need hash-equivalence passthrough to the matching server \ +" + +BB_HASHSERVE_UPSTREAM = 'wss://hashserv.yoctoproject.org/ws' +SSTATE_MIRRORS ?= "file://.* http://sstate.yoctoproject.org/all/PATH;downloadfilename=PATH" From patchwork Tue Jun 3 11:35:58 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Kanavin X-Patchwork-Id: 64165 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 33973C5B555 for ; Tue, 3 Jun 2025 11:36:18 +0000 (UTC) Received: from mail-wr1-f43.google.com (mail-wr1-f43.google.com [209.85.221.43]) by mx.groups.io with SMTP id smtpd.web11.9052.1748950568784874919 for ; Tue, 03 Jun 2025 04:36:09 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20230601 header.b=kJZ3EOWd; spf=pass (domain: gmail.com, ip: 209.85.221.43, mailfrom: alex.kanavin@gmail.com) Received: by mail-wr1-f43.google.com with SMTP id ffacd0b85a97d-3a375888297so3275808f8f.1 for ; Tue, 03 Jun 2025 04:36:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1748950567; x=1749555367; darn=lists.yoctoproject.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=YPjn1yBQngbKyZLG/HZHAA5F+o2WTF0DrG1stIS6Fjs=; b=kJZ3EOWdx9tm+RcztMgrWcFGnLrErmq+9ckmRmWDEHApHgYse7onzi4dyFE7IqqVl1 IPt0aVrv2I7xUeUElWSAH+OcSn/t+ef/9KGpIx4wmjZ9dKYWhhFHaLoluUSRiIqwMurk xF3alciNeOhG3BO1y1ylYDPsf8lw6qmBPdkh7vZo5rulZLEvbaYkrDGAR+tSk8WMdW+X EPBvI/1HdGqttE9C5zpvV48GeLNn2krUKzHmhGrks6CtCD/iwrjUj4Hpk99DcNAJ4kzq nTpgrcRXYhNQuUq/moRkuNLM64IZwK+fpdwRi+AVPjZwewGSzjAgRtH0fGivpXdzf2QN eI+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1748950567; x=1749555367; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=YPjn1yBQngbKyZLG/HZHAA5F+o2WTF0DrG1stIS6Fjs=; b=wga68EJe0oP6MnXndPjU63i/n6uJnc4DHgfFZb9/dfo/XbdcgoKgFtAXyx64+oNb6s VFRKD/eTLFSa+2ky98KSMbgorX9bjdXtT62oz/ekyNc5zS2//2ZLVnoYSvenFVL8a9kO U89+tmrE9ZQKgA8rc0/1GD37n4r2vfTSAtsXsIpbXCAHCfY9m5Oy3prOYeV0hsNcDwoQ DclFYh+tj6Bamx6LfVdCi2AQQi0/gFJ7zHKXp0dZpSqNpwgGwIg4l4XZGN0bbCyXPhgp 7uXVfmBBWbFt0uqTYixz+lkP13b6Xhul0vW5+rZ02GBZTIJ4nih5hAWB2rzyGdAc7K8Z 1LKg== X-Gm-Message-State: AOJu0YyEcmqNRfDRTfGESRaCj5XyNAYh+S+dKOOr6EUgq4WJWwy2YD91 rY/YWVrIth0TbfUA/dmZLAmPlTh+Pm5W33KCCg9htJGrrjiHMnzf7WMC8sac1w== X-Gm-Gg: ASbGncswebHJhjJ5+fNonM6VKluMVksGxZW+z2+/LpwoYv7fB6U5GWoSE4CitrWdBP1 mtwAXxdC1G3hqfhizMVWHp8Pks3/Pkxj3TJvF0VmyOPaTJc8IaB13wTx6lfi1MnVvcHl0MM1vY2 l0Tm2wtNzkxrrAUNJzUQ+cpUnUkO37xRZ5LXqrzstHOwSDRaB4wrDOMsHhtik1XO4DtE6MvyPjo nHg9FXqKybpTfQ2h0ls8aMwWre7dBxJWvLhrQEULTmagP7aHm0sRNmQZnw0MBcqvBO0y0Nh8oRP b24tSHUcCE1k8PsA20hA2B0GLor2lRVylwXSlgMPPnrz+YD6HaEFIIZP2R2vesG/GnOL1XawwoD kfe+KHg9octlP X-Google-Smtp-Source: AGHT+IFjbExACJpb9Ssne15MDwBdKa/uwr8yPu7fw0lkZ+iJqI9u5q5q+f2KEv4ZP64jpJIJVn6a2w== X-Received: by 2002:a05:6000:420f:b0:3a4:d915:d652 with SMTP id ffacd0b85a97d-3a5141d0a12mr1587344f8f.29.1748950567045; Tue, 03 Jun 2025 04:36:07 -0700 (PDT) Received: from Zen2.lab.linutronix.de. (drugstore.linutronix.de. [80.153.143.164]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-451e58c348asm16707585e9.3.2025.06.03.04.36.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Jun 2025 04:36:06 -0700 (PDT) From: Alexander Kanavin To: poky@lists.yoctoproject.org Cc: Alexander Kanavin Subject: [PATCH 4/4] fragments/qemu: add support for enabling sdl in qemu Date: Tue, 3 Jun 2025 13:35:58 +0200 Message-Id: <20250603113558.3104618-4-alex.kanavin@gmail.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250603113558.3104618-1-alex.kanavin@gmail.com> References: <20250603113558.3104618-1-alex.kanavin@gmail.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Tue, 03 Jun 2025 11:36:18 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/poky/message/13637 From: Alexander Kanavin This has been the default in poky's local.conf template for a long time, but it's not enabled directly in poky distro. To allow better sstate reuse and a better user experience on a typical laptop (qemu will pop up a graphical window directly), let's add this fragment and enable it in official bitbake-setup configurations. Signed-off-by: Alexander Kanavin --- meta/conf/fragments/qemu/enable-native-sdl.conf | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 meta/conf/fragments/qemu/enable-native-sdl.conf diff --git a/meta/conf/fragments/qemu/enable-native-sdl.conf b/meta/conf/fragments/qemu/enable-native-sdl.conf new file mode 100644 index 00000000000..21c1298171e --- /dev/null +++ b/meta/conf/fragments/qemu/enable-native-sdl.conf @@ -0,0 +1,8 @@ +BB_CONF_FRAGMENT_SUMMARY = "Enable SDL support for direct graphical output on the build host." +BB_CONF_FRAGMENT_DESCRIPTION = "By default qemu is built with a internal VNC server \ +support. To see graphical output from the guest system, one can use a VNC client to \ +connect to it. This fragment enables Simple Directmedia Layer support, which allows \ +seeing the graphical output from guest directly in a X/Wayland session on the build host machine. \ +" + +PACKAGECONFIG:append:pn-qemu-system-native = " sdl"