From patchwork Mon Dec 10 23:52:06 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 153379 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp10992ljp; Mon, 10 Dec 2018 15:52:28 -0800 (PST) X-Google-Smtp-Source: AFSGD/XCwTCSy8Kei+oXSBtJ888cJkeyi4IeR0/LV9RX7F3+U/Ep/E0OFZe6EFGDkfIIXxTST/69 X-Received: by 2002:a63:b30f:: with SMTP id i15mr12688475pgf.240.1544485948533; Mon, 10 Dec 2018 15:52:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544485948; cv=none; d=google.com; s=arc-20160816; b=OZBSGEIwhZfMf0v/bSEMCzQUpCxcMZfJGF8YvUHJ8F45kBqKcst6UFqAWQMRSTUPTE hlqtt6XgvjvsPIpmEC7jqPEacA6Nydna4UWEexCgCrQ/49rFA+6wOc7/N8NcdhmpEudZ m1P4SRdOGOsMj5qc4J7mTciJ6DPVw1QESJrohpv8v7IPs/dJjQ9n9PSrGScGalbNi1gx p2s5GLBGPvxSeR19QyJyzghYDflfD5IHIBqQ1cm/4rQBMKYp8mfjC5ac5PsTo7fqjoea IoNJVP0qwRJBE65yvkyoD9Qci5jbBxf7fIhKNaXNHvo94+a09+fOXuH0N3DkeNVzsL2K eqNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:message-id:date:to:from:dkim-signature:delivered-to; bh=dHAfSnBWUOWOsiJk9LNdFkR7FNPndVZhrVQ8Jlm1VqI=; b=g1xwNLgTAvUOSBt8hn8+hUl8BQd7e6Lkrd37k0ETIHuhWAdQjurvjO8QY9V276PCn3 cTwui0Micv/dtuj5ycXKdPiBamuRI6pWcK/C2pfbgM9oGSGvpmNVcuR1GPZAFUmImYH8 2M7HBsTdlT1MrRZjyLQv7y9cUJc47eBOLWn/Wf6ZVEWEE2zpYq2fz4inFJVtoKaH1lOm HCyEcvlH+Oo+BGkDiqVzBqQL3g3szdUAK4bL6qSj4UfF+eGy6vkyfn2ggzq5YZ94C1xH OIc1A2nQWBpc1Ot7QW0O7lndSBbHyItOJ0tdRbUGG+8/4k6z1LWJukyGI5v7wHxunb9B BDnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=IErWivLv; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id i18si10839077pgl.414.2018.12.10.15.52.28; Mon, 10 Dec 2018 15:52:28 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=IErWivLv; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from 165.28.230.35.bc.googleusercontent.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 306836C48C; Mon, 10 Dec 2018 23:52:24 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pg1-f196.google.com (mail-pg1-f196.google.com [209.85.215.196]) by mail.openembedded.org (Postfix) with ESMTP id 545476B074 for ; Mon, 10 Dec 2018 23:52:22 +0000 (UTC) Received: by mail-pg1-f196.google.com with SMTP id s198so5738369pgs.2 for ; Mon, 10 Dec 2018 15:52:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=A0oLEZhEYXWKL7Ra3SMvp0EsCmVKCYJdYZ+S2tYoqO4=; b=IErWivLvyjizFX7n0HGschOsSG5w/yxUlAILcbxovSL+XkQbLuIIL4KWtzIzn5Bxlx yi/OA7wgdz2B3lz83YbYN+HtDsULjjbtMcGTQ5g1XZq9darZoeDsFZYfjGiWKbu6XQS1 Hcyhitqph4ph5WVPb7IKAxDGIdEzHbgc/qiaXP7IbBT0yhrhY9GyfyHsppCWsrN/zIi9 Bk+dZXCXQ6y/p4cT5JILcXO4RZbGchQW+i6v1ei01+2AdSyTspQTt/BVjgTY1R5FE7H9 3VaWxErb6JOdmpTMCMcFVsNOJpZgLChDkw2/7CfOL+lKXZaWhdCQh9gj7vbsQwLvuVl+ /HAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=A0oLEZhEYXWKL7Ra3SMvp0EsCmVKCYJdYZ+S2tYoqO4=; b=HTWHJJbNtEbPfONwmYDCWsRpuaRyIiOMGISdLtofwo5WAEwdetDeAbi37JrDPC7ORg /GzoeYHENCpD3vsoa/t+Xrvii4oV5JvwBns1fYsEZK5UWSb0AZTy1dF41dLuT/ChK2ec YYTFy05KsQ1GeRzeQRBEVIuY4tuyy97eEGN/dd8Ce7vyMVOFToq1nh5ksvzebz2VOB7V FWwW19/jX2ELFLBniv7OHW2qqQr/zSC7s5RWZYgSxf6zF4VPkb3JLpFDZ5Dg1IuOy9CG o/CmAq/PwHzjRdJiITSjXSt4INIdy6qIW9aV7EfYIWbSaljt2borcUiZY6mtMVaLzvk0 youA== X-Gm-Message-State: AA+aEWaqHN0uqx0LBw/INNfkfwF/eqJ7GnKh+K7jpNwb8GWSHRSe05oj hgKpFW89grB/hePjYB0KiPBOM27m4c8= X-Received: by 2002:a62:5793:: with SMTP id i19mr14393608pfj.49.1544485942759; Mon, 10 Dec 2018 15:52:22 -0800 (PST) Received: from localhost.localdomain ([2601:646:877f:9499::6872]) by smtp.gmail.com with ESMTPSA id p2sm18841557pgc.94.2018.12.10.15.52.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 10 Dec 2018 15:52:22 -0800 (PST) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Mon, 10 Dec 2018 15:52:06 -0800 Message-Id: <20181210235207.11741-1-raj.khem@gmail.com> X-Mailer: git-send-email 2.20.0 MIME-Version: 1.0 Subject: [OE-core] [PATCH 1/2] insane.bbclass: BPF objects may mismatch in endianness and bitness too X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org This ensures that bitness and endianness is ignored for BPF objects Fixes QA issues like Bit size did not match (32 to 64) kernel-selftest on /work/qemumips-yoe-linux/kernel-selftest/1.0-r0/packages-split/kernel-selftest/usr/kernel-selftest/bpf/test_btf_nokv.o Signed-off-by: Khem Raj --- meta/classes/insane.bbclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.20.0 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass index dbe9cc6162..6411884f92 100644 --- a/meta/classes/insane.bbclass +++ b/meta/classes/insane.bbclass @@ -307,10 +307,10 @@ def package_qa_check_arch(path,name,d, elf, messages): if not ((machine == elf.machine()) or is_32 or is_bpf): package_qa_add_message(messages, "arch", "Architecture did not match (%s, expected %s) on %s" % \ (oe.qa.elf_machine_to_string(elf.machine()), oe.qa.elf_machine_to_string(machine), package_qa_clean_path(path,d))) - elif not ((bits == elf.abiSize()) or is_32): + elif not ((bits == elf.abiSize()) or is_32 or is_bpf): package_qa_add_message(messages, "arch", "Bit size did not match (%d to %d) %s on %s" % \ (bits, elf.abiSize(), bpn, package_qa_clean_path(path,d))) - elif not littleendian == elf.isLittleEndian(): + elif not ((littleendian == elf.isLittleEndian()) or is_bpf): package_qa_add_message(messages, "arch", "Endiannes did not match (%d to %d) on %s" % \ (littleendian, elf.isLittleEndian(), package_qa_clean_path(path,d)))