From patchwork Thu Aug 13 03:05:14 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Trevor Woerner X-Patchwork-Id: 95056 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 3B70BC5B572 for ; Thu, 13 Aug 2026 03:05:28 +0000 (UTC) Received: from mail-qt1-f178.google.com (mail-qt1-f178.google.com [209.85.160.178]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.11347.1786590321243394629 for ; Wed, 12 Aug 2026 20:05:21 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20251104 header.b=sbGP78ND; spf=pass (domain: gmail.com, ip: 209.85.160.178, mailfrom: twoerner@gmail.com) Received: by mail-qt1-f178.google.com with SMTP id d75a77b69052e-52cd38ddcdfso10267771cf.3 for ; Wed, 12 Aug 2026 20:05:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1786590320; x=1787195120; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to:content-type; bh=l4VbPHgQWMbiXCuCwENlfKXJCuheAQlsZNAD2LKk5IM=; b=sbGP78NDEIOb/EWP4mn3oApJtenLv70F0qSRjA7el8I+Ike+E0FiIrt2qZO/hSm/UG a1pk21KYIbhTWLs14WpCaNEGuuV2HlcJgMKPh0Xv6J0dVV4rVnNgbA7NDAl9+SUV1lPn MZ8MF0ldumYktoT3ydgEI+2EpZL9Sn9ERTJDYYHEQlH0f9NerO1dM2HIAjtvxYhGHhmQ zjYDG0BuzR2Kqe3h4ip6zLqAn5NRDzjPjOncTAAZAnWMZNAkcb7HsS1E1/o2B3jeYcbq OeOjyq490//fHPZ0NDChBWXBZw5+jnXY2MDAVLf8voREOQtK6K6rcBlZ0aPWn6mt1Cph g84g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1786590320; x=1787195120; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to:content-type; bh=l4VbPHgQWMbiXCuCwENlfKXJCuheAQlsZNAD2LKk5IM=; b=pyVKufO3Qq3KZeb7FtmVKkfk3aZAyzdNAk1liLntl2x8CsV/xqJBo5eEte/iUiBjBG cptTQi688EDchPkwN85Ge4Rt9r2vHRRzhvsMzNo90HYoBxuJAFS4dPhLj3PkIvYKK3oY a+Gef1GMNYd8sx3JwfblILwyi7B5Z195HG28+6KGAk4LFk3YLOr+QjlPHvchxQefNSjy eV4KXWSG3+Ive/xuOQpdVXZrvrzII4L9WaezMkksJ2O+4byy1VFmgv3A0U1Mj0PnGL0e uNx01TzfVsR+mQxCS7Bo16NxfUvSQmvH0ybkyMGXNzlEz/IHneBNhsPFBkQ1QirBtAOb Iyhw== X-Gm-Message-State: AOJu0YyLL/BKItNrchdBcZ1GL9VGbZQWFOAApC7ioEP6hE2+jPCXJYya WIWEMGf8RIp/xC6fU4kU8EzdlCtxhq8vZWh2VFc7SMWZgK1imcYQvkH3PcB8c0ZK X-Gm-Gg: AR+sD13oos9wIf2BtaU6VC0PEzkSOW9ARPz/J2XP0vNaYkqgRfhdXh7A9rnP9dP4764 mg0yqIxZiVkiWe3WHcaw6AbvQQhIYCFXeuJFXi+H8S4VSX3WyebwYYkhcIVO8L58Hn5vWBpd/XG huRm1MuQahJmDHLtv3DjxhHSaHxhRrdj7q1BwtJRn+SBnNweC+DwdGHH2mVZTxuQ4EpIoEi5K8v pWZcox4oatAQZgxzUVGheWqjB1FHAqYqN8HXU0g4MbG7JCWPaNE12/Yq2FIgwVem8Z9U1ZjjGYG 3PUjFlo3iLwMjYw1nLHQBlpMmnm9PIpxVsS9VP089N4cLMOYcUo/DrmzBRJN8e1h6az1KXvT2dh fOwaFHu0qwRWCx43AiNy6ne32P0+rWooGr8rlPwrWOUpVnScidS5C6ZnqwJIDeWwxtzeZI5QkAv DXfpA7mV/6ECdrHvszJK3NsAsiEN5AjHnicpGbnFJldGTnc8ortbqIMkaN+xH2nDbYkNPxOmQ4B r+2eTfhMK/qWO03Bn4jh2t9WG29uCI0qfXv3ohXYg== X-Received: by 2002:a05:622a:2507:b0:527:9603:8123 with SMTP id d75a77b69052e-52d73c37b2amr27710741cf.2.1786590320184; Wed, 12 Aug 2026 20:05:20 -0700 (PDT) Received: from localhost.localdomain (pppoe-209-91-167-254.vianet.ca. [209.91.167.254]) by smtp.gmail.com with ESMTPSA id d75a77b69052e-52d73e2e596sm8013921cf.9.2026.08.12.20.05.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Aug 2026 20:05:19 -0700 (PDT) From: Trevor Woerner To: openembedded-core@lists.openembedded.org Subject: [PATCH v2 1/2] oeqa/sdk: update cryptodev to a revision that builds on kernel 6.18 Date: Wed, 12 Aug 2026 23:05:14 -0400 Message-ID: <20260813030515.1028627-2-twoerner@gmail.com> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20260813030515.1028627-1-twoerner@gmail.com> References: <20260813030515.1028627-1-twoerner@gmail.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Thu, 13 Aug 2026 03:05:28 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/243322 The out-of-tree kernel module test pins a cryptodev-linux revision from before the 1.14 release, which predates the removal of crypto_ahash_alignmask() from the kernel and so no longer compiles: cryptlib.c:384:28: error: implicit declaration of function 'crypto_ahash_alignmask' [-Wimplicit-function-declaration] Move to upstream's "Fix build for Linux 6.18-rc1", which is the revision that restores compatibility. AI-Generated: codex/claude-opus 5 (xhigh) Signed-off-by: Trevor Woerner --- changes in v2: - none --- meta/lib/oeqa/sdk/cases/kmod.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meta/lib/oeqa/sdk/cases/kmod.py b/meta/lib/oeqa/sdk/cases/kmod.py index 0c4d8ddb543f..1be23e994fd2 100644 --- a/meta/lib/oeqa/sdk/cases/kmod.py +++ b/meta/lib/oeqa/sdk/cases/kmod.py @@ -31,8 +31,8 @@ class KernelModuleTest(OESDKTestCase): with tempfile.TemporaryDirectory(prefix="cryptodev", dir=self.tc.sdk_dir) as testdir: git_url = "https://github.com/cryptodev-linux/cryptodev-linux" - # This is a knnown-good commit post-1.13 that builds with kernel 6.7+ - git_sha = "bb8bc7cf60d2c0b097c8b3b0e807f805b577a53f" + # This is a known-good commit post-1.14 that builds with kernel 6.18+ + git_sha = "08644db02d43478f802755903212f5ee506af73b" sourcedir = os.path.join(testdir, "cryptodev-linux") subprocess.check_output(["git", "clone", git_url, sourcedir], stderr=subprocess.STDOUT) From patchwork Thu Aug 13 03:05:15 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Trevor Woerner X-Patchwork-Id: 95057 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 48668C5DF64 for ; Thu, 13 Aug 2026 03:05:28 +0000 (UTC) Received: from mail-qt1-f177.google.com (mail-qt1-f177.google.com [209.85.160.177]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.11349.1786590324485899756 for ; Wed, 12 Aug 2026 20:05:24 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20251104 header.b=Kcco9xbt; spf=pass (domain: gmail.com, ip: 209.85.160.177, mailfrom: twoerner@gmail.com) Received: by mail-qt1-f177.google.com with SMTP id d75a77b69052e-51c04bf4711so1827141cf.2 for ; Wed, 12 Aug 2026 20:05:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1786590323; x=1787195123; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to:content-type; bh=QirHiywQjsG19JcUJ9KLCnhUGdgjFbu54BG+q4PtAhk=; b=Kcco9xbtDkCZ70wueNxw4uTaTX5IC53sh1uh2CWIgifqBUXxyGqAQjcdMk4qJazZHh fh+l5SKCIa/fJT3Z5sgwQhcLzGhfMkVsLhyDibeq9ExPYufh+sfxr+GQf1xoJj2aRiZT J7rdQEQ6mTyB2Miv33QwU5dSgt3qFL408n5ljmukmm6MfJyTH6VQUF45FMgaI00cl9Lm X87xF95ng23Bk+CYBO3vtOU7lW+yZEAbVo7EugB9A1P4eq1nLpcDEHcCNMY5QCl7Jsf8 YQTdJ7e4OKd1m3K7OKqmVBanYWMLP2FM6KbPnkVBkXHvt0+sFaqoa21pUv+vQz9E6D6l UWGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1786590323; x=1787195123; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to:content-type; bh=QirHiywQjsG19JcUJ9KLCnhUGdgjFbu54BG+q4PtAhk=; b=QX1zF5sbpzTyTVvQDU35z0fP4XueewlSMIWrMbdDC87qpqhM0Ypoh5+ziCDysMFHDF 3D2rnazG7LP+6nJKuhHhek9x6ZvBFAl/tUnQzFB/J1xV4CucziK5A/mDnJ23u6nl3ugu xqBbNw/hlo4u/DvDhhttj/iA4SUbbrwgRBzHKyAiHQs8j8i3GNANrjchOF4z+n1I7vTF 2/cfpx4ACIoaKdor3gRHZT+xCxuGoOvTrM62stgyEmPAXs2xF2tfSBgkzItqpPSHVYLl BlBcgiPTsVYidElFK9ZiiXojWXKJnPYk36aNY/tPRmw4zbc+2Ft6Swm57KAJv3nyxHuE RVtg== X-Gm-Message-State: AOJu0YywkNWII1A9gUMI6P+DxBHJp9B9mTaSlqFQXMCye2pi1Wqz5kJx TVR3cRUMfWz0LuKNa7ZgwXo/8O3z3K2HlfV9GMdAwSw2nFrVm2Z0STsV9Pp7Pq5u X-Gm-Gg: AR+sD10tqTv9Pva952MdmWLb7VY3gxhES5r0lbUlOql6Bha8xu6EBhLtm07R9W614ui vXghMUSxnzweYIjwoipuSoEsutXf2Bz+Fs9Khi74drj4iHx3acwuB2lHsP9lcxn1aJeJpV+WV1/ aXd5TfaQNNwjlSSWGO2UG18HdFMNLBjSoS3RcSJdrylQiG9LTjxItcTHsU1L7F7FCI4ZLmCeZcO txH1r7p4a0GaXUcYgZPP3sr3HcEID08dqol95+jxxK5N/bulSm8g075FLfZTAYuzUTCAZn1B3Ac Q+jAMkpYbeFj8sJToZa71J7mG8tLvLVbySQAE0TkxdDBH0ghg6JxByWJ3etPdhcOtu0VvbAp7do ab43YvsJbEwu3Ef9+p+z/JYgeU5MMvdvLCKtkPtNEvLapbA9rvAR79yK6ojIcfyPE6GJXxKI0ro FLkRJqGMcjUCGCrr/aPtwPES+oCNCNMEPcNso7oB6fFxE8ReYm/l8jzAJc6vQtMyj6LULej8YZC WFkpnR9jzjCECby8fJhZ7ZTMk1KoFk= X-Received: by 2002:ac8:7f03:0:b0:51a:6feb:dc8a with SMTP id d75a77b69052e-52d73c9533dmr29326821cf.18.1786590323340; Wed, 12 Aug 2026 20:05:23 -0700 (PDT) Received: from localhost.localdomain (pppoe-209-91-167-254.vianet.ca. [209.91.167.254]) by smtp.gmail.com with ESMTPSA id d75a77b69052e-52d73e2e596sm8013921cf.9.2026.08.12.20.05.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Aug 2026 20:05:21 -0700 (PDT) From: Trevor Woerner To: openembedded-core@lists.openembedded.org Subject: [PATCH v2 2/2] oeqa/sdk: build the kernel's host tools with a host pkg-config Date: Wed, 12 Aug 2026 23:05:15 -0400 Message-ID: <20260813030515.1028627-3-twoerner@gmail.com> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20260813030515.1028627-1-twoerner@gmail.com> References: <20260813030515.1028627-1-twoerner@gmail.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Thu, 13 Aug 2026 03:05:28 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/243323 The SDK environment sets PKG_CONFIG_SYSROOT_DIR, PKG_CONFIG_PATH and PKG_CONFIG_LIBDIR so that pkg-config answers for the target. That is right for everything built to run there and wrong for a program built to run on the SDK host. The kernel build compiles host tools of its own, and objtool asks pkg-config where libelf is. It gets the target's include directory, compiles a host tool against the target's C library headers, and stops on warnings that -Wno-system-headers would otherwise have covered: usr/include/sys/cdefs.h:486: error: "__attribute_const__" redefined Pass a pkg-config that undoes those three variables on the make command line when the test builds an external module. It has to be a command line assignment: the kernel assigns HOSTPKG_CONFIG with '=', so an exported value is ignored. OE-Core already does the same thing for its own kernel builds, in kernel.bbclass. Fixes [YOCTO #16239]. AI-Generated: codex/claude-opus 5 (xhigh) Signed-off-by: Trevor Woerner --- changes in v2: - drop the HOSTPKG_CONFIG export from the SDK environment script. It only ever took effect against a proposed kernel change that has since been abandoned, so no kernel honours it and it was dead weight. The make command line assignment, which is what makes the test work, is unchanged - the subject loses its toolchain-scripts prefix, since that file is no longer touched - drop the paragraph citing the kernel proposal --- meta/lib/oeqa/sdk/cases/kmod.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/meta/lib/oeqa/sdk/cases/kmod.py b/meta/lib/oeqa/sdk/cases/kmod.py index 1be23e994fd2..1d73f076e552 100644 --- a/meta/lib/oeqa/sdk/cases/kmod.py +++ b/meta/lib/oeqa/sdk/cases/kmod.py @@ -26,8 +26,11 @@ class KernelModuleTest(OESDKTestCase): parallel_make = "-j %d" % (pmv) if pmv else "" self.ensure_target_package("kernel-devsrc") + # the kernel assigns HOSTPKG_CONFIG with '=', so it has to come from + # the make command line, as kernel.bbclass does + host_pkg_config = 'HOSTPKG_CONFIG="env -u PKG_CONFIG_SYSROOT_DIR -u PKG_CONFIG_PATH -u PKG_CONFIG_LIBDIR pkg-config"' # These targets need to be built before kernel modules can be built. - self._run("make %s -C $OECORE_TARGET_SYSROOT/usr/src/kernel prepare scripts" % (parallel_make)) + self._run("make %s %s -C $OECORE_TARGET_SYSROOT/usr/src/kernel prepare scripts" % (parallel_make, host_pkg_config)) with tempfile.TemporaryDirectory(prefix="cryptodev", dir=self.tc.sdk_dir) as testdir: git_url = "https://github.com/cryptodev-linux/cryptodev-linux" @@ -39,5 +42,5 @@ class KernelModuleTest(OESDKTestCase): self.assertTrue(os.path.isdir(sourcedir)) subprocess.check_output(["git", "-C", sourcedir, "checkout", git_sha], stderr=subprocess.STDOUT) - self._run("make -C %s V=1 KERNEL_DIR=$OECORE_TARGET_SYSROOT/usr/src/kernel" % sourcedir) + self._run("make -C %s V=1 %s KERNEL_DIR=$OECORE_TARGET_SYSROOT/usr/src/kernel" % (sourcedir, host_pkg_config)) self.check_elf(os.path.join(sourcedir, "cryptodev.ko"))