From patchwork Mon Aug 19 07:41:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Patrick Barsanti X-Patchwork-Id: 3321 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 16D813F1F3 for ; Mon, 19 Aug 2024 09:42:33 +0200 (CEST) Received: by mail-ed1-f69.google.com with SMTP id 4fb4d7f45d1cf-5bed8949b39sf1772523a12.3 for ; Mon, 19 Aug 2024 00:42:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1724053353; cv=pass; d=google.com; s=arc-20160816; b=VpUfMRC+iOTZQSi6z6qohMfXFbwLX4qT9eXtqVZMtigfg0s+mFcX+VJnj7N8UE9os0 olLjAKot1AEd+WqBkkdyxAcQBb7guANg/0HkxWmWiKB/KmUjOLOYnQ5QM75sXojRdL3L pLvrF7w5O5+f2wcyDW0HZy287YwmP9Dh4jQmpCQrr3nr8CKq08scx/J0KHTjYcmCzS+r vJy6C/JyJqmo18sN0jcjHnPPDzKGQslBcK0ZtX9+/Ht1enLcDrALHn6w49IfqHd/Hpj3 iq6RcI9S8FCbMG+kTtdVjlXzQDgGN5dVOQwFKm8euX2e5CfK7Bew55BiOFHzuS+p9x8m R9Ag== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=ZUihxTSDghoTiJboWiJ2BmPCqsY5A9+l26TrwKVqSAE=; fh=nd5AMxghb28YD+cpAC2lgDPEB8hkr3o/gBWnH7ndAd0=; b=buHhk25ooy/rqjHh6xqroHC/9spQ2PdHKV+rNf2Ddi2QqHOfb8v9arqnSq6VPX44AF aibkEuY0rsrmmEY1w1PTRQ9qVl1oumEVj+mRoMNvcu8GE3BbEzk8fhUgFdl1aZYe6kq3 YIHwMqO0lAGe0e2hdACuj1dEhscr3m80G2ybx1RIWDyfkF1QXiZaPgZL0Zjk+kO9E5/5 1uuStyi+SZLg/GrAX1D9l+mtDgMJdnIAyxu/dO7KbMA9uBc2ygMOIEA+wBXcg1Bk2AME u0TyibPQDe7IaykqD1oOWfo2sMIZ3ksVPsaFQy91I8xc/27Xof1MfkFO7zX3B2m3D6Sg Lu7g==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=DWTsTQW+; spf=pass (google.com: domain of patrick.barsanti@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=patrick.barsanti@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1724053353; x=1724658153; darn=patchwork.amarulasolutions.com; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=ZUihxTSDghoTiJboWiJ2BmPCqsY5A9+l26TrwKVqSAE=; b=HO89SvmdHj9p/j2M6kBOHGvc53w+3rCFYY98m1CIEfL/MzNpclGqsezgpS2HDPn5+C z4My33Cn1eRKtBx2VwEN5aBidVRuJga1UyUfRJ6pXLtgi0NoBfyxeHDaH1hbyc+rn+DB VsTFdDpVEPP1X/HeRxcbg4uJMOhJlKNUdKg48= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724053353; x=1724658153; h=list-unsubscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :x-beenthere:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ZUihxTSDghoTiJboWiJ2BmPCqsY5A9+l26TrwKVqSAE=; b=oQGNYFZqHmXAaiam25MjNYkGU4/Pb6GBNlh0cXKwWSsqotK3qT/l18QjlSOQDfqnHS OMZMUJjd0W5Jd4vkjYAlqPzCpL2S1D0o9BQTjofxWMzjFSmexpA1Y6R67c1KWuz2G3U+ RUxFbaKHzRAQ7r90RW/JVnrPhIJm/gNJA2MrOpd1MxIx7t65j4++8vmzVT5rE5aC1xyN xQkTbSDaTnV/kjTZUXB4/0404H+BY8zpAeGGI4uvQe0dvFSgRkOMyUnNC9wj5n/1bpoj 3ltATNRBnCvJP75xk1ukXsIKx4BUuNibyfvP+bKHbLN3ucbD9nNOhYsce9y3LpeshnD4 02lQ== X-Forwarded-Encrypted: i=2; AJvYcCXhSX2ClZp1T5GzrylzctcWLcumCp6nKveSjddpKzuVOoDceb3+m9oSmB/w8nXtdtyIcLmXgxduGt6X5SwlKnbOEFdMmJaRhDAMgoXpY6v5lKb4uTst3TIQ4F12Sw== X-Gm-Message-State: AOJu0YyTZgBSu8YtkoSt1apYCLpev2Lqa6edbVmnxZMTds2H7JtCIKML +ppgt3HHqnhKsykV/7hg2jN2T0Ytb66zM7Awnm8CahWuwvSRRJUdaERLpQHreReE1Q== X-Google-Smtp-Source: AGHT+IH0JaK2t/oia7MMxU8AGmiqszeJJE9fEUcdV734m+0KYZhZ17dRd81xH3fARapVUxyB7EQ36A== X-Received: by 2002:a05:6402:3201:b0:5be:de37:80dc with SMTP id 4fb4d7f45d1cf-5bede378440mr3564307a12.37.1724053352503; Mon, 19 Aug 2024 00:42:32 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:6402:40ce:b0:5be:da72:5baf with SMTP id 4fb4d7f45d1cf-5beda725da3ls10422a12.0.-pod-prod-09-eu; Mon, 19 Aug 2024 00:42:31 -0700 (PDT) X-Received: by 2002:a17:907:c8a5:b0:a7a:b43e:86e4 with SMTP id a640c23a62f3a-a8392930be7mr738565466b.27.1724053350923; Mon, 19 Aug 2024 00:42:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1724053350; cv=none; d=google.com; s=arc-20160816; b=u9Sikw6BNWVlsCyQPhCVqrZLO2d/i4McGCn4os2CvWNGaVePF4WyCWltJz6B6mwoyf GImvUTm3e4PldiZNV1ItYoqvi9iYnp+aAlstDGx6XYv9Afgi8fwN9v8vhqAUngIkOP43 GubEhZ8bHO+FFBrtetXpt+xQggufNsbuaRRSndYTih+DertvixizOuWr5VZR/lmx6tkY 2FT838CFwMvhkkTMY8G4MdC5/DYa+TC0XxzgKku5Z1f/QAZ4afSPKxG0uSJY/SpbaoMK e6ro9Z+kzsuWLVKMLYpXtdBDNtwdYVunqnGeco42yY9LLRS1tG4CyN2EjMuFTMsm6P9u BfbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=f6uYYXHmgBGPR3jH48ELoTVCKKaPOOwwO2IVZZsrlC4=; fh=u9hQ0FYhgFaRYZt60LMCTuHprfvTVd18Zbk+lSMUPZs=; b=Zd9YkzGpwx+vy4Xjku5LXHAFarYPMS/3nYzngyH2JxLiygnXBthW3XIdWRoaIol2e0 xzG4yWYqZQ5c7Y/y8vn7htmcslZHDlvLDxifFu4TpwUFxH/Yz0FcOJEJi+8oN9/yXoG1 iRe62J7yyjjSM+/OT2SFuc5JwsEju1xCkTDTRZv+GrYsxinLBQ3UYP49vaWsa6qrM3SK sV/AMsK2E+1F4AppgZGHLpyN99qtCQitEOCvq8u6Z8NdoYtjhY5EZYLOY2TOK5+gESSB VJzZAU2AS/o02pS2XU+GgYl+/cm7qOxwEp4wnyBR2lN79gWnemcNUPjMr28Tf6QYEz+d u9xA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=DWTsTQW+; spf=pass (google.com: domain of patrick.barsanti@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=patrick.barsanti@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id a640c23a62f3a-a8383942df9sor208473066b.18.2024.08.19.00.42.30 for (Google Transport Security); Mon, 19 Aug 2024 00:42:30 -0700 (PDT) Received-SPF: pass (google.com: domain of patrick.barsanti@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a17:907:e2c4:b0:a7a:952b:95b1 with SMTP id a640c23a62f3a-a83929335fcmr705261466b.24.1724053350287; Mon, 19 Aug 2024 00:42:30 -0700 (PDT) Received: from localhost.localdomain (i116103.upc-i.chello.nl. [62.195.116.103]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a83838c68f2sm598333966b.2.2024.08.19.00.42.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Aug 2024 00:42:30 -0700 (PDT) From: Patrick Barsanti To: linux-amarula@amarulasolutions.com Cc: michael@amarulasolutions.com, adam.duskett@amarulasolutions.com, Patrick Barsanti Subject: [PATCH 1/6] libtracefs: import from meta-openembedded Date: Mon, 19 Aug 2024 09:41:57 +0200 Message-ID: <20240819074202.34144-2-patrick.barsanti@amarulasolutions.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240819074202.34144-1-patrick.barsanti@amarulasolutions.com> References: <20240819074202.34144-1-patrick.barsanti@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: patrick.barsanti@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=DWTsTQW+; spf=pass (google.com: domain of patrick.barsanti@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=patrick.barsanti@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Import from meta-openembedded at commit ce7274164c ("libtracefs: upgrade 1.8.0 -> 1.8.1"). libtracefs is a dependency of rtla, so it is necessary to add it before adding rtla itself. Signed-off-by: Patrick Barsanti --- ...not-preserve-ownership-in-cp-command.patch | 28 +++++++++++++++++++ .../libtracefs/libtracefs_1.8.1.bb | 22 +++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 meta/recipes-kernel/libtracefs/libtracefs/0001-makefile-Do-not-preserve-ownership-in-cp-command.patch create mode 100644 meta/recipes-kernel/libtracefs/libtracefs_1.8.1.bb diff --git a/meta/recipes-kernel/libtracefs/libtracefs/0001-makefile-Do-not-preserve-ownership-in-cp-command.patch b/meta/recipes-kernel/libtracefs/libtracefs/0001-makefile-Do-not-preserve-ownership-in-cp-command.patch new file mode 100644 index 0000000000..7eaf29e4c4 --- /dev/null +++ b/meta/recipes-kernel/libtracefs/libtracefs/0001-makefile-Do-not-preserve-ownership-in-cp-command.patch @@ -0,0 +1,28 @@ +From ab6f78bfd6811c648ee71663cfc4dc8be151a519 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Wed, 21 Dec 2022 22:50:56 -0800 +Subject: [PATCH] makefile: Do not preserve ownership in cp command + +Fixes +ERROR: libtracefs-1.6.3-r0 do_package_qa: QA Issue: libtracefs: /usr/lib/libtracefs.so is owned by uid 1000, which is the same as the user running bitbake. This may be due to host contamination [host-user-contaminated] + +Upstream-Status: Pending + +Signed-off-by: Khem Raj +--- + Makefile | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Makefile b/Makefile +index 7f4f5c3..1ba7b9d 100644 +--- a/Makefile ++++ b/Makefile +@@ -296,7 +296,7 @@ endif # DESTDIR = "" + + install_libs: libs install_pkgconfig + $(Q)$(call do_install,$(LIBTRACEFS_SHARED),$(libdir_SQ)); \ +- cp -fpR $(LIB_INSTALL) $(DESTDIR)$(libdir_SQ) ++ cp --no-preserve=ownership --recursive $(LIB_INSTALL) $(DESTDIR)$(libdir_SQ) + $(Q)$(call do_install,$(src)/include/tracefs.h,$(includedir_SQ),644) + $(Q)$(call install_ld_config) + diff --git a/meta/recipes-kernel/libtracefs/libtracefs_1.8.1.bb b/meta/recipes-kernel/libtracefs/libtracefs_1.8.1.bb new file mode 100644 index 0000000000..66869b29a9 --- /dev/null +++ b/meta/recipes-kernel/libtracefs/libtracefs_1.8.1.bb @@ -0,0 +1,22 @@ +# Copyright (C) 2022 Khem Raj +# Released under the MIT license (see COPYING.MIT for the terms) + +SUMMARY = "Library to parse raw trace event formats " +HOMEPAGE = "https://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git/" +LICENSE = "GPL-2.0-or-later & LGPL-2.1-or-later" +LIC_FILES_CHKSUM = "file://LICENSES/GPL-2.0;md5=e6a75371ba4d16749254a51215d13f97 \ + file://LICENSES/LGPL-2.1;md5=b370887980db5dd40659b50909238dbd" +SECTION = "libs" +DEPENDS = "libtraceevent bison-native flex-native" + +SRCREV = "417c2e3aa21af670cc5c13db633dd35292f2d0fa" +SRC_URI = "git://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git;branch=${BPN};protocol=https \ + file://0001-makefile-Do-not-preserve-ownership-in-cp-command.patch \ + " +S = "${WORKDIR}/git" + +inherit pkgconfig + +do_install() { + oe_runmake install DESTDIR=${D} pkgconfig_dir=${libdir}/pkgconfig +} From patchwork Mon Aug 19 07:41:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Patrick Barsanti X-Patchwork-Id: 3322 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-lj1-f200.google.com (mail-lj1-f200.google.com [209.85.208.200]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 2427D3F1F3 for ; Mon, 19 Aug 2024 09:42:37 +0200 (CEST) Received: by mail-lj1-f200.google.com with SMTP id 38308e7fff4ca-2ef23a67c5bsf34435911fa.3 for ; Mon, 19 Aug 2024 00:42:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1724053356; cv=pass; d=google.com; s=arc-20160816; b=M9RA0rDXTE8SE3MZvbAhglUbMdBYdxnIyctSHD3h+1ObHEek12FBheNcUsNMb5VZCo EKZvYKTpKc73wYQDZ6iimJ5RdIfUsdMDYrW46YYcGXjS7sPdFzsl2W+k6cJcNaXMY0wm NoMvrcDEoEbRjNkykLugh97Eiwz5J3Rnw+2bofzncO4fbreBLwsAIwOX8u9AvLmGRVJR JM2mz40oqgX/pGHUsjLZLCQvgbT7v6PbxqmW13nD7cr51iEyj2oP5JLWmVvrU5wliTTI WHlVXw+EyR00sDlSE4vnzbmSwYmPpqdaJIPiWKdW8bjkKZam6gteKjtyVIVrmn9jhXyn DWIA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=XAXlr3+xwZ+lfQ+Npx9/ma9XLfV/rDIe1dMvxGr0PFY=; fh=L+/Feclr5KPb0qzNxo+t/kOe17gvwTMIaDlExnMjcCM=; b=CuAdPgdKD2V1sPwFMY/aNkZ2ZPUXtWg+/5SwRL6BR+iT1LhGezW5ndVqpkQV5DHHTC ahxRBO0Uw9Mf5DehQ1Pm4AQk/Z3rt6cWmfBO/i+YFHaKjGNOIbW369E7HO7HoNawifgf mCaV7YKpcnZTsglF67Vk7xAIPaDAaJFkQtN8lGhKcQQd8N/x+hNNTn5A99+VcSI1+hXx /aagnAI8dQ4BeFAle18URTglJalw8pl4GY50xI7iEPTsX6J+IJ844IERndIhVFN6j9oD VTkb8dQhkzA/LPGm+88O+ZR8IR2NacxdGLZiVlZwm4g97qUbSnQfR1fIRLezPfhYh/Cr Le3w==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=ABMYH27O; spf=pass (google.com: domain of patrick.barsanti@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=patrick.barsanti@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1724053356; x=1724658156; darn=patchwork.amarulasolutions.com; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=XAXlr3+xwZ+lfQ+Npx9/ma9XLfV/rDIe1dMvxGr0PFY=; b=AMJ/9B3S7pA/QO6AM332/t8/1GaBoutvvZ6G1Hq03w2uuBUpLKHNtcphdU6PShUjJE EIwHOdMby0cw1NWVpcCOfd+/rzX9+4pxY/+zHPBqFry1lVKsoQKElpSTjlWr8vgxOB0e +ZTgOafOS7L4gveAgvejtfgDA0Gk62aXSapA8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724053356; x=1724658156; h=list-unsubscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :x-beenthere:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=XAXlr3+xwZ+lfQ+Npx9/ma9XLfV/rDIe1dMvxGr0PFY=; b=VlL0LOJTX+fFp3eRRXWTvc5KSivN9BTOxoOGB2saL+fuR5q2cn+6BdZ4hQPBvgVEF2 ur04hhQo138O3h0mbtoqdppLiGAcEug3rmuclNbT/nHJURpA8hcfLP5aH1pdIMheszVV zug1nmmlPUnTSU6Jv8qx9UKOsvPUp0TEuGOCbC/rP64DX1FH32s7l/sddFsKIgsz5EU0 bmleTNHVuzKLNGi6meDrCkyQ4p8BbcGt9fnP+tcI03RSjon+XM0Ij27u4upIrGibXKgK qOjjEny/WDmGaPZVqx1HTRgY4iUevZq19jnpvXI5hHkYb1ILK/dI7NJsQuOwMSoj0s0M yTJA== X-Forwarded-Encrypted: i=2; AJvYcCWH50MS9FxqDA4XO7S9KC5s+Q8CTy4XE0mYuPVFsfJ14jFAPg6InZr6+aG4SjvWc1etpgldTFF9/GsmJrys@patchwork.amarulasolutions.com X-Gm-Message-State: AOJu0YyOumkIiJy24EJ616S5+ncwlzr1kLYmKbFfGFzuVErIrSglNP5w Eg1aNOgW6nCkXxs9sO7p4Dq6/oOewh3WQeK40X7MT6eThLzYc+Fh1KdKoTYrVKmmgw== X-Google-Smtp-Source: AGHT+IES2OxFPIP6kqv/Rn3cZgcwi738wRYusR/Oghk0bR9pEXhcROloJzbEQuwD1Fqu+iu/mznYUQ== X-Received: by 2002:a2e:a456:0:b0:2ef:290e:5b47 with SMTP id 38308e7fff4ca-2f3be585aa9mr63628521fa.15.1724053355951; Mon, 19 Aug 2024 00:42:35 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:6402:26c6:b0:5be:ef89:e7a6 with SMTP id 4fb4d7f45d1cf-5beef89ee84ls462757a12.2.-pod-prod-04-eu; Mon, 19 Aug 2024 00:42:34 -0700 (PDT) X-Received: by 2002:a17:907:d58c:b0:a7a:c256:3cc with SMTP id a640c23a62f3a-a8392a4c520mr670694866b.67.1724053354256; Mon, 19 Aug 2024 00:42:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1724053354; cv=none; d=google.com; s=arc-20160816; b=dln4cpYhtRmft2zDEWPGnldMBX6fwG84BdHXUreuHZ0NzLuzXR6DAQiDNm1sU7QChj yyVxqn5pP+lGUQ2ZnTCpmF+9YH79il4naQbhuH/4TPnxCjo+1SK+CHSkTXKNYqquMQ/S WAMRuz4HGysDlnLA4hOC5XYoxrMua9FkSc4CcJYtp76IRqVlSrUcFlrb8f8FwNym9p9Z q9E3bH1vmWe3yOHF7aDTClcSbFggQej3WV24cPZ2PAWYWkzsUjWiw4gvojvrI02uHtQL mLf/mywGMLL2JBpYtolRKgt+kK5XRhGLzYVZg68CA2AdtcZTVrGicvJC9pdQNh6tGzbm h8ZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=syLnBzafuVKnhstxCYcGAmKddsE1KzpOP71iaEMfbEk=; fh=u9hQ0FYhgFaRYZt60LMCTuHprfvTVd18Zbk+lSMUPZs=; b=i1Q656oUYlycAmXfbvGT9evL6WQ1+cpavchqs88wZvOA5r+JbdOaGqcmzm7peFtrR9 u98QdKd30P5aH+2NU34212jd3B7vxontX6hPCcPJjjz/XBXbURGyQzV+qmEFqQHV2U3v 2Zzbsu9gbyX1cMG5p3FZ5ZJspWVRyEOft9D6UXg+Y4DAHsEqVH4EbQTrFsZF3Dn8OM44 EBWYS26W47FGm27eZxwSBLHsbgxh37or1Urmu8eQf7kOoK8LKZN0TBTwFIqi25u7zmlE YFNL1b80GOkCqZhenP0V3m4DNV+T5lmogXotFj8rMWtI3rpD7l7RYLZu2Lgw7loDAeXh luXQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=ABMYH27O; spf=pass (google.com: domain of patrick.barsanti@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=patrick.barsanti@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id a640c23a62f3a-a838393b88esor215267066b.16.2024.08.19.00.42.34 for (Google Transport Security); Mon, 19 Aug 2024 00:42:34 -0700 (PDT) Received-SPF: pass (google.com: domain of patrick.barsanti@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a17:907:9488:b0:a80:f840:9004 with SMTP id a640c23a62f3a-a83928a646cmr807179166b.12.1724053353456; Mon, 19 Aug 2024 00:42:33 -0700 (PDT) Received: from localhost.localdomain (i116103.upc-i.chello.nl. [62.195.116.103]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a83838c68f2sm598333966b.2.2024.08.19.00.42.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Aug 2024 00:42:33 -0700 (PDT) From: Patrick Barsanti To: linux-amarula@amarulasolutions.com Cc: michael@amarulasolutions.com, adam.duskett@amarulasolutions.com, Patrick Barsanti Subject: [PATCH 2/6] rtla: Revert Makefile changes for rtla Date: Mon, 19 Aug 2024 09:41:58 +0200 Message-ID: <20240819074202.34144-3-patrick.barsanti@amarulasolutions.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240819074202.34144-1-patrick.barsanti@amarulasolutions.com> References: <20240819074202.34144-1-patrick.barsanti@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: patrick.barsanti@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=ABMYH27O; spf=pass (google.com: domain of patrick.barsanti@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=patrick.barsanti@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , With this specific linux upstream commit, the building process for rtla is broken inside Yocto: | Auto-detecting system features: | ... libtraceevent: [ on ] | ... libtracefs: [ OFF ] | | libtracefs is missing. Please install libtracefs-dev/libtracefs-devel Since it is working correctly with linux-yocto_6.6%, and after confirming this commit is in fact the only cause of incorrect behaviour, add a patch to revert it. Signed-off-by: Patrick Barsanti --- ...a-Use-tools-build-makefiles-to-build.patch | 414 ++++++++++++++++++ meta/recipes-kernel/linux/linux-yocto_6.10.bb | 3 +- 2 files changed, 416 insertions(+), 1 deletion(-) create mode 100644 meta/recipes-kernel/linux/files/0001-Revert-tools-rtla-Use-tools-build-makefiles-to-build.patch diff --git a/meta/recipes-kernel/linux/files/0001-Revert-tools-rtla-Use-tools-build-makefiles-to-build.patch b/meta/recipes-kernel/linux/files/0001-Revert-tools-rtla-Use-tools-build-makefiles-to-build.patch new file mode 100644 index 0000000000..0578730e7f --- /dev/null +++ b/meta/recipes-kernel/linux/files/0001-Revert-tools-rtla-Use-tools-build-makefiles-to-build.patch @@ -0,0 +1,414 @@ +From a3d719bdd9fb6b787d7098004e2bf588a2dd67c6 Mon Sep 17 00:00:00 2001 +From: Patrick Barsanti +Date: Fri, 16 Aug 2024 18:05:58 +0200 +Subject: [PATCH] Revert "tools/rtla: Use tools/build makefiles to build rtla" + +This reverts commit 01474dc706cabbdaab600a46a107220ac5de9386. + +Upstream-Status: Pending +Signed-Off-By: Patrick Barsanti +--- + tools/tracing/rtla/.gitignore | 7 +- + tools/tracing/rtla/Build | 1 - + tools/tracing/rtla/Makefile | 217 ++++++++++++++++--------- + tools/tracing/rtla/Makefile.rtla | 80 --------- + tools/tracing/rtla/Makefile.standalone | 26 --- + tools/tracing/rtla/src/Build | 11 -- + 6 files changed, 145 insertions(+), 197 deletions(-) + delete mode 100644 tools/tracing/rtla/Build + delete mode 100644 tools/tracing/rtla/Makefile.rtla + delete mode 100644 tools/tracing/rtla/Makefile.standalone + delete mode 100644 tools/tracing/rtla/src/Build + +diff --git a/tools/tracing/rtla/.gitignore b/tools/tracing/rtla/.gitignore +index 293f0dbb0ca2..e9df32419b2b 100644 +--- a/tools/tracing/rtla/.gitignore ++++ b/tools/tracing/rtla/.gitignore +@@ -1,6 +1 @@ +-# SPDX-License-Identifier: GPL-2.0-only +-rtla +-rtla-static +-fixdep +-feature +-FEATURE-DUMP ++/rtla +diff --git a/tools/tracing/rtla/Build b/tools/tracing/rtla/Build +deleted file mode 100644 +index 6c9d5b36a315..000000000000 +--- a/tools/tracing/rtla/Build ++++ /dev/null +@@ -1 +0,0 @@ +-rtla-y += src/ +diff --git a/tools/tracing/rtla/Makefile b/tools/tracing/rtla/Makefile +index b5878be36125..afd18c678ff5 100644 +--- a/tools/tracing/rtla/Makefile ++++ b/tools/tracing/rtla/Makefile +@@ -1,86 +1,157 @@ +-# SPDX-License-Identifier: GPL-2.0-only +- +-ifeq ($(srctree),) +- srctree := $(patsubst %/,%,$(dir $(CURDIR))) +- srctree := $(patsubst %/,%,$(dir $(srctree))) +- srctree := $(patsubst %/,%,$(dir $(srctree))) ++NAME := rtla ++# Follow the kernel version ++VERSION := $(shell cat VERSION 2> /dev/null || make -sC ../../.. kernelversion | grep -v make) ++ ++# From libtracefs: ++# Makefiles suck: This macro sets a default value of $(2) for the ++# variable named by $(1), unless the variable has been set by ++# environment or command line. This is necessary for CC and AR ++# because make sets default values, so the simpler ?= approach ++# won't work as expected. ++define allow-override ++ $(if $(or $(findstring environment,$(origin $(1))),\ ++ $(findstring command line,$(origin $(1)))),,\ ++ $(eval $(1) = $(2))) ++endef ++ ++# Allow setting CC and AR, or setting CROSS_COMPILE as a prefix. ++$(call allow-override,CC,$(CROSS_COMPILE)gcc) ++$(call allow-override,AR,$(CROSS_COMPILE)ar) ++$(call allow-override,STRIP,$(CROSS_COMPILE)strip) ++$(call allow-override,PKG_CONFIG,pkg-config) ++$(call allow-override,LD_SO_CONF_PATH,/etc/ld.so.conf.d/) ++$(call allow-override,LDCONFIG,ldconfig) ++ ++INSTALL = install ++MKDIR = mkdir ++FOPTS := -flto=auto -ffat-lto-objects -fexceptions -fstack-protector-strong \ ++ -fasynchronous-unwind-tables -fstack-clash-protection ++WOPTS := -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -Wno-maybe-uninitialized ++ ++ifeq ($(CC),clang) ++ FOPTS := $(filter-out -ffat-lto-objects, $(FOPTS)) ++ WOPTS := $(filter-out -Wno-maybe-uninitialized, $(WOPTS)) + endif + +-include $(srctree)/tools/scripts/Makefile.include +- +-# O is an alias for OUTPUT +-OUTPUT := $(O) +- +-ifeq ($(OUTPUT),) +- OUTPUT := $(CURDIR) ++TRACEFS_HEADERS := $$($(PKG_CONFIG) --cflags libtracefs) ++ ++CFLAGS := -O -g -DVERSION=\"$(VERSION)\" $(FOPTS) $(MOPTS) $(WOPTS) $(TRACEFS_HEADERS) $(EXTRA_CFLAGS) ++LDFLAGS := -flto=auto -ggdb $(EXTRA_LDFLAGS) ++LIBS := $$($(PKG_CONFIG) --libs libtracefs) ++ ++SRC := $(wildcard src/*.c) ++HDR := $(wildcard src/*.h) ++OBJ := $(SRC:.c=.o) ++DIRS := src ++FILES := Makefile README.txt ++CEXT := bz2 ++TARBALL := $(NAME)-$(VERSION).tar.$(CEXT) ++TAROPTS := -cvjf $(TARBALL) ++BINDIR := /usr/bin ++DATADIR := /usr/share ++DOCDIR := $(DATADIR)/doc ++MANDIR := $(DATADIR)/man ++LICDIR := $(DATADIR)/licenses ++SRCTREE := $(or $(BUILD_SRC),$(CURDIR)) ++ ++# If running from the tarball, man pages are stored in the Documentation ++# dir. If running from the kernel source, man pages are stored in ++# Documentation/tools/rtla/. ++ifneq ($(wildcard Documentation/.*),) ++DOCSRC = Documentation/ + else +- # subdir is used by the ../Makefile in $(call descend,) +- ifneq ($(subdir),) +- OUTPUT := $(OUTPUT)/$(subdir) +- endif +-endif +- +-ifneq ($(patsubst %/,,$(lastword $(OUTPUT))),) +- OUTPUT := $(OUTPUT)/ ++DOCSRC = $(SRCTREE)/../../../Documentation/tools/rtla/ + endif + +-RTLA := $(OUTPUT)rtla +-RTLA_IN := $(RTLA)-in.o ++LIBTRACEEVENT_MIN_VERSION = 1.5 ++LIBTRACEFS_MIN_VERSION = 1.3 + +-VERSION := $(shell sh -c "make -sC ../../.. kernelversion | grep -v make") +-DOCSRC := ../../../Documentation/tools/rtla/ ++.PHONY: all warnings show_warnings ++all: warnings rtla + +-FEATURE_TESTS := libtraceevent +-FEATURE_TESTS += libtracefs +-FEATURE_DISPLAY := libtraceevent +-FEATURE_DISPLAY += libtracefs +- +-ifeq ($(V),1) +- Q = +-else +- Q = @ ++TEST_LIBTRACEEVENT = $(shell sh -c "$(PKG_CONFIG) --atleast-version $(LIBTRACEEVENT_MIN_VERSION) libtraceevent > /dev/null 2>&1 || echo n") ++ifeq ("$(TEST_LIBTRACEEVENT)", "n") ++WARNINGS = show_warnings ++MISSING_LIBS += echo "** libtraceevent version $(LIBTRACEEVENT_MIN_VERSION) or higher"; ++MISSING_PACKAGES += "libtraceevent-devel" ++MISSING_SOURCE += echo "** https://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git/ "; + endif + +-all: $(RTLA) +- +-include $(srctree)/tools/build/Makefile.include +-include Makefile.rtla +- +-# check for dependencies only on required targets +-NON_CONFIG_TARGETS := clean install tarball doc doc_clean doc_install +- +-config := 1 +-ifdef MAKECMDGOALS +-ifeq ($(filter-out $(NON_CONFIG_TARGETS),$(MAKECMDGOALS)),) +- config := 0 +-endif ++TEST_LIBTRACEFS = $(shell sh -c "$(PKG_CONFIG) --atleast-version $(LIBTRACEFS_MIN_VERSION) libtracefs > /dev/null 2>&1 || echo n") ++ifeq ("$(TEST_LIBTRACEFS)", "n") ++WARNINGS = show_warnings ++MISSING_LIBS += echo "** libtracefs version $(LIBTRACEFS_MIN_VERSION) or higher"; ++MISSING_PACKAGES += "libtracefs-devel" ++MISSING_SOURCE += echo "** https://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git/ "; + endif + +-ifeq ($(config),1) +- include $(srctree)/tools/build/Makefile.feature +- include Makefile.config ++define show_dependencies ++ @echo "********************************************"; \ ++ echo "** NOTICE: Failed build dependencies"; \ ++ echo "**"; \ ++ echo "** Required Libraries:"; \ ++ $(MISSING_LIBS) \ ++ echo "**"; \ ++ echo "** Consider installing the latest libtracefs from your"; \ ++ echo "** distribution, e.g., 'dnf install $(MISSING_PACKAGES)' on Fedora,"; \ ++ echo "** or from source:"; \ ++ echo "**"; \ ++ $(MISSING_SOURCE) \ ++ echo "**"; \ ++ echo "********************************************" ++endef ++ ++show_warnings: ++ $(call show_dependencies); ++ ++ifneq ("$(WARNINGS)", "") ++ERROR_OUT = $(error Please add the necessary dependencies) ++ ++warnings: $(WARNINGS) ++ $(ERROR_OUT) + endif + +-CFLAGS += $(INCLUDES) $(LIB_INCLUDES) +- +-export CFLAGS OUTPUT srctree +- +-$(RTLA): $(RTLA_IN) +- $(QUIET_LINK)$(CC) $(LDFLAGS) -o $(RTLA) $(RTLA_IN) $(EXTLIBS) +- +-static: $(RTLA_IN) +- $(eval LDFLAGS += -static) +- $(QUIET_LINK)$(CC) -static $(LDFLAGS) -o $(RTLA)-static $(RTLA_IN) $(EXTLIBS) +- +-rtla.%: fixdep FORCE +- make -f $(srctree)/tools/build/Makefile.build dir=. $@ +- +-$(RTLA_IN): fixdep FORCE +- make $(build)=rtla +- +-clean: doc_clean fixdep-clean +- $(call QUIET_CLEAN, rtla) +- $(Q)find . -name '*.o' -delete -o -name '\.*.cmd' -delete -o -name '\.*.d' -delete +- $(Q)rm -f rtla rtla-static fixdep FEATURE-DUMP rtla-* +- $(Q)rm -rf feature +-.PHONY: FORCE clean ++rtla: $(OBJ) ++ $(CC) -o rtla $(LDFLAGS) $(OBJ) $(LIBS) ++ ++static: $(OBJ) ++ $(CC) -o rtla-static $(LDFLAGS) --static $(OBJ) $(LIBS) -lpthread -ldl ++ ++.PHONY: install ++install: doc_install ++ $(MKDIR) -p $(DESTDIR)$(BINDIR) ++ $(INSTALL) rtla -m 755 $(DESTDIR)$(BINDIR) ++ $(STRIP) $(DESTDIR)$(BINDIR)/rtla ++ @test ! -f $(DESTDIR)$(BINDIR)/osnoise || rm $(DESTDIR)$(BINDIR)/osnoise ++ ln -s rtla $(DESTDIR)$(BINDIR)/osnoise ++ @test ! -f $(DESTDIR)$(BINDIR)/hwnoise || rm $(DESTDIR)$(BINDIR)/hwnoise ++ ln -s rtla $(DESTDIR)$(BINDIR)/hwnoise ++ @test ! -f $(DESTDIR)$(BINDIR)/timerlat || rm $(DESTDIR)$(BINDIR)/timerlat ++ ln -s rtla $(DESTDIR)$(BINDIR)/timerlat ++ ++.PHONY: clean tarball ++clean: doc_clean ++ @test ! -f rtla || rm rtla ++ @test ! -f rtla-static || rm rtla-static ++ @test ! -f src/rtla.o || rm src/rtla.o ++ @test ! -f $(TARBALL) || rm -f $(TARBALL) ++ @rm -rf *~ $(OBJ) *.tar.$(CEXT) ++ ++tarball: clean ++ rm -rf $(NAME)-$(VERSION) && mkdir $(NAME)-$(VERSION) ++ echo $(VERSION) > $(NAME)-$(VERSION)/VERSION ++ cp -r $(DIRS) $(FILES) $(NAME)-$(VERSION) ++ mkdir $(NAME)-$(VERSION)/Documentation/ ++ cp -rp $(SRCTREE)/../../../Documentation/tools/rtla/* $(NAME)-$(VERSION)/Documentation/ ++ tar $(TAROPTS) --exclude='*~' $(NAME)-$(VERSION) ++ rm -rf $(NAME)-$(VERSION) ++ ++.PHONY: doc doc_clean doc_install ++doc: ++ $(MAKE) -C $(DOCSRC) ++ ++doc_clean: ++ $(MAKE) -C $(DOCSRC) clean ++ ++doc_install: ++ $(MAKE) -C $(DOCSRC) install +diff --git a/tools/tracing/rtla/Makefile.rtla b/tools/tracing/rtla/Makefile.rtla +deleted file mode 100644 +index 3ff0b8970896..000000000000 +--- a/tools/tracing/rtla/Makefile.rtla ++++ /dev/null +@@ -1,80 +0,0 @@ +-# SPDX-License-Identifier: GPL-2.0-only +- +-define allow-override +- $(if $(or $(findstring environment,$(origin $(1))),\ +- $(findstring command line,$(origin $(1)))),,\ +- $(eval $(1) = $(2))) +-endef +- +-# Allow setting CC and AR, or setting CROSS_COMPILE as a prefix. +-$(call allow-override,CC,$(CROSS_COMPILE)gcc) +-$(call allow-override,AR,$(CROSS_COMPILE)ar) +-$(call allow-override,STRIP,$(CROSS_COMPILE)strip) +-$(call allow-override,PKG_CONFIG,pkg-config) +-$(call allow-override,LD_SO_CONF_PATH,/etc/ld.so.conf.d/) +-$(call allow-override,LDCONFIG,ldconfig) +-export CC AR STRIP PKG_CONFIG LD_SO_CONF_PATH LDCONFIG +- +-FOPTS := -flto=auto -ffat-lto-objects -fexceptions -fstack-protector-strong \ +- -fasynchronous-unwind-tables -fstack-clash-protection +-WOPTS := -O -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 \ +- -Wp,-D_GLIBCXX_ASSERTIONS -Wno-maybe-uninitialized +- +-ifeq ($(CC),clang) +- FOPTS := $(filter-out -flto=auto -ffat-lto-objects, $(FOPTS)) +- WOPTS := $(filter-out -Wno-maybe-uninitialized, $(WOPTS)) +-endif +- +-CFLAGS := -g -DVERSION=\"$(VERSION)\" $(FOPTS) $(WOPTS) $(CFLAGS) +-LDFLAGS := -ggdb $(LDFLAGS) +- +-RM := rm -rf +-LN := ln -s +-INSTALL := install +-MKDIR := mkdir +-STRIP := strip +-BINDIR := /usr/bin +- +-.PHONY: install +-install: doc_install +- @$(MKDIR) -p $(DESTDIR)$(BINDIR) +- $(call QUIET_INSTALL,rtla)$(INSTALL) rtla -m 755 $(DESTDIR)$(BINDIR) +- @$(STRIP) $(DESTDIR)$(BINDIR)/rtla +- @test ! -f $(DESTDIR)$(BINDIR)/osnoise || $(RM) $(DESTDIR)$(BINDIR)/osnoise +- @$(LN) rtla $(DESTDIR)$(BINDIR)/osnoise +- @test ! -f $(DESTDIR)$(BINDIR)/hwnoise || $(RM) $(DESTDIR)$(BINDIR)/hwnoise +- @$(LN) -s rtla $(DESTDIR)$(BINDIR)/hwnoise +- @test ! -f $(DESTDIR)$(BINDIR)/timerlat || $(RM) $(DESTDIR)$(BINDIR)/timerlat +- @$(LN) -s rtla $(DESTDIR)$(BINDIR)/timerlat +- +-.PHONY: doc doc_clean doc_install +-doc: +- $(MAKE) -C $(DOCSRC) +- +-doc_clean: +- $(MAKE) -C $(DOCSRC) clean +- +-doc_install: +- $(MAKE) -C $(DOCSRC) install +- +-# This section is neesary for the tarball, when the tarball +-# support is removed, we can delete these entries. +-NAME := rtla +-DIRS := src +-FILES := Makefile README.txt +-CEXT := bz2 +-TARBALL := $(NAME)-$(VERSION).tar.$(CEXT) +-TAROPTS := -cvjf $(TARBALL) +-SRCTREE := $(or $(BUILD_SRC),$(CURDIR)) +- +-tarball: clean +- $(RM) $(NAME)-$(VERSION) && $(MKDIR) $(NAME)-$(VERSION) +- echo $(VERSION) > $(NAME)-$(VERSION)/VERSION +- cp -r $(DIRS) $(FILES) $(NAME)-$(VERSION) +- $(MKDIR) $(NAME)-$(VERSION)/Documentation/ +- cp -rp $(SRCTREE)/../../../Documentation/tools/$(NAME)/* $(NAME)-$(VERSION)/Documentation/ +- cp Makefile.standalone $(NAME)-$(VERSION)/Makefile +- cp Makefile.$(NAME) $(NAME)-$(VERSION)/ +- tar $(TAROPTS) --exclude='*~' $(NAME)-$(VERSION) +- $(RM) $(NAME)-$(VERSION) +-.PHONY: tarball +diff --git a/tools/tracing/rtla/Makefile.standalone b/tools/tracing/rtla/Makefile.standalone +deleted file mode 100644 +index 86d07cb52fa5..000000000000 +--- a/tools/tracing/rtla/Makefile.standalone ++++ /dev/null +@@ -1,26 +0,0 @@ +-# SPDX-License-Identifier: GPL-2.0-only +- +-VERSION := $(shell cat VERSION) +-CFLAGS += $$($(PKG_CONFIG) --cflags libtracefs) +-EXTLIBS += $$($(PKG_CONFIG) --libs libtracefs) +- +-rtla: +- +-include Makefile.rtla +- +-SRC := $(wildcard src/*.c) +-HDR := $(wildcard src/*.h) +-OBJ := $(SRC:.c=.o) +-DOCSRC := Documentation/ +- +-rtla: $(OBJ) +- $(CC) -o rtla $(LDFLAGS) $(OBJ) $(LIBS) $(EXTLIBS) +- $(info This is a deprecated method to compile RTLA, please compile from Linux kernel source) +- +-.PHONY: clean tarball +-clean: doc_clean +- @test ! -f rtla || rm rtla +- @test ! -f rtla-static || rm rtla-static +- @test ! -f src/rtla.o || rm src/rtla.o +- @test ! -f $(TARBALL) || rm -f $(TARBALL) +- @rm -rf *~ $(OBJ) *.tar.$(CEXT) +diff --git a/tools/tracing/rtla/src/Build b/tools/tracing/rtla/src/Build +deleted file mode 100644 +index dbed9e31829b..000000000000 +--- a/tools/tracing/rtla/src/Build ++++ /dev/null +@@ -1,11 +0,0 @@ +-rtla-y += trace.o +-rtla-y += utils.o +-rtla-y += osnoise.o +-rtla-y += osnoise_top.o +-rtla-y += osnoise_hist.o +-rtla-y += timerlat.o +-rtla-y += timerlat_top.o +-rtla-y += timerlat_hist.o +-rtla-y += timerlat_u.o +-rtla-y += timerlat_aa.o +-rtla-y += rtla.o +-- +2.46.0 + diff --git a/meta/recipes-kernel/linux/linux-yocto_6.10.bb b/meta/recipes-kernel/linux/linux-yocto_6.10.bb index c0b1b0b6cc..c022d86c8c 100644 --- a/meta/recipes-kernel/linux/linux-yocto_6.10.bb +++ b/meta/recipes-kernel/linux/linux-yocto_6.10.bb @@ -41,7 +41,8 @@ PN:class-devupstream = "linux-yocto-upstream" KBRANCH:class-devupstream = "v6.10/base" SRC_URI = "git://git.yoctoproject.org/linux-yocto.git;name=machine;branch=${KBRANCH};protocol=https \ - git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=yocto-6.10;destsuffix=${KMETA};protocol=https" + git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=yocto-6.10;destsuffix=${KMETA};protocol=https \ + file://${THISDIR}/files/0001-Revert-tools-rtla-Use-tools-build-makefiles-to-build.patch" LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" LINUX_VERSION ?= "6.10.3" From patchwork Mon Aug 19 07:41:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Patrick Barsanti X-Patchwork-Id: 3323 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-lf1-f71.google.com (mail-lf1-f71.google.com [209.85.167.71]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 67DBF3F1F3 for ; Mon, 19 Aug 2024 09:42:40 +0200 (CEST) Received: by mail-lf1-f71.google.com with SMTP id 2adb3069b0e04-53335b2f40csf844242e87.3 for ; Mon, 19 Aug 2024 00:42:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1724053360; cv=pass; d=google.com; s=arc-20240605; b=aeuEBjk6Zd3hLutOf8akBD9Pp0MRTXBwEzX6g64Lyf2U83tS2zRDz35zknOyNtAxxm RxbEkwY+sAXdpvFnvirENfY0IoCLQx+iXn4uHdZqbmGCX2c4A3FKweGdyTY10NUnGOxK 1Vqeh3/eD4ubCMz685VqqZ6PuNZznAZsNdbX8Vj/0UczhMCciQnjktYZZnAKg2GN29W/ qV5PMFwhKeeS7cE7vnKiZOHAV2bggK/OPIFkdPFKMTWn1Zh2AaSno5FXGXGBSW2a0tAN jdARsGkuDEO4qg3+6GCBaeBwIwtH/h1ySgvgGAgp/BhpjxOZk6YAPohLHXAp8emkDvUi rSlA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=YfLnDm/qk5yxu54JMHxa1W6bJXmWUU8rkKu7LEF3G8s=; fh=Ms2e2rxfSFCt9dzQVZe34F5Cibu1xli1jabIHCe83j0=; b=DBGmngI9B/KfLQZGMWKGoxS03zvKoEe0XtnOesgM4YiJASXnvHhSkr5t9hNKJr4nly faGnS8qjhAqScwcTrIWMZR9SWdXZoIe1OuMlXacNk/zHmkcF9PohbJAIV/2+fMI1f0v1 KDd4Iy2UQQ/CLx7lHI4cVINYJU3HQjKApqFSebF5qhj6mm1CE5FfbCqR0Yfy7NhdzsY6 k9TBoSqpIarid1c2EoU5NlTIUqixHkfmn30c51KOIdqXqP3K5LrUdT64QO6XKu1HIm7O ud7uava2BudRWe9dDiOYQUw7i8dsSaAJcecHcThv8FWkg4m1qbK67R7HgbTGVbQtje8E LifQ==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=p2kllHwt; spf=pass (google.com: domain of patrick.barsanti@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=patrick.barsanti@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1724053360; x=1724658160; darn=patchwork.amarulasolutions.com; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=YfLnDm/qk5yxu54JMHxa1W6bJXmWUU8rkKu7LEF3G8s=; b=g9S7SI5xHZqALNcuH7/LQts7h814sP6pl9KGfYJKQX6baOzOlauRFGv2tULQh4ecMF Y/DuWc2T0Y5ZzFGXhM85OpRSVf1KK+5J8WHrWirYWHX6qub+SZXjP4NfMBMOCPmsEi6n ZUrUCs7qKXQPPH6TS5hRGyz2KCx5yPLIBLPP4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724053360; x=1724658160; h=list-unsubscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :x-beenthere:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=YfLnDm/qk5yxu54JMHxa1W6bJXmWUU8rkKu7LEF3G8s=; b=T7jrKgZSuSvstMExQZyk2sFtf9ZxRFF3EozFk9/vTmU1clH0HySs65ynRSO64G2gpD L5GhFMFlNfiDvmQvoqh/1FSY6f1T3dWqREK5Qq9zeWXGa41il8TQTgM1s5krgfLd+jl/ 5fsWaLqfc6rRKTYz5ULaKC/yRbRidvGj4iYt68OVcAFxjPzlyLge5oo0wu4y8QZ1yr65 77qSbR353FtGd28GzMb4C8YgGvTn6S2ajdQLDbZFloMjIeR5Zps4bjOf4SDhcRQ6jlUM iuvi3Q6tuC86b0RqmzsmD66UxiJJIR1HOsrAGOKnDjaQp7HM155nVc9xDuZqvcmrBquW USNg== X-Forwarded-Encrypted: i=2; AJvYcCVDvpcSrZRWLL6iOCsueHDeblVCOv8ti2JYqvL0VTYc5TNWYxD+Sy9PSDdaqO7CBxxgMQQFqBGzIiV78vAopjdmjZPF1KxCdovqbCrhwVcWYtZ6qjNo2U/wacC9Bw== X-Gm-Message-State: AOJu0YzLZUY9vyCGqHXeZbfpaKyE5xNx2ZTCgio7mctI/y5y7Cm+fL3x bQO/EsmI4Pb0bMNXLdgj2GN4ufOn7WDOSO7Xl02l6711PE6wcNi5icmmKmxrAHLG2A== X-Google-Smtp-Source: AGHT+IGFpkqh6zOvROPflClHWnE8IMehXpgxpN4SwR9OeVc2jg5280ZWZdmUlt/t/Ndcj998c8UXKA== X-Received: by 2002:a05:6512:238b:b0:52c:a016:5405 with SMTP id 2adb3069b0e04-5332df3696fmr5357168e87.8.1724053359611; Mon, 19 Aug 2024 00:42:39 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:6402:440d:b0:58f:749f:1c6c with SMTP id 4fb4d7f45d1cf-5beb3884af6ls1740433a12.1.-pod-prod-01-eu; Mon, 19 Aug 2024 00:42:38 -0700 (PDT) X-Received: by 2002:a17:907:96ab:b0:a7d:e8f6:224f with SMTP id a640c23a62f3a-a83a9fed530mr471083366b.20.1724053358063; Mon, 19 Aug 2024 00:42:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1724053358; cv=none; d=google.com; s=arc-20160816; b=amal2QYmKrdvU4ZT4QHSI3EQxRZKmlvIha0apDOvH22CAM8m3D8piOyNJWBlfbGn3z DUqaGVYB/ouEQIUKnBuSdOfs0PlQyFJ0aj4f9YasK9PfPew6ryWHUbJNRXEuyEqEN+Wt ZvosCVCNwYqSO6wDQCEPmK9+nzv1t9imIb3Yw0tMEwS88vId7PIMAHeay0hdBxa2zaDN e19+DSylV2vEPAQRf1/gxRrDs2f1mOXBUCBwRnc8D5bwYzXpPjHxao3CyuoDnz+7z4Ud 8BQ9tKx6AfhswSIR3l0sYtGOWfX8fVMNSeNdavD2nbhc7mY6wHm6kZ9h96GKNtbmVhLo NZCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=p91+RErlHcKRRRKmH07+D2y4R2mxrPUxN2u1GJ0B8DM=; fh=u9hQ0FYhgFaRYZt60LMCTuHprfvTVd18Zbk+lSMUPZs=; b=uIrEvrgxnoBkQ7O0i2i7BUtgCIe76QHeNS8n6QsJ/fcz97VTuNGZNrQTSGfn25iUYk MsEkrOeKwnYu0QD7hwbberZ+Kk/nrSEuKfZf60e2hxSd8O/Ko01LgnjGhSnsVt6BpQ7c sPFIVY36n4GcBQff45KfbSpK6BTvomHW1/1EZuBJrqxb4RSKe+0yOgpP6XICAv4+p0pW xlJ6BuNVBeLuu6jeOjgR/xYgplxIc0reIeBS7SaCcJM1LI4XGabuW4XCuQOq9fb2mY1o i+OuK1q6GZVXJY1IyPysC2YwPhOyigX/PKW8hF05hUjiGQ2tjDXy2Lp9XN4sl2Kj6UeH IZrg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=p2kllHwt; spf=pass (google.com: domain of patrick.barsanti@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=patrick.barsanti@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id a640c23a62f3a-a862d028049sor27002466b.9.2024.08.19.00.42.38 for (Google Transport Security); Mon, 19 Aug 2024 00:42:38 -0700 (PDT) Received-SPF: pass (google.com: domain of patrick.barsanti@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a17:907:94c5:b0:a7d:48e3:4117 with SMTP id a640c23a62f3a-a83aa0c143emr440089566b.68.1724053357405; Mon, 19 Aug 2024 00:42:37 -0700 (PDT) Received: from localhost.localdomain (i116103.upc-i.chello.nl. [62.195.116.103]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a83838c68f2sm598333966b.2.2024.08.19.00.42.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Aug 2024 00:42:37 -0700 (PDT) From: Patrick Barsanti To: linux-amarula@amarulasolutions.com Cc: michael@amarulasolutions.com, adam.duskett@amarulasolutions.com, Patrick Barsanti Subject: [PATCH 3/6] rtla: Add kernel configs to enable tracers Date: Mon, 19 Aug 2024 09:41:59 +0200 Message-ID: <20240819074202.34144-4-patrick.barsanti@amarulasolutions.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240819074202.34144-1-patrick.barsanti@amarulasolutions.com> References: <20240819074202.34144-1-patrick.barsanti@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: patrick.barsanti@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=p2kllHwt; spf=pass (google.com: domain of patrick.barsanti@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=patrick.barsanti@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , rtla is entirely based upon usage of the following kernel tracers: - timerlat - osnoise - hwnoise which by default are not enabled in linux-yocto. Add the .cfg file which enables them, and add that file to the sources, so that rtla can work as intended. Signed-off-by: Patrick Barsanti --- meta/recipes-kernel/linux/files/rtla.cfg | 3 +++ meta/recipes-kernel/linux/linux-yocto_6.10.bb | 3 ++- meta/recipes-kernel/linux/linux-yocto_6.6.bb | 3 ++- 3 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 meta/recipes-kernel/linux/files/rtla.cfg diff --git a/meta/recipes-kernel/linux/files/rtla.cfg b/meta/recipes-kernel/linux/files/rtla.cfg new file mode 100644 index 0000000000..a36f2c8afe --- /dev/null +++ b/meta/recipes-kernel/linux/files/rtla.cfg @@ -0,0 +1,3 @@ +CONFIG_OSNOISE_TRACER=y +CONFIG_HWLAT_TRACER=y +CONFIG_TIMERLAT_TRACER=y diff --git a/meta/recipes-kernel/linux/linux-yocto_6.10.bb b/meta/recipes-kernel/linux/linux-yocto_6.10.bb index c022d86c8c..ee0227380c 100644 --- a/meta/recipes-kernel/linux/linux-yocto_6.10.bb +++ b/meta/recipes-kernel/linux/linux-yocto_6.10.bb @@ -42,7 +42,8 @@ KBRANCH:class-devupstream = "v6.10/base" SRC_URI = "git://git.yoctoproject.org/linux-yocto.git;name=machine;branch=${KBRANCH};protocol=https \ git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=yocto-6.10;destsuffix=${KMETA};protocol=https \ - file://${THISDIR}/files/0001-Revert-tools-rtla-Use-tools-build-makefiles-to-build.patch" + file://${THISDIR}/files/0001-Revert-tools-rtla-Use-tools-build-makefiles-to-build.patch \ + file://${THISDIR}/files/rtla.cfg" LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" LINUX_VERSION ?= "6.10.3" diff --git a/meta/recipes-kernel/linux/linux-yocto_6.6.bb b/meta/recipes-kernel/linux/linux-yocto_6.6.bb index 83b7066b90..5a574add85 100644 --- a/meta/recipes-kernel/linux/linux-yocto_6.6.bb +++ b/meta/recipes-kernel/linux/linux-yocto_6.6.bb @@ -41,7 +41,8 @@ PN:class-devupstream = "linux-yocto-upstream" KBRANCH:class-devupstream = "v6.6/base" SRC_URI = "git://git.yoctoproject.org/linux-yocto.git;name=machine;branch=${KBRANCH};protocol=https \ - git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=yocto-6.6;destsuffix=${KMETA};protocol=https" + git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=yocto-6.6;destsuffix=${KMETA};protocol=https \ + file://${THISDIR}/files/rtla.cfg" LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" LINUX_VERSION ?= "6.6.45" From patchwork Mon Aug 19 07:42:00 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Patrick Barsanti X-Patchwork-Id: 3324 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-lf1-f70.google.com (mail-lf1-f70.google.com [209.85.167.70]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 3D5AE3F1F3 for ; Mon, 19 Aug 2024 09:42:45 +0200 (CEST) Received: by mail-lf1-f70.google.com with SMTP id 2adb3069b0e04-52f00bde29dsf4986355e87.3 for ; Mon, 19 Aug 2024 00:42:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1724053364; cv=pass; d=google.com; s=arc-20160816; b=I1J0Js2CByJbpsm3GOmiEm4hubyPQXGknT7OwbeVYAwFOq4+Bh6lTVb19HiB8muksy Yrq3D4ZBemU1ieCjyafGgQOOYy1RrKQHLUwUbGhFXDtmmlC6PADFlG7SiJ7gXSKgaUXm a9PSB3bl354eZvuejl7rhjjDj/rnq9rgBdFyl8UJeuuwcAPklgdpc33g96Ug4qZWkcRY p7R3ZqqAWCPu6BgalQ7YlGZ3pUezhoPjx0t5uzoLiMYiI7yf5yXQKOS9DJMChqZ8aBml McG/6Lb72tT9bMO0XBWT1hyB8qUSEyEPiCzikjhvxq1DrF/VFo/o/rgB0QQ/luJorlu5 6LXw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=2fhRoeLK1JucFB2Cn0r6JAYFHRhf0MvXehaFZasDoFk=; fh=6IpZ1Wzsj0MDeltpO8J+wl4y/ZniinqMV6pW6bGUN8o=; b=SplSAmXF24yPDGKkaPz9anh9GutoQOkroOS76IR47vSZyNhKZ7a+SE+7P6ol4p8aZo 5VQ0P4VEBbPSUqgDX+Dr+P0CtUtRgS9UypKCxzdjlS5+dvMfbY7a7s5dlYOcAsu0bVtL LUPu+DzKeUxKytWF9VquIuyjaHjbXcjDJWDh8JGdtkgs0pBHg0CL8p5BvEJxQlwi8oAn ZwF5LD2OSGFBkhTm0m7C48UlqvDnx/gq9ziaI25I0uROzuLeY7w/ztYpseJyvHUT0Cyp 2H2DvLO7rGUWkFFpzWdv+qc2TdotVXezYf7/WoibG+Fue7Eq9J3rogFzQ2kz1I5RFxaB ArJA==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=riV4ajY+; spf=pass (google.com: domain of patrick.barsanti@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=patrick.barsanti@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1724053364; x=1724658164; darn=patchwork.amarulasolutions.com; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=2fhRoeLK1JucFB2Cn0r6JAYFHRhf0MvXehaFZasDoFk=; b=pXch4ov64H299bS9w0lWfw5XbbcgU8jHp9oy/2+ywjZoYY/Wd0ROhFH2VZLxE4uiQZ g9lafB6XntmAI6EZ+XJey4l9qhxM4U0mqLKg6yL6hCUJ1o9ox9t8N1t+E2UK0xTvimq3 JaqjSbXs8awfpvKR399Cq5qqerPRyA/HfY8wY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724053364; x=1724658164; h=list-unsubscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :x-beenthere:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=2fhRoeLK1JucFB2Cn0r6JAYFHRhf0MvXehaFZasDoFk=; b=CSOuebz6obryRVqKjJbEAyiFqlpXlMvZoyTSKxGNwk1D0PFLjdfcuhy5LzQ4J/801r frqIp2sYZUiaVxqUMOzPluPAzPrWYx+ViMo6JeiB4hC32EwvVklNGhEUp85U0Ye0liIQ WMk2rAQxKLrkkk3gl2ADmIk1+dBaffzZ9+cP77IGrPOh6tNcEQHdkc4guxcvPV9n2Z2c SpZlAClPv5s2hsB8ZDz4MU6H0kisx4qfSLQ49JF/O7L3Y2cXUqzcnLBrl4zsJ6htK15z hw9mGNd63musJbltEgJ/hZtFLHAABlsQc9ahiy/olOVMehO34v97fSQaRECFSIZqceOU +ocw== X-Forwarded-Encrypted: i=2; AJvYcCXdo/ChrA/vHnZebJspvjH6dMxpRMbDREexLHY3vg08H2myozjwNjUS5f2odTwZ2dV3C37ZvZgSy7mh21/3DwWqlaYi79TJhbxXIyaAtNEihcykxLrxP30s6vdhhA== X-Gm-Message-State: AOJu0Yx45fa2C9bNks3phq47cey4zXi+exuQcyU/Oj+sgQSIBswNTqgi BXscWMu3dq2i6i5UFWDa9+sy1eS7Ku32GmWzu0rXkRqbHWPHWZVRhzMkcYu8l6DCKA== X-Google-Smtp-Source: AGHT+IG+v6bEOI5eLAsqT0GYYQxR68KR959X16UPw/KDHqUTpKCh0Xnw1mbCLDb5Si2iTwWS/9LsRg== X-Received: by 2002:a05:6512:4007:b0:530:ab68:25c5 with SMTP id 2adb3069b0e04-5331c691facmr8695824e87.2.1724053364326; Mon, 19 Aug 2024 00:42:44 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:6512:b84:b0:52f:d1b7:329a with SMTP id 2adb3069b0e04-53307d18c55ls100168e87.1.-pod-prod-05-eu; Mon, 19 Aug 2024 00:42:42 -0700 (PDT) X-Received: by 2002:a05:6512:6c8:b0:52c:df83:a740 with SMTP id 2adb3069b0e04-5331c6bb6abmr8382352e87.30.1724053362524; Mon, 19 Aug 2024 00:42:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1724053362; cv=none; d=google.com; s=arc-20160816; b=S8vQ3FAfxhOf7bKt5HPY86sOeY/NV1e0rLJ3W+tMV6chs7Sd4p/zmHz/V4wgVV8qD3 q+3BDXfP5E8NBqUiQjZ0jKFhgPf2k9TpLrepVzeSIsMFWU1tiPFUMAP/cEgzVd39g2Fq rO0ddVxYMHEFsrlKMDERB21L7y4iHLURLJbid2LYWA+vl1xdun7lSJZ+Pc4383ttv96I QWhPz5M4EQ/3TM5KZxrK+/dzKh0lNorWqpr8dqFkpslY8/9xWygEn0kAz7YI0X+nMGym k2TiO4J0L/EeQGQdq+NNR7KdW9KRiRR0/jbbSM90p9t+heXhnFJgcRrdHS3AZcISLkSS 0ENw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=KU70sO2f1MbpL1a0GzuemSFqFOySekwPtNYM57PQnPo=; fh=u9hQ0FYhgFaRYZt60LMCTuHprfvTVd18Zbk+lSMUPZs=; b=k3tRwSpptV0ZwopboEOzRttwTgRUHzzFFSjdkEDzllQ20zKth1cOXDfxhcBO7MDdih ubjAnY7YhcGhktrmelI8zD92mmU9iSeusZbVc7D++TqQWK7PfZR7W59/0/P07sdDL/IJ i9xHW55D8rhqWQN+G0jb3nOZzsZeST9HRew419STV+3lo+T+DCNl6S+AOR3bf1eY7VwZ h27yw0pMdWxE0BXQKXYR24JcyJbSVXppD7LAPvJ0+mvhU1nimdNxE8nhLbbR3JB1VQhD O3x/4S9a3vNygGc2TN4fx+O7D1fBguVTcEKX+4BPxVpceckSR3zP1RZrqiVrIq2rpq8u p6Mg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=riV4ajY+; spf=pass (google.com: domain of patrick.barsanti@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=patrick.barsanti@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id 2adb3069b0e04-5330d3bfad9sor2358137e87.14.2024.08.19.00.42.42 for (Google Transport Security); Mon, 19 Aug 2024 00:42:42 -0700 (PDT) Received-SPF: pass (google.com: domain of patrick.barsanti@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a05:6512:4023:b0:533:e5f:2678 with SMTP id 2adb3069b0e04-5331c6e3eb1mr6684204e87.53.1724053361512; Mon, 19 Aug 2024 00:42:41 -0700 (PDT) Received: from localhost.localdomain (i116103.upc-i.chello.nl. [62.195.116.103]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a83838c68f2sm598333966b.2.2024.08.19.00.42.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Aug 2024 00:42:40 -0700 (PDT) From: Patrick Barsanti To: linux-amarula@amarulasolutions.com Cc: michael@amarulasolutions.com, adam.duskett@amarulasolutions.com, Patrick Barsanti Subject: [PATCH 4/6] rtla: Add kernel recipe for rtla Date: Mon, 19 Aug 2024 09:42:00 +0200 Message-ID: <20240819074202.34144-5-patrick.barsanti@amarulasolutions.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240819074202.34144-1-patrick.barsanti@amarulasolutions.com> References: <20240819074202.34144-1-patrick.barsanti@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: patrick.barsanti@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=riV4ajY+; spf=pass (google.com: domain of patrick.barsanti@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=patrick.barsanti@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , The rtla is a meta-tool that includes a set of commands that aims to analyze the real-time properties of Linux. Add support for it in poky. Signed-off-by: Patrick Barsanti --- meta/recipes-kernel/rtla/rtla.bb | 137 +++++++++++++++++++++++++++++++ 1 file changed, 137 insertions(+) create mode 100644 meta/recipes-kernel/rtla/rtla.bb diff --git a/meta/recipes-kernel/rtla/rtla.bb b/meta/recipes-kernel/rtla/rtla.bb new file mode 100644 index 0000000000..3eab857f92 --- /dev/null +++ b/meta/recipes-kernel/rtla/rtla.bb @@ -0,0 +1,137 @@ +SUMMARY = "RTLA (Real-Time Linux Analysis) tool" +DESCRIPTION = "The rtla is a meta-tool that includes a set of commands that \ + aims to analyze the real-time properties of Linux. But instead of testing \ + Linux as a black box, rtla leverages kernel tracing capabilities to provide \ + precise information about the properties and root causes of unexpected results." + +HOMEPAGE = "https://www.kernel.org/doc/html/latest/tools/rtla/rtla.html" + +LICENSE = "GPL-2.0-only" + +DEPENDS = "\ + ${MLPREFIX}binutils \ + ${MLPREFIX}elfutils \ + bison-native \ + flex-native \ + libgcc \ + libtraceevent \ + libtracefs \ + python3 \ + python3-docutils-native \ + python3-setuptools-native \ + virtual/${MLPREFIX}libc \ + xz \ +" + +do_configure[depends] += "virtual/kernel:do_shared_workdir" + +PROVIDES = "virtual/rtla" + +inherit linux-kernel-base kernel-arch manpages + +inherit_defer ${@bb.utils.contains('PACKAGECONFIG', 'python', 'python3targetconfig', '', d)} +inherit python3-dir +export PYTHON_SITEPACKAGES_DIR + +#kernel 3.1+ supports WERROR to disable warnings as errors +export WERROR = "0" + +do_populate_lic[depends] += "virtual/kernel:do_shared_workdir" + +inherit kernelsrc + +S = "${WORKDIR}/${BP}" + +LDFLAGS = "-ldl -lutil" + +EXTRA_OEMAKE = '\ + V=1 \ + VF=1 \ + -C ${S}/tools/tracing/rtla \ + O=${B} \ + CROSS_COMPILE=${TARGET_PREFIX} \ + ARCH=${ARCH} \ + CC="${CC}" \ + CCLD="${CC}" \ + LDSHARED="${CC} -shared" \ + AR="${AR}" \ + LD="${LD}" \ + EXTRA_CFLAGS="-ldw -I${S}" \ + YFLAGS='-y --file-prefix-map=${WORKDIR}=${TARGET_DBGSRC_DIR}' \ + ${PACKAGECONFIG_CONFARGS} \ + PKG_CONFIG=pkg-config \ + TMPDIR="${B}" \ + LIBUNWIND_DIR=${STAGING_EXECPREFIXDIR} \ +' + +EXTRA_OEMAKE += "\ + 'DESTDIR=${D}' \ + 'prefix=${prefix}' \ + 'bindir=${bindir}' \ + 'sharedir=${datadir}' \ + 'sysconfdir=${sysconfdir}' \ + 'sharedir=${@os.path.relpath(datadir, prefix)}' \ + 'mandir=${@os.path.relpath(mandir, prefix)}' \ + 'infodir=${@os.path.relpath(infodir, prefix)}' \ + ${@bb.utils.contains('PACKAGECONFIG', 'python', 'PYTHON=python3 PYTHON_CONFIG=python3-config', '', d)} \ +" + +# During do_configure, we might run a 'make clean'. That often breaks +# when done in parallel, so disable parallelism for do_configure. +EXTRA_OEMAKE:append:task-configure = " JOBS=1" + +RTLA_SRC ?= "\ + arch/${ARCH}/Makefile \ + arch/arm64/tools \ + Documentation/tools/rtla \ + Makefile \ + scripts/ \ + tools/arch \ + tools/build \ + tools/include \ + tools/lib \ + tools/Makefile \ + tools/scripts \ + tools/tracing/Makefile \ + tools/tracing/rtla \ +" + +do_compile() { + # Linux kernel build system is expected to do the right thing + unset CFLAGS + test -e ${S}/tools/lib/traceevent/plugins/Makefile && \ + sed -i -e 's|\$(libdir)/traceevent/plugins|\$(libdir)/traceevent_${KERNEL_VERSION}/plugins|g' ${S}/tools/lib/traceevent/plugins/Makefile + test -e ${S}/tools/tracing/rtla/Makefile.config && \ + sed -i -e 's|\$(libdir)/traceevent/plugins|\$(libdir)/traceevent_${KERNEL_VERSION}/plugins|g' ${S}/tools/tracing/rtla/Makefile.config + oe_runmake all +} + +do_install() { + # Linux kernel build system is expected to do the right thing + unset CFLAGS + oe_runmake install +} + +do_configure[prefuncs] += "copy_rtla_source_from_kernel" +python copy_rtla_source_from_kernel() { + sources = (d.getVar("RTLA_SRC") or "").split() + src_dir = d.getVar("STAGING_KERNEL_DIR") + dest_dir = d.getVar("S") + bb.utils.mkdirhier(dest_dir) + bb.utils.prunedir(dest_dir) + for s in sources: + src = oe.path.join(src_dir, s) + dest = oe.path.join(dest_dir, s) + if not os.path.exists(src): + bb.warn("Path does not exist: %s. Maybe RTLA_SRC lists more files than what your kernel version provides and needs." % src) + continue + if os.path.isdir(src): + oe.path.copyhardlinktree(src, dest) + else: + src_path = os.path.dirname(s) + os.makedirs(os.path.join(dest_dir,src_path),exist_ok=True) + bb.utils.copyfile(src, dest) +} + +# Skip the stripping QA check +INSANE_SKIP:${PN} += "already-stripped" From patchwork Mon Aug 19 07:42:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Patrick Barsanti X-Patchwork-Id: 3325 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-lf1-f71.google.com (mail-lf1-f71.google.com [209.85.167.71]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 9FEE63F1F3 for ; Mon, 19 Aug 2024 09:42:47 +0200 (CEST) Received: by mail-lf1-f71.google.com with SMTP id 2adb3069b0e04-52efc9f2080sf3934361e87.3 for ; Mon, 19 Aug 2024 00:42:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1724053367; cv=pass; d=google.com; s=arc-20160816; b=QIw8NGwoccEOMlO11Fmcc5ijvMC89lYrdd+udUCWjuDtE8g5zMBltSMRBikhVvV+91 UNLH+9rjS13QWmHjJP/V51yGuYtaLXaXW9TprI5DePRfwRbuEQ3cTnNzzIv2ORt38NcY Ja2CXnM7Xu/vQbaccYs/21NapNt3jhxfA/LuhRNyaXS3Ge7VFyN9078XHrbPjaMh2eAu 7nasj+4Y4zMfjZFxG8df5QX/zP2lZt9JiZdWl7KJMIouzDN6RKlcyV1qkFuc5KwJKqyg IxzPdGUSG9M9EJQIhR1Yqe4ARKiEADOh0Eigt/VsistbCg7SZw/b1ljl4vmr2k5wOu0O 0ktQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=Hy9G+h0vK3zVtVh81Ls8RmW67EwtgViRmpqLaKz11F8=; fh=+PUYwWhsQ46dBBunn/dRHCVpkbbxCmZaW3jbY1zhhOM=; b=weUmUez0XOHYp6T7Dd6AZVDX+96uncWbzrTYJPVJebet36YMExeaq4W/tSBP+vr2Cm w5r0dh66fRwvXQhofc5PdX5Nx4DUZ60Q2Cr3V476I3oZfnQm7fSrCB29ougb1N/TlK9p 4ihGGjK6bOKuRV9Hdyc1cjxK+FhV4MW7DxcGb8mSDNbWYLpznWAL0vnTWzMPP7IKmX/C lcONRZHPk/IrInwkV4I13glpC8THlzdWLndGz4mZsqqkY82LHQAiI67ht+1G6O/JDu8Q r/OtQAIstI9UDc/hfIAoI3KY7K7A/U70HI9DUGlSOwVNo/Y9GKpDZKOBsll1PO1lY2Hs 8RoA==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=ZaeW3h8P; spf=pass (google.com: domain of patrick.barsanti@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=patrick.barsanti@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1724053367; x=1724658167; darn=patchwork.amarulasolutions.com; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=Hy9G+h0vK3zVtVh81Ls8RmW67EwtgViRmpqLaKz11F8=; b=Tn+frpREobXY9VUMoWZl8QFYejq/50ZcuZGfKiFJV6Rri0qOFoFz5tFgzmEIlaHyrI qLdMGMk87Jm8ULSb7nhXbExaWwEVJw46QMlxZQrW7simFPh+M2x7WyWrorMZBkdQ9R0v ZR9vL+mHjiYGrcP/rshl7jigJbKIi4VkUvwQU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724053367; x=1724658167; h=list-unsubscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :x-beenthere:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Hy9G+h0vK3zVtVh81Ls8RmW67EwtgViRmpqLaKz11F8=; b=VdKiasG83c1RxK7/N6OpM9AMVI+7CtU/ZDiv7KGp26Y/eNq/pdDKvrhdDjPSRvQ2me CHDepGRejZmIEmwzHKWIK8RcCkfTLDasbIhCWPQvF1sGrXrTJyQRavcacnzc3RJa4PHI uuJctx+esLCWiq4nYygBMRaJF0erLFcuAvRH1P4QyWkeimpJ07GHLaQ5SEWEAUV6axtF AcCTj75Wlt19jQs/ij1NFhfMMPsY2Hg+OWCg3nh7N5/KD0t5+mIBHw/P39LOmMw1A7DQ Yx/Rxugji5kl29lKtEcxc0U/5wgTqt8oU8xvZH2B9S4SgtsLPsgRYbZuvkYTfhj414wM 776Q== X-Forwarded-Encrypted: i=2; AJvYcCWwFbEmA91rvvqiaitEhTQp1nH7MhPvHPePR0WkUSj9AQ+Vt6GI+dLveCfb9CSEERgwZOMTNh/45z1uVhu1ofA7kDfeJSSEuR7TH6MjMTgZ5KZZncInya0PHF8AFg== X-Gm-Message-State: AOJu0Yzi6dbIgQOJmUNTJDjTwJPc/w5asNeueOx+/FPG6O296a1jBxDD Ax3efVq3dFttNcjGIsgDI9/XEypIgqcghrtKMHNYha0WHb1zh3oCZ3V2X9W6YX+Ikw== X-Google-Smtp-Source: AGHT+IHkLxGgcg+QRCBWSxWWZ9CeXMP8Dg9PhrKlZnMhxqlWuY4L4g+aAkPrqiIGJmd7lf82X4EBaw== X-Received: by 2002:a05:6512:1092:b0:52d:b150:b9b3 with SMTP id 2adb3069b0e04-5331c6b34a3mr6163400e87.32.1724053366904; Mon, 19 Aug 2024 00:42:46 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:6512:3e08:b0:533:3335:db06 with SMTP id 2adb3069b0e04-5333335dcfcls578585e87.2.-pod-prod-07-eu; Mon, 19 Aug 2024 00:42:45 -0700 (PDT) X-Received: by 2002:a05:6512:31c4:b0:530:ab86:1e with SMTP id 2adb3069b0e04-5331c68a93dmr7397759e87.6.1724053365148; Mon, 19 Aug 2024 00:42:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1724053365; cv=none; d=google.com; s=arc-20160816; b=HWkPtpiqJ8q74T8ZJ/RIT1c1NDWMcvGJBzENfNlRfaCAbtt8RJks+HNVddcY5SkwYG gN8v861P013j9xrYaI6NTcRlfbzt9WVY7SL2G636Kdkw+VX7bsjYvu62ds34OpYYjVdb ZCFQ/r/hHOCjBhMY8/arHA/tvF4pva+YaudJ0tMPKEg3GD1uEk4yZIGPUUvkIQIF6zhX zt6uf5GunInyfxPvOtbxhKSJX5H/Os4cBGu5eUVySztxnvSfVZOhew29xtOKZVh13S6z DjdGVk4ABoLBBdgASozrAEt8MWZ2XEuLDJnmsI8DO8NQFWkVMJJWK5mabHtCIv1MjqW/ vqlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=uYT/yJohNMThqIo+Bg1KonWAtADtS+ZZ5yaoZg4YS/c=; fh=u9hQ0FYhgFaRYZt60LMCTuHprfvTVd18Zbk+lSMUPZs=; b=fTSMrcDe32QAmI8dD2haOx9zQD9y8zuqHv36k/UScj73EuXpCtcd0GUrwXONvg+vjL ijtYmuuPJrMCm8XmIaXSOuOGiQ5ydCnVoEvW6ThokpJ4S0DQpH/CES9HY3aqB/Fr5fCc 9bNO4AcZzQvwvT+4lmwJBjbJGc7xOWNVv/jJnU/EIz1cWhjzSO/DhmQD1M5PNCmsxHTD VePFkD2yqJQldSSeFUiUFxzgIws7y9NlZZ5eTDkWe9yQF4Ali7jBE5u4h9yhI5CVKdQd 4U+B6BNz1rIDFUB3GKQrcU/bYnWDuIoJwDVWv/nNlfa+EVNJaX7QKhu0GyA5fhQw800F JYfA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=ZaeW3h8P; spf=pass (google.com: domain of patrick.barsanti@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=patrick.barsanti@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id a640c23a62f3a-a83839564d1sor204543466b.21.2024.08.19.00.42.45 for (Google Transport Security); Mon, 19 Aug 2024 00:42:45 -0700 (PDT) Received-SPF: pass (google.com: domain of patrick.barsanti@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a17:906:bc25:b0:a7d:2a62:40e9 with SMTP id a640c23a62f3a-a8392a16e1fmr641303866b.50.1724053364266; Mon, 19 Aug 2024 00:42:44 -0700 (PDT) Received: from localhost.localdomain (i116103.upc-i.chello.nl. [62.195.116.103]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a83838c68f2sm598333966b.2.2024.08.19.00.42.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Aug 2024 00:42:44 -0700 (PDT) From: Patrick Barsanti To: linux-amarula@amarulasolutions.com Cc: michael@amarulasolutions.com, adam.duskett@amarulasolutions.com, Patrick Barsanti Subject: [PATCH 5/6] core-image-minimal: Add libgcc to IMAGE_INSTALL Date: Mon, 19 Aug 2024 09:42:01 +0200 Message-ID: <20240819074202.34144-6-patrick.barsanti@amarulasolutions.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240819074202.34144-1-patrick.barsanti@amarulasolutions.com> References: <20240819074202.34144-1-patrick.barsanti@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: patrick.barsanti@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=ZaeW3h8P; spf=pass (google.com: domain of patrick.barsanti@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=patrick.barsanti@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Add ligcc to IMAGE_INSTALL, for testing purposes. This is required with kernel version 6.10, in order for rtla to work correctly. Not doing so will result in: libgcc_s.so.1 must be installed for pthread_exit to work Signed-off-by: Patrick Barsanti --- meta/recipes-core/images/core-image-minimal.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-core/images/core-image-minimal.bb b/meta/recipes-core/images/core-image-minimal.bb index 84343adcd8..a97e667f90 100644 --- a/meta/recipes-core/images/core-image-minimal.bb +++ b/meta/recipes-core/images/core-image-minimal.bb @@ -1,6 +1,6 @@ SUMMARY = "A small image just capable of allowing a device to boot." -IMAGE_INSTALL = "packagegroup-core-boot ${CORE_IMAGE_EXTRA_INSTALL}" +IMAGE_INSTALL = "packagegroup-core-boot libgcc ${CORE_IMAGE_EXTRA_INSTALL}" IMAGE_LINGUAS = " " From patchwork Mon Aug 19 07:42:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Patrick Barsanti X-Patchwork-Id: 3326 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ed1-f70.google.com (mail-ed1-f70.google.com [209.85.208.70]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id ECD273F1F3 for ; Mon, 19 Aug 2024 09:42:49 +0200 (CEST) Received: by mail-ed1-f70.google.com with SMTP id 4fb4d7f45d1cf-5bec23ba156sf2247678a12.1 for ; Mon, 19 Aug 2024 00:42:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1724053369; cv=pass; d=google.com; s=arc-20160816; b=WTpYdCeSK+kL7A1dwmhezytPMbAz0180K9mdvt9EPg12qPvIYYOKmm+Gl7qqV9d1pE yjEpqfuZjlUzPVOiP4VygS2oho88T19IZcyTmvSHWHHngMiGAXh1wYqkbwYjAqWKWGIv R0QKPDxc5evvA0xLR2HAXGibw1eOeKyviBwUkWxK5t95p4HPfQ1CL5GgQ9dnuTSyIzrg IW+lPfMqK1h4/q4YNDx+pu8OjDgkLAwe696ELGrQn0j5C4ZhEnII5g7y8L2iYy23BrPO +pbBpc+rwe+ZWIsRsq38mhgqc/XVDc1DVhIv/4BngYjOhwAfPfVJTVJAell8vwibTVik DvAA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=ir6CZiJaOJb/tgiKaPcLx06/8jor9YW0Jif8Y4+QT5s=; fh=sLA1ckmS+Ogku95iQEqiaxNfOfIY1YXBrKVkVy7hyRg=; b=rBlwic2QiGMvozE6CHiK9ZXv71YL0OTAIqD/DmrrFdYzIaZMC69OfdVSXJRerpoCYr tVjBqTMz+kWL7E9T4VZsOndvmdixGebkktj+61KFi/L7M1U2wNlALMNpZ22NyBIkfkqi PJ6ZMJ/r/nxquLvJ0rtm1CN8wh7rBKmKqKADGqboeV0SEW/hJbjOkukjdC1cj8ey3BQQ iH2l32v+qocIiu63iSsfiUCPs2OV0V5NF5G+U5uav5sRUFDCYve4YlQuGp+EjZNOIP8T jXuqYoB/u1K3vmp1ULMLfn+dubHP/rRCfL/IdEqSJMsJKhWU5o30LY0GoE6ZUkpHC0PH h2pA==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=rsYZCPI7; spf=pass (google.com: domain of patrick.barsanti@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=patrick.barsanti@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1724053369; x=1724658169; darn=patchwork.amarulasolutions.com; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=ir6CZiJaOJb/tgiKaPcLx06/8jor9YW0Jif8Y4+QT5s=; b=BeSIxkFvIcOZSnETnvWRd2quRr951sPOCVJVeqLtuF7yZ+IOXYr65E8HEoXFdR3Z4D prr0kEtiw0qFZOvrWmu1YSUwaaRgY4do/ZAm9A5tYs9frCMXJK/w8j3k/kjuMeBVYo4a uHU/XQwu94+y+YkI893z91vaAVqTk8A6CEK6A= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724053369; x=1724658169; h=list-unsubscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :x-beenthere:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ir6CZiJaOJb/tgiKaPcLx06/8jor9YW0Jif8Y4+QT5s=; b=plL+AoLHYdTlMziQEwVP/PrL17FzUX4ziGtosMqlE1hmbiYI/hJ9HYF6HrRwvRZLpu vZCikmgEW8xaf1LxkaJqVoWDzomoh4ovjrIfc2edfdnI8lp5jM73VZv6MG2uktU/MsbU 9L+7CDIUXr5D3KHCr/hH0adV+q8U4W1vzzjpCwcrnuev+ko07GHizY6A9Z+28f254eyG L0Aoc58J3zFsd6r1j0GUZzDeE3EYpYf2JRul++uHt8LQS4h7DsQCwyQEYezBI0A1yx1n mf00v2idKrmQocFhd9n3legYi6EJSfJODQqrMu9HH0xC9B1NZtXzVLjnde/QzE4Leb9c xQ9Q== X-Forwarded-Encrypted: i=2; AJvYcCVIvHjRNs4hvyz/KMLIuDnX87BXYJ5rGtof9vIqEgxh9MLQ17YaWuuEDMTg8W1h3GhTchtAxlsQ1h8j1a3fUT/z/S8N3mm8q2cGv8XFDKKNpGF826gWw/UsH8ZYAQ== X-Gm-Message-State: AOJu0YwmSfxN/g4rEn0/5aahFAYvV6bk36lPWFNtgz41VK74QUbgIwTS rnT63mHSkQqAweMDWPtJ9r5ilWvUlP7O4NWjjb1ZDA1MDfUBY1dPPncpMlq+nqO2ww== X-Google-Smtp-Source: AGHT+IHgiGeM4voiRYmdDsf/TkdTUVYq9efvL10GRD8AtAbc+d9ugPWI6RRtNfbmSLkxaaOBUovPOA== X-Received: by 2002:a50:8dc7:0:b0:5a4:622f:63c6 with SMTP id 4fb4d7f45d1cf-5beca56264emr4880499a12.13.1724053369548; Mon, 19 Aug 2024 00:42:49 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:6402:26c6:b0:5be:ef89:e798 with SMTP id 4fb4d7f45d1cf-5beef89ee52ls60875a12.0.-pod-prod-06-eu; Mon, 19 Aug 2024 00:42:48 -0700 (PDT) X-Received: by 2002:a17:907:c885:b0:a7d:a4d2:a2ba with SMTP id a640c23a62f3a-a83929d3666mr691538166b.49.1724053367981; Mon, 19 Aug 2024 00:42:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1724053367; cv=none; d=google.com; s=arc-20160816; b=McVHWwoG/Jw20HLfmBdc1gGTiO88sLC6/4TG1a3A2PirAlNoQTchttGJJMxQJL0rz9 DBs6nBEnF86QVp8BGBLIpl2k0dHkwRJA7Sg/VHpasJuA6/QUZoErWLrWREfq6vTjSljR kulQy1Lwfsco01pf3LNGVqpwq0E5+JakYd955F8HBkwZzvmtT2KeZzTKcT1GsWY3CoKy pAoto8k4vInh9LPDytoEFq1tq9FhZHPLYpkyCHGK0TuQ31xjaaUFyncAnrGV0xZgf+Zt M+VNKF0dIVgQkA9TJGvI5fsra3xGz5lDTFP+g+qDfmtTjVtdvkwxt5Y4cN/9f36jSJlV oivg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=MSEoDYndqVU4lzZArOKA8KlXK6+XFiTp2umVonhz2dk=; fh=u9hQ0FYhgFaRYZt60LMCTuHprfvTVd18Zbk+lSMUPZs=; b=wxS5pA6tufaTAnxeHlmK0aPKLslXqhjw3ILKt5Z10ZNXLDMl6uNk9fFTAUq6kfug5O MG1bRuF32wdaxYkWO2CXPi2nA3YKxbcrnglx7Izq2y5CWr/DdsrDE00K0Yfnc6NaHPL9 vF3G7OvTlq1+Q7+bavfu8DCfHNel4yy0YGJJ7K/73iAUNFElHPG1+szGnT7WsaBwHW5c GYDQzznnTPe+A5bsoSEB5Umloa3eSQnZLjhifh1pK56mDFUX1OrwiLPreZRJTrlkr2Rf 6jJkR8xwj0uG5Lg01np3tOMS3Y9gdSw3XVslgFak2qf6LIubwRbTw6yllb/71ynfNlul sYGA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=rsYZCPI7; spf=pass (google.com: domain of patrick.barsanti@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=patrick.barsanti@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id a640c23a62f3a-a83838cf32dsor209781166b.8.2024.08.19.00.42.47 for (Google Transport Security); Mon, 19 Aug 2024 00:42:47 -0700 (PDT) Received-SPF: pass (google.com: domain of patrick.barsanti@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a17:907:d58a:b0:a7d:2498:f927 with SMTP id a640c23a62f3a-a83929d37c3mr690887066b.44.1724053367239; Mon, 19 Aug 2024 00:42:47 -0700 (PDT) Received: from localhost.localdomain (i116103.upc-i.chello.nl. [62.195.116.103]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a83838c68f2sm598333966b.2.2024.08.19.00.42.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Aug 2024 00:42:47 -0700 (PDT) From: Patrick Barsanti To: linux-amarula@amarulasolutions.com Cc: michael@amarulasolutions.com, adam.duskett@amarulasolutions.com, Patrick Barsanti Subject: [PATCH 6/6] core-image-minimal: Add rtla to IMAGE_INSTALL Date: Mon, 19 Aug 2024 09:42:02 +0200 Message-ID: <20240819074202.34144-7-patrick.barsanti@amarulasolutions.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240819074202.34144-1-patrick.barsanti@amarulasolutions.com> References: <20240819074202.34144-1-patrick.barsanti@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: patrick.barsanti@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=rsYZCPI7; spf=pass (google.com: domain of patrick.barsanti@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=patrick.barsanti@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Add rtla to IMAGE_INSTALL, for testing purposes. Signed-off-by: Patrick Barsanti --- meta/recipes-core/images/core-image-minimal.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-core/images/core-image-minimal.bb b/meta/recipes-core/images/core-image-minimal.bb index a97e667f90..9a7dddb317 100644 --- a/meta/recipes-core/images/core-image-minimal.bb +++ b/meta/recipes-core/images/core-image-minimal.bb @@ -1,6 +1,6 @@ SUMMARY = "A small image just capable of allowing a device to boot." -IMAGE_INSTALL = "packagegroup-core-boot libgcc ${CORE_IMAGE_EXTRA_INSTALL}" +IMAGE_INSTALL = "packagegroup-core-boot libgcc rtla ${CORE_IMAGE_EXTRA_INSTALL}" IMAGE_LINGUAS = " "