From patchwork Tue Aug 14 14:47:03 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Daniel_D=C3=ADaz?= X-Patchwork-Id: 144183 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp4454099ljj; Tue, 14 Aug 2018 07:47:30 -0700 (PDT) X-Google-Smtp-Source: AA+uWPz70nPJs3L6DOx7utv3XAp2RrbGSusNUpU2VYoI48s9XbLCV0rJRqDjY2dwoG767lVcFWnj X-Received: by 2002:a17:902:8b8b:: with SMTP id ay11-v6mr20304037plb.1.1534258050593; Tue, 14 Aug 2018 07:47:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534258050; cv=none; d=google.com; s=arc-20160816; b=lHfoGR91iiEgFNSc/Qm9YCpJ296sP7E8jR3gR1cjPCR31wCfxxo93hiSWAFqq3IBx/ TErQt8e/bVxPb4EfZmypLIkXPJgMJZc3DAZht9aVyn9QkexS0gNlFr2hVJqdlWh0O/Ho FDmwYZZcznIYUju4dUt5l5HEfDf9Bk3qvnUzoCiIgtwYiccouX+nwqMClA5TiorxBdD+ wDYBgVzc+MzLN+tVfyKCE4s+D1/G9daIPci0mfbuOwfetsr1hyj5JeT8sy58yNPV6tuG sxm33Rk57yYWsttHoWpvGfKwh3pGXyKwxrtVe9irca9GozbgneDJQZKMtXWVXg0cr30q XCUg== 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 :arc-authentication-results; bh=juxlE0MA9DK+13qU19WeZtFgD9//8zODErjuGS6uHPs=; b=mA+n/OxXel52XaE4v4lMbP2UnhB6NT8OyoRvEW98Fg81nUOE98oDi7Kp21dJ8chhSt uuHl1BWs3OpSLeBgZXc2yF2qxpdS4IPcwDvmON2YsfW139zaJ2oMq4kwL6TQ/nQoDb9R Fwd/lIQwhp/ctjOkU3e1btNeqV1aW3Q6XdkJt/wK+ypLXmEzbTDAZjGXNf7BWkoP8kme 7HDB988XU0u07j57PkE5KL4rtUIkgRN+m8WM66wSj2lyHkVIyFMDQzepUo9VPE76uoN/ RHboq2NYYVNyuG6g+NFpEGTV4W63sjU7dalh8fYLMat+JQ2YiM2O13fHDgLL9c4OHA5M r3zg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=ILlwOsjA; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id 184-v6si21503633pgb.587.2018.08.14.07.47.30; Tue, 14 Aug 2018 07:47:30 -0700 (PDT) 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=@linaro.org header.s=google header.b=ILlwOsjA; 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=NONE dis=NONE) header.from=linaro.org Received: from layers.openembedded.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 80DDA7900C; Tue, 14 Aug 2018 14:47:28 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-oi0-f67.google.com (mail-oi0-f67.google.com [209.85.218.67]) by mail.openembedded.org (Postfix) with ESMTP id 3FFB97900B for ; Tue, 14 Aug 2018 14:47:27 +0000 (UTC) Received: by mail-oi0-f67.google.com with SMTP id y207-v6so33975276oie.13 for ; Tue, 14 Aug 2018 07:47:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=4ilP3zMpND93SLr43RJKQvyq9iU7XVEJJ+sLW+6gBb4=; b=ILlwOsjAu0V5I096dkCHHOHK7GFzC/KEd8ETBrfcr7VPaLdshU+mI25NeN/7VkLU9Y Gb1wHjrmFURERa/dUkMFtWgsHnag4IOZzfswvi4+sT1SyBJoPom5Y69u+8nCF8xHvJR2 HBKdaXhCUe3dL5veEi27nkFMgB1xMeiqgxnh4= 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=4ilP3zMpND93SLr43RJKQvyq9iU7XVEJJ+sLW+6gBb4=; b=Yh0qGR9m68XjQmzjC+9GVD5vs6O1VJ5YcpntGxcJFLR4l4GOK4DbFlywd+O36IYTMm sFZiHwukvfeyQNnleM7dSPpTAD7opbSCriviDC0KhQFw1NeRpbFaxwMANP71blyWk9sa sShAPdkuWY+A8b51GkwYtO0bJuuY0dduBjvg/BC+4na2bgc+XQnAEXnB32xEEnIegnn2 TlGxOHzItOoNV/NfnWdRPq2SDtgsOXiRCYDZ3lBvRIZ9UJqVzQp58f1qfSmjINMunDzF YqKK4mMGAwjAwVTTvd04QgFW7XmbLlNky8m9pizzjICqbsV8t0GgtiD2sonJ+hCijnDI KGbg== X-Gm-Message-State: AOUpUlFWxK6smRIxX3DglQtMF9PbXV3IdXANmIjPWzgrWB1aDRGuFV58 lm/UaGBrs/RqBFCUPKkB+X41saNa8Us= X-Received: by 2002:aca:6044:: with SMTP id u65-v6mr24323126oib.323.1534258047723; Tue, 14 Aug 2018 07:47:27 -0700 (PDT) Received: from aura.cortijodelrio.net (CableLink-187-161-144-121.PCs.InterCable.net. [187.161.144.121]) by smtp.googlemail.com with ESMTPSA id v5-v6sm10587341oix.36.2018.08.14.07.47.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 14 Aug 2018 07:47:26 -0700 (PDT) From: =?utf-8?q?Daniel_D=C3=ADaz?= To: openembedded-core@lists.openembedded.org Date: Tue, 14 Aug 2018 09:47:03 -0500 Message-Id: <1534258023-15484-1-git-send-email-daniel.diaz@linaro.org> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Subject: [OE-core] [rocko][PATCH] multilib_header: recognize BPF as a target 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 When building with `clang -target bpf` using the multilib_header, a recursion was unavoidable because bits/wordsize.h would #include itself, still lacking a definition for __MHWORDSIZE or __WORDSIZE. (From OE-Core rev: 70b41b3c335a80b4ac243f468f22331d261299db) Signed-off-by: Daniel Díaz Signed-off-by: Richard Purdie --- scripts/multilib_header_wrapper.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/multilib_header_wrapper.h b/scripts/multilib_header_wrapper.h index f516673..9660225 100644 --- a/scripts/multilib_header_wrapper.h +++ b/scripts/multilib_header_wrapper.h @@ -22,7 +22,9 @@ */ -#if defined (__arm__) +#if defined (__bpf__) +#define __MHWORDSIZE 64 +#elif defined (__arm__) #define __MHWORDSIZE 32 #elif defined (__aarch64__) && defined ( __LP64__) #define __MHWORDSIZE 64