From patchwork Wed Aug 21 10:13:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Boccassi X-Patchwork-Id: 1974809 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ubuntu.com (client-ip=185.125.189.65; helo=lists.ubuntu.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=patchwork.ozlabs.org) Received: from lists.ubuntu.com (lists.ubuntu.com [185.125.189.65]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Wphxh0qNnz1ydn for ; Wed, 21 Aug 2024 20:13:43 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=lists.ubuntu.com) by lists.ubuntu.com with esmtp (Exim 4.86_2) (envelope-from ) id 1sgiLI-00018E-1q; Wed, 21 Aug 2024 10:13:28 +0000 Received: from mail-wr1-f44.google.com ([209.85.221.44]) by lists.ubuntu.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1sgiLH-000180-6N for kernel-team@lists.ubuntu.com; Wed, 21 Aug 2024 10:13:27 +0000 Received: by mail-wr1-f44.google.com with SMTP id ffacd0b85a97d-37196229343so3316069f8f.0 for ; Wed, 21 Aug 2024 03:13:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724235206; x=1724840006; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=8C5nYCTIJeYBxiykSF1wsT33loI0kyyKA4o1MudAk8I=; b=a3v3JTYB7b9GJT4AtydZu/FPBDCei0MksVYAMhU/KsuiS63pG8oXkypP6BjmER80ln JPpSqaFRmUVMKnj2ZTSkx94LVh+Xe7HwVi4di5ww206r0EnkEdsTaNvI4wlE6D4/SEkw eH25SpwFPeAIxVGxxogGzs4XgDEpwiEtADCEDijpthzRqsv/ZXROy3mNmU/ToKpvwV11 E7v/C3QiIBs2JdIzI6PhWsBvZ/k6uV/9TXglIKdwNJQV33MUtiseL62vWIr/4AtWlSeV ZoD4flz+9TJ0eAz61tFUW9oAa+i/Pz/vDLis8No552v9CKpeJmsD3wJyWnuzq3HLckr4 hETQ== X-Gm-Message-State: AOJu0YxlF8rvHr6tjODSEKvkIyn/+hPhYR3ywJoGuhXC6I8t4vPP76G4 h74zUqGrSbCzEF4Hz6tcLOn/2/2dfYIf4Qemhld5mqR6fU07KVXrMmVyr/++ X-Google-Smtp-Source: AGHT+IGfWDDh+IfT/+Rkli5iXGqgaHDv+UIN99HPoMObz0VLYs54xfnPn6MSlHuEoRzdJhsSJZ5fSA== X-Received: by 2002:adf:a317:0:b0:368:7fbc:4062 with SMTP id ffacd0b85a97d-372fd6bee19mr1227328f8f.33.1724235205974; Wed, 21 Aug 2024 03:13:25 -0700 (PDT) Received: from localhost ([137.220.120.171]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42abee8d1c9sm20284835e9.23.2024.08.21.03.13.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Aug 2024 03:13:25 -0700 (PDT) From: luca.boccassi@gmail.com To: kernel-team@lists.ubuntu.com Subject: [PATCH] UBUNTU: [Packaging] do not attempt to generate BTF header on armhf Date: Wed, 21 Aug 2024 11:13:22 +0100 Message-Id: <20240821101322.896500-1-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Received-SPF: pass client-ip=209.85.221.44; envelope-from=luca.boccassi@gmail.com; helo=mail-wr1-f44.google.com X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" From: Luca Boccassi BugLink: https://bugs.launchpad.net/bugs/2050083 armhf does not have working BTF for now, so create an empty header file like Debian does for now, to be dropped once that issue is fixed. Follow-up for 60df5eb6035b53143695d8e6a6bff62a05fd0884 Signed-off-by: Luca Boccassi --- debian/rules.d/2-binary-arch.mk | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/debian/rules.d/2-binary-arch.mk b/debian/rules.d/2-binary-arch.mk index 792276bf8458..5486ceb672f8 100644 --- a/debian/rules.d/2-binary-arch.mk +++ b/debian/rules.d/2-binary-arch.mk @@ -659,7 +659,12 @@ ifeq ($(do_tools_perf),true) endif mv $(builddirpa)/tools/bpf/bpftool/vmlinux $(builddirpa)/vmlinux $(kmake) NO_LIBTRACEEVENT=1 CROSS_COMPILE=$(CROSS_COMPILE) -C $(builddirpa)/tools/bpf/bpftool + # TODO: armhf does not have working BTF, so ship a stub header for now, can be removed once it's fixed +ifneq ($(arch),armhf) $(builddirpa)/tools/bpf/bpftool/bpftool btf dump file $(builddirpa)/vmlinux format c > $(builddirpa)/vmlinux.h +else + echo '#error "Kernel does not support CONFIG_DEBUG_INFO_BTF"' > $(builddirpa)/vmlinux.h +endif rm -f $(builddirpa)/vmlinux ifeq ($(do_tools_x86),true) cd $(builddirpa)/tools/power/x86/x86_energy_perf_policy && make CROSS_COMPILE=$(CROSS_COMPILE)