Message ID | 304ec481-de9b-6bcf-bb76-f9c1a7ae92a3@synopsys.com |
---|---|
State | New |
Headers | show
Return-Path: <linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=jbTExK/0; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=synopsys.com header.i=@synopsys.com header.a=rsa-sha256 header.s=mail header.b=IZD6fgIP; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=synopsys.com header.i=@synopsys.com header.a=rsa-sha256 header.s=selector1 header.b=ljCsOTBZ; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=<UNKNOWN>) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4LKLpF4cMnz9s1l for <incoming@patchwork.ozlabs.org>; Fri, 10 Jun 2022 23:07:01 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Content-ID:Message-ID:Date :Subject:CC:To:From:Reply-To:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=jjTXvfkjJRAxjdmgLXgnZqQNeq1pQneMU0nI2A2rjBc=; b=jbTExK/0HkVRgu Tx6D6NBmL8zUziGdxZ7goK54w0rz6W+g24MxHQiW6a+4Hfz1AkZ9TgxbuCkhmZ66IQD745AMo9RUY qb51cBiaXZrON67S5QYxD1O15iB1vqaFSPvrQfwgyVY5ErYnd0iXET1OdbutnQkxbEFRnvWbsjxTF K1/60riEyWKu060yIs/wV+tpIj7mmhKGWqV7v4OV6j0Bl0PxZDJiR89rs9BED0zmbOY2pYQ4Dt1Lb XyiV53upZZ5B814qlWET8m2ec3i7+GGkmpSDvwI1dg48/9g0zOAel7yCF/V9BJ1+WAUtPYrsYDd8D bzJQCp5HCNDelCHm4dOw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nzeLp-008HxO-7q; Fri, 10 Jun 2022 13:06:57 +0000 Received: from smtprelay-out1.synopsys.com ([149.117.73.133]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nzeLl-008HuO-Vi for linux-snps-arc@lists.infradead.org; Fri, 10 Jun 2022 13:06:55 +0000 Received: from mailhost.synopsys.com (badc-mailhost4.synopsys.com [10.192.0.82]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client CN "mailhost.synopsys.com", Issuer "SNPSica2" (verified OK)) by smtprelay-out1.synopsys.com (Postfix) with ESMTPS id A23A040AB7; Fri, 10 Jun 2022 13:06:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1654866411; bh=C62HX7czJ45PoyqOlH/n7NrdO+QXIpha5gHwiMFQe7E=; h=From:To:CC:Subject:Date:From; b=IZD6fgIP3aL6hxIZcdx7gYwjkumLIx5TvmPEbcWmff4UfOzhRSHCVIJWBM29NdoJ+ /9cfT2rOX1eJZSEmWSdG789Nw8maCdxiHg5EdC53oXW5iqh2y6DNuQYrYv/9ZEknz5 sC/S3ddk6avCPvuD4hKv5MdUG9oa6tFt2ZcHvcMLh0zJy+XuL29RAx8tQkGgmVYurX HfXp2fzHxrnrNGHVf+f/tsta2HTpkzhutlmVzp7LBLYHzRwtt6bX3hQTWKwnyuLBZo 5WBemm8r82yk0WkY0cm7ARlS+wFOB4hlW+vW77gjyRdvwf8vY3r9AlHCeraG3USe5J t+Q+xGkycgF5w== Received: from o365relay-in.synopsys.com (us03-o365relay1.synopsys.com [10.4.161.137]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client CN "o365relay-in.synopsys.com", Issuer "Entrust Certification Authority - L1K" (verified OK)) by mailhost.synopsys.com (Postfix) with ESMTPS id 8A561A005C; Fri, 10 Jun 2022 13:06:50 +0000 (UTC) Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11lp2174.outbound.protection.outlook.com [104.47.58.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "DigiCert Cloud Services CA-1" (verified OK)) by o365relay-in.synopsys.com (Postfix) with ESMTPS id 358CD80002; Fri, 10 Jun 2022 13:06:48 +0000 (UTC) Authentication-Results: o365relay-in.synopsys.com; dmarc=pass (p=reject dis=none) header.from=synopsys.com Authentication-Results: o365relay-in.synopsys.com; spf=pass smtp.mailfrom=shahab@synopsys.com Authentication-Results: o365relay-in.synopsys.com; dkim=pass (1024-bit key; unprotected) header.d=synopsys.com header.i=@synopsys.com header.b="ljCsOTBZ"; dkim-atps=neutral ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=clOaA7tjkbl5Cl9bk3gBEnOP59NrP/wv6mzH6UjsNc6PaY7GdR7wILv7ej7edXp39VF8OUmwWFnAFZa8TM+J++hY7CKKNMV3xGWT/YeA2ffRhJlxZTgQQcKUm/sFzZbVgmDnzDreASvhuIhRTUnCA4wniVoB/+1QGqFb63TlZTf86gGtDLvn8yTFstgdXbuCdBFt0/GJ3yFT1hcuWrKgNxG0Q6m9m6lOKOZsgwv+FC5ZgJizUcHS0SBXCE4EvVSj+KvI6UJjSW98qPDDAvowR2yY4At0kamBhwh3lif77hinLW8Tet2CwcD10r77NhvqmLmwfMTAIKQd04qbocgUSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=C62HX7czJ45PoyqOlH/n7NrdO+QXIpha5gHwiMFQe7E=; b=YrfSwvk4uBNhb/QwY8kC0d26ZEvNPToW/yCYV9Tclq8vEm1yje3GdKJSJrWe7MUUgD7p5xr6Rsy13ECXySb7SKp5TdnYhUIuTCUinZD170lXfoDoz4ka8jmT84nqqcQ5rpKDXbPibMD/wloNSWmy0NJyKf5hbWR3gn6uABu2OSjdcq1PDtgIIQdAIaJomlgXKZ/hvdeJ/u2qUCg4XiQQdhFW4OwR2qPtw94GF2rq4H7FO6AQ0mmGUSJDIVm+HSilsdiSMJ8jimwLIU7/8r+52AdHVs4c1JYhVZiEPd4EX+hdyd1Z0igY/oV982aw0m0GRnAtkaAJ/5mCN6DX4DLx+A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=synopsys.com; dmarc=pass action=none header.from=synopsys.com; dkim=pass header.d=synopsys.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=synopsys.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=C62HX7czJ45PoyqOlH/n7NrdO+QXIpha5gHwiMFQe7E=; b=ljCsOTBZQ+41rsRUym8Er/22mQsH7uBNToMdfqJM9i/kLxqIQUIDb30j02J789cZVGN17pfab3VzyVCAa3ylN6+/BnORb3RJM0uNgCpPH+aGnoEOl+WDQJMRtg/eD7oshGkKjZDvGnWKKQnoQOD6C10ieqaVFCzMD+wmovtl7fI= Received: from SN6PR12MB2782.namprd12.prod.outlook.com (2603:10b6:805:73::19) by BYAPR12MB3558.namprd12.prod.outlook.com (2603:10b6:a03:aa::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5332.13; Fri, 10 Jun 2022 13:06:44 +0000 Received: from SN6PR12MB2782.namprd12.prod.outlook.com ([fe80::1175:61f1:71e9:2038]) by SN6PR12MB2782.namprd12.prod.outlook.com ([fe80::1175:61f1:71e9:2038%6]) with mapi id 15.20.5314.019; Fri, 10 Jun 2022 13:06:44 +0000 X-SNPS-Relay: synopsys.com From: Shahab Vahedi <Shahab.Vahedi@synopsys.com> To: "buildroot@buildroot.org" <buildroot@buildroot.org> CC: Shahab Vahedi <Shahab.Vahedi@synopsys.com>, "linux-snps-arc@lists.infradead.org" <linux-snps-arc@lists.infradead.org> Subject: [PATCH] package/bpftool: add a patch to fix cross compilation Thread-Topic: [PATCH] package/bpftool: add a patch to fix cross compilation Thread-Index: AQHYfMrvfBx90GUSbU2T8ai7WLSsGQ== Date: Fri, 10 Jun 2022 13:06:44 +0000 Message-ID: <304ec481-de9b-6bcf-bb76-f9c1a7ae92a3@synopsys.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=synopsys.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 98ef1b2f-3ac7-441d-ed29-08da4ae211d1 x-ms-traffictypediagnostic: BYAPR12MB3558:EE_ x-microsoft-antispam-prvs: <BYAPR12MB3558CDD80DB0CD6C724D1483A6A69@BYAPR12MB3558.namprd12.prod.outlook.com> x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: X4HxM/tsLr8nNTD/kN/MY9VpL4CK7tm9WLh8IFzSjMr54H72lyJY2CIivLUPi/TZcxIX9AyYXLYz2nUiHg9APfSgl2/jyYd8WYzcS/xn2aZK1QYu7duz3d9LRSFGNwxO65jL2jAbAJveRqnAnDD91uRSr6v3bpEjJQYUP0+jHRhiKR4xax4rRRWqoBpAbKpL7E3w6baJBA3RqnSu0RAKSQU/Cawx73X9FmRu2n4AY8FHP6U8IeToCXM6ALLhQovmF0AG1KEJf8To/4XV3vTDFtFitVvwjgjD/ayv4x3ssnOvBenHkIHcO95ds5eRF5XSVgIgHEyBUnoJ4gQ8Qi0/LyzOLGR4/x/Q+nB1LXLEPzJBt8To+lKCWUTduqlKlPU6+lKD+K3Iai36yHw9KfvWmvY8GtfMHa/x2cu+v/teFgsK99m/njB/zCPWk/72zFFyLzGJ4JHDf5qeoetUvwXAJ5FfPUuPeptFrNGc/Ds2ky9Xf+yR7sAD4n8laXuQJzqr7ZJEqc8aQvPVELUKjy/V3hUPtQ9sAkROz9urFG5hbWqE/Usi++am8hoGRdHsVh3vxc7Zl6lT/lQ2PxFvmBKQrsiL+ZMS4la8bqkurVdnMw1YIq1WuKbEQ/fn0fGphLadSIpl8k6y1h+4kdxZ7NGJta+L42yyiUz8n2cLbis8r94f9jI0onLlLr+KPImuWgN8oAHN/XTnQbw3TS+nNMW2aEHSE3XEQucZcbVUarlpodzAAW0E+VnX6Cqk/4HGTw7ZSrfCkEZyv2FF9h9sJw20ui/dwKmvCa32WYG+pypNy2N+B9tA4qA/BH5VJ2yuiH1pMuWdW+VQo4h9qXz9z8h2hA== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SN6PR12MB2782.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(366004)(6486002)(966005)(38070700005)(2906002)(6506007)(122000001)(6916009)(38100700002)(54906003)(316002)(26005)(6512007)(66556008)(8936002)(31696002)(66446008)(508600001)(31686004)(5660300002)(86362001)(64756008)(66476007)(4326008)(66946007)(186003)(2616005)(8676002)(91956017)(71200400001)(76116006)(36756003)(45980500001);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?q?f3/DWm31G438FhujJEbCAXyMYBZ7?= =?utf-8?q?FCqdN4PlghtJBXfm/XjGrAOB5RyhylasO5TxOotj5y0xzr1e7u/ll+JXk489Ab7W1?= =?utf-8?q?nV9yP2Dp/+vfggzzOGAmuIZLtvZ2j4Vs1fTtlLDU6qvsD9xKM0Jj0oOzmlqVAM+sf?= =?utf-8?q?LOUOqtPH2pSH/qc/xZKHoMw5brZra8sKWiZ7WAZJiQNHF+oIyMBFH+hAPd6bVVH6N?= =?utf-8?q?ALNs6ZjPNUja4u3KmxUACChaS/bQ5IngFLx8klHIQb/+0eq+PM9gGCE5kbeZ3+ha5?= =?utf-8?q?Y6l/bg6bSNIQAQdbML2vlx6op1Uz20Li1tuVMx9Gl7TmxUdUeDi2LRvgJfAC0XJFS?= =?utf-8?q?fnXbxxEoudNr/opXML9amOyuVVBM0TZTLpIftfeid7kJUWgopH31uuyzCf8945te0?= =?utf-8?q?gl1RpI6qS+EjHpD7/Hvsa+a/0ej98EVvCb7zJYJLIj2hJf07kLAPoUS6TShDeE4qu?= =?utf-8?q?7/Ptsvxj/E3U0pf2WyEI5Q5LiMIm8Fll2C3pEmY2Hjp0MAKg/m+ZUV7R5PKMZOGh7?= =?utf-8?q?+vONahEqRhwZaDBEPUktJLYeAjwJOd6y28aDZs0e7mD12loIhJ3GF5JlWKV5kh6qG?= =?utf-8?q?SUzYrnX7iwaQlUOnzToOJQ3skKONLK/vDSUy+67bxya7uOIHtx/P7g2PujpK1B+Ro?= =?utf-8?q?cYGf9PcWfNPQ+BKdKjjkMQ27Mxb0UAJXjyW+xPPfsDfFQ+pVhpu+PB8Mkm2eZjDkV?= =?utf-8?q?ZmN2DlYFPS18CiZLig5Wh5PpveGj55/twXmvk75uQa2794k6LH6IM0RqRvE+s+SGs?= =?utf-8?q?CrpmuVVPjIbkRy7i6DWI9Q4aGlbKISFFti2IX9qf6pbgLsI917KrIVBhK1i+QVfyT?= =?utf-8?q?05VM6ksDAASBUcxc+7bRrnSbb7GXw6zCl1zCoURxEqLMXzWuvDd1vVCIJbyoDeD/D?= =?utf-8?q?tMOHjz9pRhWAZt7hy65A2RU7Am9sSGqXD1ROUqKL7gM0pZotNdtL/7d1r5hxrvKRy?= =?utf-8?q?A5BWWE4ZVFb9+eSmNbfv16WJwlnHswgIhjm2oATP2F8mnSAQ0/vRRC3MB4ZKN9ub1?= =?utf-8?q?ZLj1Q3D8B2mDaQC49niKuqOddlkGVD2lDY4hQgdCc5z+ss3xB8jMkQaEPyx66iCBo?= =?utf-8?q?LE+2Y7OtWuuvtXggDGKLbaFr01L+3bFGdnw5WEukAt/uQCIkTC9CkKDf/i+rqiP+q?= =?utf-8?q?5HxMlZG+x3R8+esZc0W6DrVUuvEI/Qa+lgyKgAFJqaXgLir9LbcA6jVQP1yma3TrZ?= =?utf-8?q?+UGl56NUVKDhimq49eUd3ybIQBsDQiK2bvPGyCF7ZkuTC6g2iPzvVW6ZJb8jkDBJG?= =?utf-8?q?7w/dq5/xj+1blEnxbAF00e9U2xbkuAOKo680ZUmuAqGCgc8bOWFzEPSHANcMrIgZC?= =?utf-8?q?CR8dR4d+47EOCYLxj/s1GbqIHAQPI3IiukE5HcynWWCv6ZbBzLDTBjf0eJERZ2GEk?= =?utf-8?q?Y7oE1/WiRpCSiyYlFIqxiLq5xv6fRjj/Waiw/h6ccyoNpZsD5h6pQbZOqtkS7twln?= =?utf-8?q?IGBld2+R0VWTHhgs4FIV7cxbOQk/b8DjGnIwppKwCmgcVo/BLrgS6mValZamw3gR8?= =?utf-8?q?eaI2SY+lroj1MZI0Xm3tv+Sd44MhKGKC2OZXo/7jb2dpBZbMqbFFk2yCTZ+LD4JdL?= =?utf-8?q?plQqwhfE3mnYFzqvNRqJ8WzneCbUcOsjr9ETI+Ky8vBkPSh1hH1joXkx5EzbykFr6?= =?utf-8?q?d9tQAOgBVdOZ5KDCTKb5OTEWFNGye+nA=3D=3D?= Content-ID: <555EF8B0F523B846B9AD3DF58682D031@namprd12.prod.outlook.com> MIME-Version: 1.0 X-OriginatorOrg: synopsys.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SN6PR12MB2782.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 98ef1b2f-3ac7-441d-ed29-08da4ae211d1 X-MS-Exchange-CrossTenant-originalarrivaltime: 10 Jun 2022 13:06:44.7756 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: c33c9f88-1eb7-4099-9700-16013fd9e8aa X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: +UrI+3XMmRSaWvi7fivyZKdvG4SwsnzTDSCiJ/Q/CPcj0JuUw2Qygb5WmJijZWom07U23A/9udCtaeQMM8NjZg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR12MB3558 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220610_060654_102049_A8DC107B X-CRM114-Status: GOOD ( 16.06 ) X-Spam-Score: -0.2 (/) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: If on the host machine the "co-re" is supported, bpftool will build a bootstrap version of itself as well. In that case, the cross compilation can fail. This commit adds a patch to remedy that. The fi [...] Content analysis details: (-0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 SPF_NONE SPF: sender does not publish an SPF Record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: linux-snps-arc@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux on Synopsys ARC Processors <linux-snps-arc.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-snps-arc>, <mailto:linux-snps-arc-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-snps-arc/> List-Post: <mailto:linux-snps-arc@lists.infradead.org> List-Help: <mailto:linux-snps-arc-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-snps-arc>, <mailto:linux-snps-arc-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-snps-arc" <linux-snps-arc-bounces@lists.infradead.org> Errors-To: linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org |
Series |
package/bpftool: add a patch to fix cross compilation
|
expand
|
diff --git a/package/bpftool/0001-fix-bootsrap.patch b/package/bpftool/0001-fix-bootsrap.patch new file mode 100644 index 0000000000..03f4231cca --- /dev/null +++ b/package/bpftool/0001-fix-bootsrap.patch @@ -0,0 +1,32 @@ +This is an adapted version of an upstreamed patch [1], else it won't be +possible to cross compile bpftool if "clang-bpf-co-re" feature is enabled. + +[1] bpftool: Fix bootstrapping during a cross compilation +https://lore.kernel.org/bpf/8d297f0c-cfd0-ef6f-3970-6dddb3d9a87a@synopsys.com/t/#u +--- bpftool-v6.8.0/src/Makefile ++++ bpftool-v6.8.0/src/Makefile +@@ -51,7 +51,7 @@ + $(LIBBPF_BOOTSTRAP): $(wildcard $(BPF_DIR)/*.[ch] $(BPF_DIR)/Makefile) | $(LIBBPF_BOOTSTRAP_OUTPUT) + $(Q)$(MAKE) -C $(BPF_DIR) OBJDIR=$(patsubst %/,%,$(LIBBPF_BOOTSTRAP_OUTPUT)) \ + PREFIX=$(LIBBPF_BOOTSTRAP_DESTDIR:/=) \ +- ARCH= CROSS_COMPILE= CC=$(HOSTCC) LD=$(HOSTLD) $@ install_headers ++ ARCH= CROSS_COMPILE= CC=$(HOSTCC) LD=$(HOSTLD) AR=$(HOSTAR) $@ install_headers + + $(LIBBPF_BOOTSTRAP_INTERNAL_HDRS): $(LIBBPF_BOOTSTRAP_HDRS_DIR)/%.h: $(BPF_DIR)/%.h | $(LIBBPF_BOOTSTRAP_HDRS_DIR) + $(call QUIET_INSTALL, $@) +--- bpftool-v6.8.0/src/Makefile.include ++++ bpftool-v6.8.0/src/Makefile.include +@@ -12,11 +12,13 @@ + ifneq ($(LLVM),) + $(if $(findstring default,$(origin CC)),$(eval CC := clang$(LLVM_VERSION))) + $(if $(findstring default,$(origin LD)),$(eval LD := ld.lld$(LLVM_VERSION))) ++ HOSTAR ?= llvm-ar + HOSTCC ?= clang + HOSTLD ?= ld.lld + else + $(if $(findstring default,$(origin CC)),$(eval CC = $(CROSS_COMPILE)$(CC))) + $(if $(findstring default,$(origin LD)),$(eval LD = $(CROSS_COMPILE)$(LD))) ++ HOSTAR ?= ar + HOSTCC ?= gcc + HOSTLD ?= ld + endif
If on the host machine the "co-re" is supported, bpftool will build a bootstrap version of itself as well. In that case, the cross compilation can fail. This commit adds a patch to remedy that. The fix that you see here is already upsteamed [1]. [1] https://lore.kernel.org/bpf/165477661272.11342.13015777410417612477.git-patchwork-notify@kernel.org/T/#t Signed-off-by: Shahab Vahedi <shahab@synopsys.com> --- package/bpftool/0001-fix-bootsrap.patch | 32 +++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 package/bpftool/0001-fix-bootsrap.patch