From patchwork Mon Sep 30 22:29:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 49834 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 0CE5CCEB2CC for ; Mon, 30 Sep 2024 22:29:25 +0000 (UTC) Received: from mail-pf1-f177.google.com (mail-pf1-f177.google.com [209.85.210.177]) by mx.groups.io with SMTP id smtpd.web10.68083.1727735356832879762 for ; Mon, 30 Sep 2024 15:29:16 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20230601 header.b=BVOEyHf/; spf=pass (domain: gmail.com, ip: 209.85.210.177, mailfrom: raj.khem@gmail.com) Received: by mail-pf1-f177.google.com with SMTP id d2e1a72fcca58-71c5df16b10so2869354b3a.0 for ; Mon, 30 Sep 2024 15:29:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1727735356; x=1728340156; 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=zvJuAqUk+m6+QA7Cdc6hOXxznpXDhgVlA8i08cd+eKU=; b=BVOEyHf/m70qiOcanvOSODHqPw9bLucBZ9uo1THiBndUTHzYESazu3b5ByIImoFWfQ aGeviPdVQPJorVDslxL/g9l0rkerNe0xJVh91wjLZW6ZSfxTrRbm6CYlsrkpRK3/KBPk OgYqRrD/jZgFDLRYmM2fqjKsgsvg/YBmJopt4ILhhGOJo3wSbXdXyXC6hJpnSR8jLdDW 0rMDZ07m7mgIWwW9JFcTXkXbxY9QsdeD+mU1Uo7xHD1+vN2FRnpMgF5KX5/74usXeQZQ bPlzarv/M9l0mOOY5Xk+JNiwQfd3ckRwDUjPGFXIL07jSmFSNyc0+F8YP22exPU6Ry39 74MA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727735356; x=1728340156; 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=zvJuAqUk+m6+QA7Cdc6hOXxznpXDhgVlA8i08cd+eKU=; b=ZjHF1/2zsTecaU/M3+iHts6lKN1PMYFtHWf0Q1WWLGHe0Vybo0tWSqkAdMbfKM0vgJ fObJQo4E/Vtne28YqH38M56SOnr+L9J3JlW8bNB6eVWPSmU9qDSL+Z3j12S/OBQA2VMo xJISKIA9xXyTlHw2EsO7jk+pFdGoVuURM4ocDCy10V+f+bMB29pNYYgAuHGWzKN94GK3 bigZvCWW24aUNcWwV3M04RA44asrnhnogcfR0SU2MnRuQJvYolpvI5bfmp/y3IbvkKYk x8HuS5zQm7IPmhMOxEsjVRcRBZQ4vN1RUYQ6xC8VvSq3EDC48lYmYV3B2O6mi/s6hlLh 1GTw== X-Gm-Message-State: AOJu0YxvuP1gm2PgVuj8VSBebOAAq29PgvxknkoU6ljh5VBl+W6wnlvw mMEtUGRug16B27usjv5UEamcNwejDS3cwX76LupscPkJzcbMxhyrkd3SgQ== X-Google-Smtp-Source: AGHT+IFMUoTf/J/GAKiRmGwyRYVjxDGDceF9XWSeJVGtF+FGhO7temu8gfqUYp4yybCFb6ljrTFI0A== X-Received: by 2002:a05:6a00:9a1:b0:70d:2a88:a483 with SMTP id d2e1a72fcca58-71b25daa507mr22768981b3a.0.1727735355993; Mon, 30 Sep 2024 15:29:15 -0700 (PDT) Received: from apollo.hsd1.ca.comcast.net ([2601:646:9d80:4380::ae14]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71b264b7dd6sm6774526b3a.46.2024.09.30.15.29.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Sep 2024 15:29:15 -0700 (PDT) From: Khem Raj To: openembedded-core@lists.openembedded.org Cc: Khem Raj Subject: [PATCH 1/2] strace: Define sched_attr conditionally Date: Mon, 30 Sep 2024 15:29:12 -0700 Message-ID: <20240930222913.3981407-1-raj.khem@gmail.com> X-Mailer: git-send-email 2.46.2 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 ; Mon, 30 Sep 2024 22:29:25 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/205126 So that it does not conflict with glibc 2.41+ newly added definitions Signed-off-by: Khem Raj --- ...e-conditionally-on-SCHED_ATTR_SIZE_V.patch | 49 +++++++++++++++++++ meta/recipes-devtools/strace/strace_6.11.bb | 1 + 2 files changed, 50 insertions(+) create mode 100644 meta/recipes-devtools/strace/strace/0001-sched_attr-Define-conditionally-on-SCHED_ATTR_SIZE_V.patch diff --git a/meta/recipes-devtools/strace/strace/0001-sched_attr-Define-conditionally-on-SCHED_ATTR_SIZE_V.patch b/meta/recipes-devtools/strace/strace/0001-sched_attr-Define-conditionally-on-SCHED_ATTR_SIZE_V.patch new file mode 100644 index 00000000000..b8d57797dfe --- /dev/null +++ b/meta/recipes-devtools/strace/strace/0001-sched_attr-Define-conditionally-on-SCHED_ATTR_SIZE_V.patch @@ -0,0 +1,49 @@ +From d162a1d6b18348955f9989f150c86a68af096362 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Mon, 30 Sep 2024 15:17:16 -0700 +Subject: [PATCH] sched_attr: Define conditionally on SCHED_ATTR_SIZE_VER0 + +glibc 2.41+ has added [1] definitions for sched_setattr and sched_getattr functions +and struct sched_attr. Therefore, it needs to be checked for here as well before +defining sched_attr + +Fixes builds with glibc/trunk + +In file included from ../../strace-6.11/src/sched.c:14: +../../strace-6.11/src/sched_attr.h:16:8: error: redefinition of 'sched_attr' + 16 | struct sched_attr { + | ^ +/mnt/b/yoe/master/build/tmp/work/core2-64-yoe-linux/strace/6.11/recipe-sysroot/usr/include/linux/sched/types.h:98:8: note: previous definition is here + 98 | struct sched_attr { + | ^ + +[1] https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=21571ca0d70302909cf72707b2a7736cf12190a0;hp=298bc488fdc047da37482f4003023cb9adef78f8 + +Upstream-Status: Submitted [https://github.com/strace/strace/pull/318] +Signed-off-by: Khem Raj +--- + src/sched_attr.h | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/src/sched_attr.h b/src/sched_attr.h +index 26c53172f..a5b5d94ce 100644 +--- a/src/sched_attr.h ++++ b/src/sched_attr.h +@@ -11,6 +11,8 @@ + + # include + ++# ifndef SCHED_ATTR_SIZE_VER0 ++ + struct sched_attr { + uint32_t size; + uint32_t sched_policy; +@@ -25,6 +27,8 @@ struct sched_attr { + uint32_t sched_util_max; + }; + ++# endif /* SCHED_ATTR_SIZE_VER0 */ ++ + # define SCHED_ATTR_MIN_SIZE 48 + # ifndef SCHED_ATTR_SIZE_VER1 + # define SCHED_ATTR_SIZE_VER1 56 diff --git a/meta/recipes-devtools/strace/strace_6.11.bb b/meta/recipes-devtools/strace/strace_6.11.bb index d98b5fdec9a..45e1c26627f 100644 --- a/meta/recipes-devtools/strace/strace_6.11.bb +++ b/meta/recipes-devtools/strace/strace_6.11.bb @@ -14,6 +14,7 @@ SRC_URI = "https://strace.io/files/${PV}/strace-${PV}.tar.xz \ file://skip-load.patch \ file://0001-configure-Use-autoconf-macro-to-detect-largefile-sup.patch \ file://0002-tests-Replace-off64_t-with-off_t.patch \ + file://0001-sched_attr-Define-conditionally-on-SCHED_ATTR_SIZE_V.patch \ " SRC_URI[sha256sum] = "83262583a3529f02c3501aa8b8ac772b4cbc03dc934e98bab6e4883626e283a5" From patchwork Mon Sep 30 22:29:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 49833 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 0BC76CEB2CB for ; Mon, 30 Sep 2024 22:29:25 +0000 (UTC) Received: from mail-pf1-f179.google.com (mail-pf1-f179.google.com [209.85.210.179]) by mx.groups.io with SMTP id smtpd.web11.68382.1727735357645812386 for ; Mon, 30 Sep 2024 15:29:17 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20230601 header.b=gXDFmHFb; spf=pass (domain: gmail.com, ip: 209.85.210.179, mailfrom: raj.khem@gmail.com) Received: by mail-pf1-f179.google.com with SMTP id d2e1a72fcca58-7193010d386so4225974b3a.1 for ; Mon, 30 Sep 2024 15:29:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1727735357; x=1728340157; 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=GGYXCDkJsC/7j4LZ21THWlk06F/KjvJtjnCkcreZ0NA=; b=gXDFmHFbeeIxHrEYuub6/yf4/gyfTGvoc8OrR2J/y/foSDbltphTiI1Kk7Lbf9fFhl E+Kl0FfRl8AvcdlCqWIiruOr3qGrODxeKD/OODeT+7e5IIBJvutks9vpUF49s5ErL5AD Q8s6QKwVk1CzAjfsgyT+zhsHLfFl//7X1ltVDOD4B4CEktJ3uh/N0p182qSehVpiAvCJ ue+kyZvcUmUQLhd5vyIIN4b3xQLq6b6cKuA40Up/3UyAgqJfzjdW3Nw8moNp/taP0hp8 Lk9f11VOf1jbSeST1RaziZCZZ8Re2hyxVVa46k3BmLDrID9KHrpdzoZTMuk0dbGTqz1v A9YA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727735357; x=1728340157; 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=GGYXCDkJsC/7j4LZ21THWlk06F/KjvJtjnCkcreZ0NA=; b=MpNX6GDEyWgmO+F8hTdJElsMQXevruhidtmofpXt24eQQv61SlqigzGUblD9LTiasY Pxr4KQofMbXuOaIG2v/bENDDGkUC2JloQ9LKG+pI5Hrpv456k7ly/9gwzvjbhBFRhwWO a3wLyl7WMI+VMFvvbEfb7sWT1k46163vX+wPM1TsmHx9OPNaVbWkjZdd+2ia243yVXgD EqKg8M1hr/mEnVwa3M+DVBZ7MSoD09Kq680+Zrmdskvkewfd0J+iwL8HThWjvYZABqvf Bpk9964HrHXwVweZnqpgV3qD+oZbWJ2l3rf7nPCHV+QOo5WlHiTwV7/agrBBLlmvknAf sq8A== X-Gm-Message-State: AOJu0YzW/gdvB6xKS2csphUltF4mZod1895obiYXvcyfoUJ9XuLNTmDf 3+JRiGqC0Gk5gJV4mnP+4boPoin2rdDCA48pR+stdNQxLHVJd+NYaN1qCA== X-Google-Smtp-Source: AGHT+IH5pOSm7LTygWD1Sl/srr7JYlLhq6PeRlwwAUPlZGtOK5BG5dgY7RiN9FcEPVljl7evAeOCsA== X-Received: by 2002:a05:6a00:10d2:b0:70d:323f:d0c6 with SMTP id d2e1a72fcca58-71b26077721mr21077311b3a.24.1727735356838; Mon, 30 Sep 2024 15:29:16 -0700 (PDT) Received: from apollo.hsd1.ca.comcast.net ([2601:646:9d80:4380::ae14]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71b264b7dd6sm6774526b3a.46.2024.09.30.15.29.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Sep 2024 15:29:16 -0700 (PDT) From: Khem Raj To: openembedded-core@lists.openembedded.org Cc: Khem Raj , Bruce Ashfield Subject: [PATCH 2/2] linux-yocto: Enable l2tp drivers when ptest featuee is on Date: Mon, 30 Sep 2024 15:29:13 -0700 Message-ID: <20240930222913.3981407-2-raj.khem@gmail.com> X-Mailer: git-send-email 2.46.2 In-Reply-To: <20240930222913.3981407-1-raj.khem@gmail.com> References: <20240930222913.3981407-1-raj.khem@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 ; Mon, 30 Sep 2024 22:29:25 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/205127 openl2tp ptests from networking layer depend upon these Signed-off-by: Khem Raj Cc: Bruce Ashfield --- meta/recipes-kernel/linux/linux-yocto_6.10.bb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meta/recipes-kernel/linux/linux-yocto_6.10.bb b/meta/recipes-kernel/linux/linux-yocto_6.10.bb index 87f7794bbef..cee06c22ea3 100644 --- a/meta/recipes-kernel/linux/linux-yocto_6.10.bb +++ b/meta/recipes-kernel/linux/linux-yocto_6.10.bb @@ -66,6 +66,8 @@ KERNEL_FEATURES:append = " ${@bb.utils.contains("DISTRO_FEATURES", "ptest", " fe KERNEL_FEATURES:append = " ${@bb.utils.contains("DISTRO_FEATURES", "ptest", " features/gpio/mockup.scc features/gpio/sim.scc", "", d)}" # libteam ptests from meta-oe needs it KERNEL_FEATURES:append = " ${@bb.utils.contains("DISTRO_FEATURES", "ptest", " features/net/team/team.scc", "", d)}" +# openl2tp tests from meta-networking needs it +KERNEL_FEATURES:append = " ${@bb.utils.contains("DISTRO_FEATURES", "ptest", " cgl/cfg/net/l2tp.scc", "", d)}" KERNEL_FEATURES:append:powerpc =" arch/powerpc/powerpc-debug.scc" KERNEL_FEATURES:append:powerpc64 =" arch/powerpc/powerpc-debug.scc" KERNEL_FEATURES:append:powerpc64le =" arch/powerpc/powerpc-debug.scc"