From patchwork Tue Feb 25 12:08:33 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Kanavin X-Patchwork-Id: 57797 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 11E03C021BC for ; Tue, 25 Feb 2025 12:08:51 +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.web11.6596.1740485329630006026 for ; Tue, 25 Feb 2025 04:08:49 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20230601 header.b=dEJFe8sr; 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-4397e5d5d99so34184945e9.1 for ; Tue, 25 Feb 2025 04:08:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1740485328; x=1741090128; darn=lists.openembedded.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=dEJFe8srYJ+TgMh9oBuFBHpK+/OiYSt4yMV5GtqDaF7pyLAlvM+3bSJFHA2+CwhKoM +MlvHlR0CY6icVDsoBS1BfeenmOqbDZQPjF+xx++Apqn/gNNOxd7ucho1hAIBh9z7EBF jG4eArvMJ9oy/8YQBh2u7j/Ziibs957TXMmTHKaaHKkRv40+Y7ZcRUapVDdXqrWHNrMo npTLLX/Va8jA3G5tXJOtA7gkhzhGzTnk0FZz4JdJ39QObKb5K+haNY45K5eFqmrPGuMU AK21YpKhrKAAT4Y14R980VixIOcRi/2ijD9tuntym3sVdCB0QKp5RTO3p5ou4m25Gv6C 0EXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740485328; x=1741090128; 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=QEbUYTW7fhnwseyCZu+QFd49YDk2yHh5e9w4H2hkT2fCSvrOfBf1ay6t1uwYhSS4iv hGkm8HaC2xGJdivaaX5B+Fdbz6SADDGdKK2af37MK3bTa1UMyag7XDB98SXTy4FlvsQn tOyMS70eDa4+k/nBBREinl/LhjNGD8bAHVw/ZoemeZkZyeyO/gv8TQal/eRadmuDlop4 FFCTlgJMjm3jdV3HR9WCdyxpDhzBFTRrBhRecsz2sUWC9dTnG+XkzW9YZEqC05j20Xf5 ywSQ9SWntU5724WaGMOLuFVpx0u4glbcj3TBcAE+FkdFBysBO3/RMUGbgACNccU9OdiX bauw== X-Gm-Message-State: AOJu0YzbH+kG9C5uV4jKaa+8HmAme4QF4fbeyLi5wBYhMTbG5YbA1A3i H++rJ6gy2YosP2qcCq88P5SlDHeC9W4lbiqbTy0l5p7yLdDXGg8+vKnCHA== X-Gm-Gg: ASbGncvio+Vpz4GJtBRxKtl+q/3tHvL40bY20pdWqN7J9oE+ns+7GJPZhkfbGUB+DDZ 2Zh3OcPoN/HQ++TvU2ZW1YS2ZKRO1UKZHanE8gi4AjicvUvh6q4Xs3xz0rtjXm38iSvX6ILKvNu OcYoe5XXiJJbgeKtfYTVnw7RTm26+zWQG39ILDU86y6COjVUDd9hzT4tyHp0oPGJxdOBQKlAyRc sRn2j6WcWdkqhQCB4G4PwKAZflgmnIAY+efmH1cfrVRMwvMo/Z4doqah5WYbx8pxKG8ajwMK5E3 CMYgKXkdg2S5+Z7s/m3jBsZM5eBp3ZZk4lobes+t+LMq2ydT0Va/iA9iHrOdrYI= X-Google-Smtp-Source: AGHT+IFeA9ze3jsadwAV9iVdkxwoQmbRegJGJtgnQLD0fYcLIZjXLD4ZJKamkGcFS1umVZA9NRrx+w== X-Received: by 2002:adf:fdc9:0:b0:38d:dd8c:51a1 with SMTP id ffacd0b85a97d-390cc60ce42mr2251616f8f.27.1740485327611; Tue, 25 Feb 2025 04:08:47 -0800 (PST) Received: from Zen2.lab.linutronix.de. (drugstore.linutronix.de. [80.153.143.164]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-390cd8fc31fsm2018305f8f.87.2025.02.25.04.08.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Feb 2025 04:08:47 -0800 (PST) From: Alexander Kanavin To: openembedded-core@lists.openembedded.org Cc: Alexander Kanavin Subject: [PATCH 1/4] meta/conf/templates: add a blank template Date: Tue, 25 Feb 2025 13:08:33 +0100 Message-Id: <20250225120836.171976-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, 25 Feb 2025 12:08:51 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/211873 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 Feb 25 12:08:34 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Kanavin X-Patchwork-Id: 57799 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 193EBC021B2 for ; Tue, 25 Feb 2025 12:08:51 +0000 (UTC) Received: from mail-wr1-f48.google.com (mail-wr1-f48.google.com [209.85.221.48]) by mx.groups.io with SMTP id smtpd.web10.6495.1740485330013557915 for ; Tue, 25 Feb 2025 04:08:50 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20230601 header.b=ldBd7Wvp; spf=pass (domain: gmail.com, ip: 209.85.221.48, mailfrom: alex.kanavin@gmail.com) Received: by mail-wr1-f48.google.com with SMTP id ffacd0b85a97d-38a8b17d7a7so3084593f8f.2 for ; Tue, 25 Feb 2025 04:08:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1740485328; x=1741090128; darn=lists.openembedded.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=ldBd7WvpbcC+SrVhE77dhqqpVXXtujIfPyCtY2qNm82Yp9s4GBKX7swj9P0JDXkdvc VL1mF5M4gs7NT9E+ZH2mfBjeVChoY5JxZbmboh/lCyx7WfqxaWdUc5F8q0KXsOilbFiB 79XlFIYq+pOkKNQoavlVsRQkf1MFu0SedTySnHMbYFXfqnMcJWmsifQd7c1oCUOvpx3C Ex4JVV7DTv485Yq6PpkuOLfMF0MTC6H7nAtLVAQe21qCCzYLxoajgggv4adGabABJkYE rXq+dc/8h6whnfgCXriIzNUQwd6ypeLSG5HdmZ7WSl64ZlZeKv6dMxZSNMnqhhiXk/ZU 9UPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740485328; x=1741090128; 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=qC39kSpjfHcpAL0iaxAJ4KRHx6ibgNfERXJt2LtHpyrXnTHrzTtiLqlrt8yT1rNbnQ BiMV5RmwRI0tDoxNCtDbiMHmJIzIsuKzzMtr8raNMN6kCY8nL9Sfvqu8eRY+3NwfOmKh q/qUc0aEnvFxbdEHSJb6DPUWVMrwKiqjmYMq3THv2mwpjp3zKEuHh3TOiuFJm/alO1tj 468lrpyxcUraBGPnyp78/5F5+gdyensKFxTWHh9/X+Bdzzyb1zL9ejS0/ailIYY6n3NG +8VNWPRtbYV2VdyRFtpxBNEYIZXcY6p8TG1j/ODkuwiacd7cBuE0UfAeb0//O2H5cUTV xRTg== X-Gm-Message-State: AOJu0YyfoWc10kZd4ipNQ4lT/CjJKFvz0tGgxdujncfkqmzrw2TQ1VzP awU8kp2zdEWnNkAlxc+DXIf48hXsxIlbTF388ZyGar7TQocMgc1fuTBEpw== X-Gm-Gg: ASbGnctnbLZgVtAOmjFqmDyOhCrIVDJc+Ab9UMXmp24xHaUtNqBt1ygtIRrHIqTPWet SbbbyI+Rqjn4XeUxp6GL+82f2mSxFrrdmZAhb1ZMgnN1xhGzpa05qTga8MFBg7NJj6FiF8GXT4X ObljWCuC64YBJPZyZJlNOWZ/+MMexNBwvULqfmetAjKgBFJBhOKXrbx3QTuwbMuHpwIiCmyzIlS Pu2aPxn+jKtjGv5khuQGK4hbMgHJ11BunokKaTR4Jt3DZJeQd2sz3SAfxmdyMTt7F8+9rGoA4j+ 8axX6ccTeaQYhVhohKET/KLOsRfimEib6yhFNcFScjnBRzAjHvzjZ3iDlhzp5h0= X-Google-Smtp-Source: AGHT+IG56dblT/m4CDQn3js/47FtyJktduV3LlTR85kF5QbhPIZOq8TvZjJcmr3qzqHr3Ldmm5MRYw== X-Received: by 2002:a05:6000:4014:b0:38f:452f:9fa9 with SMTP id ffacd0b85a97d-38f7d1ff2b0mr8998368f8f.2.1740485328274; Tue, 25 Feb 2025 04:08:48 -0800 (PST) Received: from Zen2.lab.linutronix.de. (drugstore.linutronix.de. [80.153.143.164]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-390cd8fc31fsm2018305f8f.87.2025.02.25.04.08.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Feb 2025 04:08:47 -0800 (PST) From: Alexander Kanavin To: openembedded-core@lists.openembedded.org Cc: Alexander Kanavin Subject: [PATCH 2/4] conf/fragments: add fragments for qemux86-64 and qemuarm64 Date: Tue, 25 Feb 2025 13:08:34 +0100 Message-Id: <20250225120836.171976-2-alex.kanavin@gmail.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250225120836.171976-1-alex.kanavin@gmail.com> References: <20250225120836.171976-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, 25 Feb 2025 12:08:51 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/211874 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 Feb 25 12:08:35 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Kanavin X-Patchwork-Id: 57798 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 11DC0C021BB for ; Tue, 25 Feb 2025 12:08:51 +0000 (UTC) Received: from mail-wr1-f44.google.com (mail-wr1-f44.google.com [209.85.221.44]) by mx.groups.io with SMTP id smtpd.web11.6597.1740485330642755224 for ; Tue, 25 Feb 2025 04:08:50 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20230601 header.b=FHTEWOx7; spf=pass (domain: gmail.com, ip: 209.85.221.44, mailfrom: alex.kanavin@gmail.com) Received: by mail-wr1-f44.google.com with SMTP id ffacd0b85a97d-38f325ddbc2so3996722f8f.1 for ; Tue, 25 Feb 2025 04:08:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1740485329; x=1741090129; darn=lists.openembedded.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=YvO9GBsC0s1KvQBbgcL2kfaT8gYZfD4v0wRUOHbr0/0=; b=FHTEWOx7QigJ+S5RFY0HLc3D3nh4JITZHEJi4e0697JOmjEXXVeBXWsX9eiBoDFTLG SBLAEKIf47MDCBzengYKDFwJTN1z+jHTAaAqx7vNXW3zuftwlHVCBYWvCnb8Mvr5LeVE 1Cb7KUYPlGPHRLumdpYROOwPw6Xhco7sbjs8oH41DK4U0ubL7jEnn/avAtqUTZyZKFFx vUDKieLcYOH/jCPVdRB9M8l7PMSKSPdHDZaxmaTPMrlaDSrEBlOUUdugrm/h8bFPA9JJ LRwZOh3yVywnqmgk8iCELAiF25Pu6QG7XC41Ojtb5RSOoYXvVEk3JIkbiVABtmpgST49 cz5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740485329; x=1741090129; 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=YvO9GBsC0s1KvQBbgcL2kfaT8gYZfD4v0wRUOHbr0/0=; b=Vqv6mLqFB/sVVShXMwGl3IE2PZh4eTBSdyf1K+MIk8fdEiinIe5ihPt2eTgSUeq4jX tasx/Mtzik1dtsWFhWy0CtO4NPaBHOzkVUvyRTyM9MVDH+qHcxcJUyULdrPPyw4JqNPM abYFK6ITsQnzYJiCdxczX5317SCF71u3aCkMg/Q1MvFFtIOD29y+OXZMOG7U7MRn/q0+ hIcqKZa0QrWpZSdkvwCR7eN0mqdxkrxdOWIwnPFm4yWOHmhi6JQ377Kvy0drwsjI/El4 +5FRlmMyvUTBm3w4Q6oRbB4iCtQdNYQ9RVcJ14kcgC14pEKASIhJWSyOpwOV+Pq0uiP2 OlTA== X-Gm-Message-State: AOJu0YyS3vUjvuqh06/PncZ5o5s60rWfiHfsuVvPTVZhi5Fz6+aNsWeE W3ON7MR5sswvyqkzdCD381pRVyK+eYGgD2zc7vFnX1aT/dJqGmWat0+2rw== X-Gm-Gg: ASbGncsDgNCyWX1qcMW2UmsdNYDbhwrzeBVssX4H4PLnzQKz3znHSOw/+2Oy9BOKJfY tzj9l4flTmqILwVySdjwFH+9lInLb5BcldBzIF1LjrGK6yvOZY7XSUNkMXvnCGofcZXtMioWrSU 97uROBK2p5gEMEBodDUB7wopZSaDFmEf1PYqNkSw5HsHFMXP3Rqb2TD5yhFC2rMGPS8VUYP/vgy 2G7bG+xHiglrkGew2wtfT404bv3z6IEk3NdgFJkjfmbhVCCdwd0gMzP3yy7lF8/4xTon1shhae5 uzw4q8NXuJO8A48TnMiO3LCYO4ZT+wdsFoNG6/jAgx3YcDgZ3cUWAEeaQe5MmU4= X-Google-Smtp-Source: AGHT+IHPz6rJy85ulZgWflxm+Gyq4Spw8KMkJROqftYLaDdrcjz7mM/wRqRb8SWFUN51Gu1Ky2c03Q== X-Received: by 2002:a05:6000:1541:b0:38d:e48b:1783 with SMTP id ffacd0b85a97d-38f70825febmr13633546f8f.42.1740485328887; Tue, 25 Feb 2025 04:08:48 -0800 (PST) Received: from Zen2.lab.linutronix.de. (drugstore.linutronix.de. [80.153.143.164]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-390cd8fc31fsm2018305f8f.87.2025.02.25.04.08.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Feb 2025 04:08:48 -0800 (PST) From: Alexander Kanavin To: openembedded-core@lists.openembedded.org Cc: Alexander Kanavin Subject: [PATCH 3/4] conf/fragments: add a fragment for CDN sstate mirror Date: Tue, 25 Feb 2025 13:08:35 +0100 Message-Id: <20250225120836.171976-3-alex.kanavin@gmail.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250225120836.171976-1-alex.kanavin@gmail.com> References: <20250225120836.171976-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, 25 Feb 2025 12:08:51 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/211875 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..8c00d739b36 --- /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://cdn.jsdelivr.net/yocto/sstate/all/PATH;downloadfilename=PATH" From patchwork Tue Feb 25 12:08:36 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Kanavin X-Patchwork-Id: 57800 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 18E16C021BC for ; Tue, 25 Feb 2025 12:09:01 +0000 (UTC) Received: from mail-wr1-f47.google.com (mail-wr1-f47.google.com [209.85.221.47]) by mx.groups.io with SMTP id smtpd.web10.6496.1740485331215286198 for ; Tue, 25 Feb 2025 04:08:51 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Eac0AtiH; spf=pass (domain: gmail.com, ip: 209.85.221.47, mailfrom: alex.kanavin@gmail.com) Received: by mail-wr1-f47.google.com with SMTP id ffacd0b85a97d-38f406e9f80so5063245f8f.2 for ; Tue, 25 Feb 2025 04:08:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1740485329; x=1741090129; darn=lists.openembedded.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=Eac0AtiHunm4u3Y4XQACt/nhxEo88zJvCfj6eNqbdUQ3cDIHaQUFQ8XKO27cGwz30s CpF6ojlyfr5iHNLPlvHXv+o5A1DO/6UwKOa5t5Fhq23G27gTzCPcuf8WgLGzlguHtJzR RTXboinjsjT5uH8EOu7YDvaxlg6A1WNsAjl9+Ya6lod1Rc+JNO5j8VGoiyHbVi4yS/w0 oiBX9L1jorSHC6tIbSbX5aKqRE2e4Euyl5lB6b1JXBTJ/Mkm2Il5I9Q8Ewc6VOWSB1LO VDSZbVkqyAG1SU0HiWtj6egdvam+GXk6KPCvuAXV5zjPRKo/gOaAvb+yjvUIzf+ta9Wz jDcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740485329; x=1741090129; 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=RS68f80V0MqksphC6ahPMS7Qlk07gKHXJTdaMHVxl43NcyWzgUVDgD9dg4vvP+3OqQ WamS20JP/nOrdyhc256vhDo2Nxp/MfF6PkbpdJ/btKcSCg2AOmxecjkxmINk1vwlzh0p lTYYcorFdKcFCo6isTkUsVp9i8Wi+fLA9CAMSIyx0DwlCpAS1Ygn2NOmxsQ3yg1tKVbJ IowoSr5/sg3MPS+WFULQXJPmi4c1UrB2S8gBgJ+EbPWmcm2xH+K9obEIv9arR270SaFY 4NNx/xU5tBRf4hY9BNvz42pQThEPy7nBomm50OIKFvZ87FEu771aSrwE1rJds9Bfc3mo aT7Q== X-Gm-Message-State: AOJu0YzOPkD61BIr7v35O0QYwYRobUz+hxpOQduvnbWi11BPw+h5B1zx iXzrC/Qjj/Cw5KytG4XKACWAARJu3Y6U030APbcwLcbrYr+1QtEXGLbwRQ== X-Gm-Gg: ASbGnctwyZfzrXoSbp5kYZSATw25Y9NswCiH4jS4lRrXti+QxD30n0GtI/oMlWHgj6Y 784/bZFsz7Aek8KkT7OS/+H0GPkDYZDeKBUB1dFsQOIEHT01rZ+sKOPVM3phKVYGj5XNyeyvmZC 3H13XflAKm1wC7Y5pTQyztwN1lRvWVxhAPqteoQDnNstkV62hk9aHG2uWwi0Nnn6W/AZfHFwapM d1tRHlZ5UrkD29z/SuPjx/JpHT/XJ8WsXunm1u9q6FFCj+WfNhasFYKq+ZM/J8bC907WtoC9LeE bgdaEPUYlPrXZQUfXFd0O9JbA435+Ea1oJInLbjUFFU8fSsu+UrkcMEyiFscgSc= X-Google-Smtp-Source: AGHT+IFR/fUiIpklP4uYiZOopscUVxaNfxpnJ8diWG2f+VFGzFKmafD7Ir9MEDmG0FH42fm2GR1v/A== X-Received: by 2002:a05:6000:2c3:b0:38d:ca55:76c3 with SMTP id ffacd0b85a97d-38f6e757386mr13207329f8f.11.1740485329565; Tue, 25 Feb 2025 04:08:49 -0800 (PST) Received: from Zen2.lab.linutronix.de. (drugstore.linutronix.de. [80.153.143.164]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-390cd8fc31fsm2018305f8f.87.2025.02.25.04.08.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Feb 2025 04:08:49 -0800 (PST) From: Alexander Kanavin To: openembedded-core@lists.openembedded.org Cc: Alexander Kanavin Subject: [PATCH 4/4] fragments/qemu: add support for enabling sdl in qemu Date: Tue, 25 Feb 2025 13:08:36 +0100 Message-Id: <20250225120836.171976-4-alex.kanavin@gmail.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250225120836.171976-1-alex.kanavin@gmail.com> References: <20250225120836.171976-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, 25 Feb 2025 12:09:01 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/211876 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"