From patchwork Sat Aug 18 19:25:33 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 144515 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp2216463ljj; Sat, 18 Aug 2018 12:26:09 -0700 (PDT) X-Google-Smtp-Source: AA+uWPwfl+DrNDGpT5fZhW0V2WF7otvfymr8egG5+ivzoZ7qAuW264f4BqjL19tKBJzeeH7xdXum X-Received: by 2002:a62:198e:: with SMTP id 136-v6mr20545433pfz.103.1534620369437; Sat, 18 Aug 2018 12:26:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534620369; cv=none; d=google.com; s=arc-20160816; b=1GVEsBhW+kxDuv9AwwuKs1NZc+83sIUsOljjQIpUqbBIh3ToMXH6eS1e4UGhzCdnyK 2cw6ejCNabpLZlPCg9VhvePxQkWKIBkRc/PPP1XB6nVdxugNRxeGWp+5tTO4co32A5ep lSdK4ecmGm1VjIlVOF4IjPF6KYokb/9TafrtGihSSSLboVwkWXeCWJjPMjWznDtrDyF8 5M0TMU8y1HqWO5yrvp3lNxlRChHVE0VofAb27zzkaHwmIOso+HkLfj05qKuuaiggDquX TiJwyICyOhWqp2CF3ZVdCIU3G+o0FhqaJXxayRCjgDL2Z3hyhE/e9svaleVO6AW5+4w0 c8SQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to:arc-authentication-results; bh=Yjtxn8UH9FcU/EGU1YdNPLJmQ3r8ewFD6Hq4HnQcJok=; b=Q5vLCeHj/MjLyLDKu8ZkoveE1VKcGIweZ+PSXtiwJug41QG0IQ1WTaJn26qwOIW56X i6bS2pmiahRfV9zTdmH7B3VJMQ7GssEUyzuWCaS8usLR1n0CFjOrMNYE6fSfYvwCSiEU ZEt1o5Y71arYA6v/iK4yPXOf9hmap4VXLlRLgz9GLN0OHQowhWjsUqlEo4OyrRLGwMk5 zDrB7dRNXg7Wd7bV4BecNk6D3eNk0iKxIOk7Hf6dWkXUSCbI7gr7I7i9eaam4r5RHrG7 3TmA+uBlr8OoLtmmcpQWqWEAyN30ITE/U7VOaBrLTRuKmqESf0/wL0Vf6mpqaBepcS+T 4kpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=pmZcOu1Q; 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 194-v6si5545554pfz.101.2018.08.18.12.26.09; Sat, 18 Aug 2018 12:26:09 -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=@gmail.com header.s=20161025 header.b=pmZcOu1Q; 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 layers.openembedded.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id DEF087920D; Sat, 18 Aug 2018 19:26:06 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pg1-f177.google.com (mail-pg1-f177.google.com [209.85.215.177]) by mail.openembedded.org (Postfix) with ESMTP id C6D4B79209 for ; Sat, 18 Aug 2018 19:25:45 +0000 (UTC) Received: by mail-pg1-f177.google.com with SMTP id y4-v6so4962756pgp.9 for ; Sat, 18 Aug 2018 12:25:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=3nYzkTML3LkpTfybUutNp2wAEPbS1wOSwsfnGtdBfv4=; b=pmZcOu1QpsswGIM7Zwo60kViY+MoO51g7hTj7VBYctQYhPG+WE7Ze3aqCVSiiFQyUr LvmonB3GSiBtZsxwiZwqBNQuWBCGn+qAaRiC/ST8i8QylavWNp25pj4GsCs730BUcsmZ UHeEVHtOACmFBSBuJ7QNKcCfSLDOXDCdNsNPQaBwswk5bpJswonfuZyDxOsi3WlwafnP ZNhwAELxkkBdI2f7ol6YO9gLUb9cAfGvuKvpVocoFIjc5yZRsxy1IcC1zEsc/cCZUTW0 MXzsHaTdHq05A2P8ux8lOaSjCAvC8kKtAKGp/FFTfAJVVhW/UfkHJqYr4taLGLnKpy6g t5HA== 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:in-reply-to :references; bh=3nYzkTML3LkpTfybUutNp2wAEPbS1wOSwsfnGtdBfv4=; b=grljHKk26jT/isPiJzxTG4LJlDyp4jHLreOmZGVDEnWcJq3PdIK1hmfbpPwOLv/6aC Jiyk6q9y95nQBGrcSDWoISWfaU1r4w70LUFPs42z1rd1FSiMdQxnMNY1pVt1rpONN+rp HSshyyrS1L0zKz5rrlWkNa+dmw9FD+3xigR1bpLzDgXx/wbpUMWrhDWSYfryZ+PW3sbq 6Qi4v0Rl7lMa0b+Pnve2HUyNjCas+S7TjWaLiTsDmKbLs/DyKq6EkwBhnzAVJq9Gu7J9 QPkDSj1KRZPYObtIR9dnIji8B78I4PXN+R2dvPe61Ac6Le2pOPhXJGXdKYfnYvT9Afpk us8Q== X-Gm-Message-State: AOUpUlG+Qk2q/BjMeoXab9bjf1151sH4f81lCFR14AMIuX5FjuBi/YpG gI9E1zA1Sr1SQvSt7HV1/VIJBN0m X-Received: by 2002:a63:4a61:: with SMTP id j33-v6mr37585907pgl.436.1534620346495; Sat, 18 Aug 2018 12:25:46 -0700 (PDT) Received: from localhost.localdomain ([2601:646:877f:9499::4add]) by smtp.gmail.com with ESMTPSA id k64-v6sm6723068pgd.47.2018.08.18.12.25.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 18 Aug 2018 12:25:46 -0700 (PDT) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Sat, 18 Aug 2018 12:25:33 -0700 Message-Id: X-Mailer: git-send-email 2.18.0 In-Reply-To: References: Subject: [OE-core] [PATCH 1/6] mesa: Enable gallium-llvm on x86 and x86_64 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: , MIME-Version: 1.0 Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org Signed-off-by: Khem Raj --- meta/recipes-graphics/cairo/cairo.inc | 3 ++- meta/recipes-graphics/mesa/mesa.inc | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) -- 2.18.0 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/recipes-graphics/cairo/cairo.inc b/meta/recipes-graphics/cairo/cairo.inc index 20e0d2c92a..7347f223ff 100644 --- a/meta/recipes-graphics/cairo/cairo.inc +++ b/meta/recipes-graphics/cairo/cairo.inc @@ -22,7 +22,8 @@ X11DEPENDS = "virtual/libx11 libsm libxrender libxext" DEPENDS = "libpng fontconfig pixman glib-2.0 zlib" PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11 xcb', '', d)} \ - ${@bb.utils.filter('DISTRO_FEATURES', 'directfb', d)}" + ${@bb.utils.filter('DISTRO_FEATURES', 'directfb', d)} \ + ${@bb.utils.contains('DISTRO_FEATURES', 'x11 opengl', 'opengl', '', d)}" PACKAGECONFIG[x11] = "--with-x=yes -enable-xlib,--with-x=no --disable-xlib,${X11DEPENDS}" PACKAGECONFIG[xcb] = "--enable-xcb,--disable-xcb,libxcb" diff --git a/meta/recipes-graphics/mesa/mesa.inc b/meta/recipes-graphics/mesa/mesa.inc index 6aedeee9dc..2671d4de4d 100644 --- a/meta/recipes-graphics/mesa/mesa.inc +++ b/meta/recipes-graphics/mesa/mesa.inc @@ -47,6 +47,9 @@ PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'wayland vulkan', d)} \ ${@bb.utils.contains('DISTRO_FEATURES', 'x11 vulkan', 'dri3', '', d)} \ " +PACKAGECONFIG_append_x86 = " gallium-llvm gallium r600" +PACKAGECONFIG_append_x86-64 = " gallium-llvm gallium r600" + # "gbm" requires "dri", "opengl" PACKAGECONFIG[gbm] = "--enable-gbm,--disable-gbm" From patchwork Sat Aug 18 19:25:34 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 144516 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp2216531ljj; Sat, 18 Aug 2018 12:26:14 -0700 (PDT) X-Google-Smtp-Source: AA+uWPy7IKH5i+gLDyWLEkuFsd3HkrO+io4frslIe5A84dqjJDa9xp8tS68tpETHMfuCDCvuXbpx X-Received: by 2002:a63:a54f:: with SMTP id r15-v6mr6948089pgu.336.1534620374844; Sat, 18 Aug 2018 12:26:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534620374; cv=none; d=google.com; s=arc-20160816; b=wXnU7TpI40roNi/AeQxt8mQ3RXWqsepa6TUP1wNB36jw3DPN/Kx1Jzd1KpJXZe9Dp8 1/VVtyBaE6YMmSJWbljyhYydHMgcbtp609rH6SSau1BXaVe56GecQFCaxwk1yR7yvrMg NfrdEh+Rw1tgCi32OOVkNex2pGqqMguFETUNfoKJZs2zcNJctDn71HacTMfMUhgoS703 JEgEeybU9HPU/xnuPWGk/l/19lqUoTg1ougzOOVUXuzVISLjDDUpxN4WJbwJXwXLGQLR ed98UOSf9IZTlgjIglQEgx/3ipWUUIH97Smkx8eLn9KcW+fCusMQeHLHYHfo6QcUlOa9 JSUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to:arc-authentication-results; bh=MxnZ+q4APzMB2/cReEI2Xl5Qe5t+zN+jAeeiy0vv5Lk=; b=OEBHjkfgsw3TWhoV6k1nhOCBizhkTBpUNmuCsmAGdfYk6zTWfXZRTmeUvL/mhJzdeP LdNn5qGWiB8xwTTmk9POxCgVbeQvH6Yclcw0Si9c1AWOVA+rkVONlHugix3Jq71WsQy7 26mHZknefj2ykqeSOCy4nYPsuxPsSGNYwM64F9VgjKfNNRBcFE/zzthSxsMCYPk+4rAD 5mV+E5J2FIXFnMhUxe3xCl8g2kyHiYTOCMQOafPaCfhT5a3gAOsp+BEitYTCDRB3W3Bv m0ufyhnDTTA0iVQZ9uIpFDphgYUF2W14iagqSc46tR2hBvuegs2BHCMmMzwHIiE04rP9 69Qw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=q3dC1Cd3; 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 x23-v6si5463075pgj.543.2018.08.18.12.26.14; Sat, 18 Aug 2018 12:26:14 -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=@gmail.com header.s=20161025 header.b=q3dC1Cd3; 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 layers.openembedded.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 3450D79232; Sat, 18 Aug 2018 19:26:08 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pf1-f195.google.com (mail-pf1-f195.google.com [209.85.210.195]) by mail.openembedded.org (Postfix) with ESMTP id D35B679209 for ; Sat, 18 Aug 2018 19:25:46 +0000 (UTC) Received: by mail-pf1-f195.google.com with SMTP id j26-v6so4893265pfi.10 for ; Sat, 18 Aug 2018 12:25:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=aRwH16y3FbAMWaCGvwYkkhLhkfCbhgR8G/jyQGSXQkg=; b=q3dC1Cd30YbIsKiBo5wSjDvn8x+XqmTzvWcU6E6G68gQRxDl6m4uxgPhgo3F5STSV+ Pd35A/kz/Zvt8QcAYg1SSz2R7tL6jDA43FjULfNZgmlwr+IdtGRjqKkhKhc+H25G+ApH pnH8v3riMeeKsJ+kyTQSlevGDlD+iKoQkmj4C794QKUKOkQ1l98LARUIeIUS5vCUVgvX 6gFZL9Yh7H5kbePCF4+Lx/UX5TA2HJC6BpTy6UsJuqNsbhf5fUU09ty1ZyxWRUeEmdWg w/CL7z2s1+T/bGkIN83HcPW6kbeA1p3RKvGrEBDBJcOy7dMzDFq2N7hObNqFdk+sI32D ECoQ== 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:in-reply-to :references; bh=aRwH16y3FbAMWaCGvwYkkhLhkfCbhgR8G/jyQGSXQkg=; b=fkA+A0vNt/9PMLvlAeihUXopIUWpyY28ASz+t1QhqrNFl2Ztc0wCCOTPxygon5QC5Z GsnwgspuR91pHydQGdKuBvyzakc6XBecmTSdk89rEiFrMBm7e5oVA3civglfaXCMFx4N OlF0/t8oiwSXNqSHPJEmUeqwSD4CYzz35p66hV+KwJPhhh2oN2vrlK7WoA3CG1ZSZ57v xammE0BxpkiEvOSCbRpiH+ciEeAVCbrObYYwqd6NMBuT3G5emSTAnnHEowAUCY7phe9E P/72PiB662LzGQCq7pTSH5c4Tl9RzH4EI+azMLLVvZ4nn2daw1P9a6p1QK58sUw8JoHD E1Qw== X-Gm-Message-State: AOUpUlH37JLBk8TaqpT+5a2ygFAvz/GfzFSsYHKKDrcbQI6NhSVfnRXP VSXs36p64WYaisdMHvCAAkLb3D1g X-Received: by 2002:a62:7886:: with SMTP id t128-v6mr41815749pfc.213.1534620347666; Sat, 18 Aug 2018 12:25:47 -0700 (PDT) Received: from localhost.localdomain ([2601:646:877f:9499::4add]) by smtp.gmail.com with ESMTPSA id k64-v6sm6723068pgd.47.2018.08.18.12.25.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 18 Aug 2018 12:25:46 -0700 (PDT) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Sat, 18 Aug 2018 12:25:34 -0700 Message-Id: <3960c1904968dcdd90face48829e13395f7b32d2.1534620189.git.raj.khem@gmail.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: References: Subject: [OE-core] [PATCH 2/6] powerpc: Remove pie flags from compiler cmdline 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: , MIME-Version: 1.0 Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org Original approach to add -no- flags cause link time behavior changes where packages start to lose the -fPIC -DPIC in compiler cmdline and this list keeps growing as we build more and more packages, Instead lets just remove the options we dont need from SECURITY_CFLAGS this makes it more robust and less intrusive This also means we do not need to re-add pic options as we started to do for affected packages Signed-off-by: Khem Raj --- meta/conf/distro/include/security_flags.inc | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) -- 2.18.0 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/conf/distro/include/security_flags.inc b/meta/conf/distro/include/security_flags.inc index 52e1e4ebc5..4e20a4d0f8 100644 --- a/meta/conf/distro/include/security_flags.inc +++ b/meta/conf/distro/include/security_flags.inc @@ -28,13 +28,10 @@ SECURITY_LDFLAGS ?= "-fstack-protector-strong -Wl,-z,relro,-z,now" SECURITY_X_LDFLAGS ?= "-fstack-protector-strong -Wl,-z,relro" # powerpc does not get on with pie for reasons not looked into as yet -SECURITY_CFLAGS_powerpc = "-fstack-protector-strong ${lcl_maybe_fortify} ${SECURITY_NOPIE_CFLAGS}" -SECURITY_CFLAGS_pn-libgcc_powerpc = "" -SECURITY_CFLAGS_append_powerpc_pn-libdrm = " -fPIC -DPIC" -SECURITY_CFLAGS_append_powerpc_pn-libinput = " -fPIC -DPIC" -SECURITY_CFLAGS_append_powerpc_pn-at-spi2-core = " -fPIC -DPIC" GCCPIE_powerpc = "" GLIBCPIE_powerpc = "" +SECURITY_CFLAGS_remove_powerpc = "${SECURITY_PIE_CFLAGS}" +SECURITY_CFLAGS_pn-libgcc_powerpc = "" SECURITY_CFLAGS_pn-glibc = "" SECURITY_CFLAGS_pn-glibc-initial = "" From patchwork Sat Aug 18 19:25:35 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 144517 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp2216595ljj; Sat, 18 Aug 2018 12:26:21 -0700 (PDT) X-Google-Smtp-Source: AA+uWPwMl52v/iaOjJ7+yb1BO2Q79DKgX2ZZSgYlerwPOn66VNbo4gDqCXIDcwaIviliPh3yWO/t X-Received: by 2002:a17:902:403:: with SMTP id 3-v6mr39437124ple.39.1534620380987; Sat, 18 Aug 2018 12:26:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534620380; cv=none; d=google.com; s=arc-20160816; b=wrwYrnP83nyTdBQgd7mHXFewjUHym0jn6c/nvZ5/7cz/WtQyOWlUbzcdwjvkT/+Tn7 QrxVv5VZVBtGb7kQhCqzycBNFPSBSOBB4726AKViv0UVZ7n2OVLbpd0SGReu470vVRy2 Nblrz2UBjks+jK1Z4lWGax1gXUG04j32YZLlxh+rTCezjroxyHdF9PN4KHM1+sNkSKOP jIA8q8F/D5kFoxG9obPgC/fooPEv9cIiU03pLYlGHpMQB6PTC0MmucpoQgOlrGelZiKQ 9vf3Y9tVsCqZtCKkr0NHXsbwTV9k5PMH7zf4cuHfTwXn9cm73As+60CK2cZB9+Ugi/9g eYHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to:arc-authentication-results; bh=kN0sN0sPUgTn05dYdfVzMvv7r7n9T8YFswiFtvcSL8c=; b=p8XU+olMvli7uGRnpTyqvzjjCbSgN7HEhpB8gGlyqW+N5aKmB3vzQxDdIuDgZRoVMC w3LotPehNvg4TREdPnwdIlAq9Ucao50EaJ7A9P4PBZM+L4H1+lTUOnqmSx1GapqyH02F uRiQBGNNIE3PMu9p85yrwsjGXAXw2Ww2SG2nI5QEd7nLVRhagCdn/ZYFV/vSC0YOy8fa kariCFPnnxHv+sPMhe9CYEx8dHUaonuq+HJx4u++Oeo6RHGUvjUdchIqre+uZezaAlbN 7+KcHldl+XOLe7XijV1aFiYuCh0+NTx104T8b460nPaEzPBIzOfyTwl5+aa4iKT3vr3v DFyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=V3Eqr6OU; 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 h65-v6si5107704pfg.197.2018.08.18.12.26.20; Sat, 18 Aug 2018 12:26:20 -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=@gmail.com header.s=20161025 header.b=V3Eqr6OU; 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 layers.openembedded.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 6B30A79239; Sat, 18 Aug 2018 19:26:09 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pf1-f177.google.com (mail-pf1-f177.google.com [209.85.210.177]) by mail.openembedded.org (Postfix) with ESMTP id 18F317920E for ; Sat, 18 Aug 2018 19:25:48 +0000 (UTC) Received: by mail-pf1-f177.google.com with SMTP id i26-v6so4887958pfo.12 for ; Sat, 18 Aug 2018 12:25:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=qZM+k1KU8s7xfQtdaD63yjEtMmugyH6RnXDLGMxs+5U=; b=V3Eqr6OUN0RG1tHfA8LfScGhKnNHeBuEmzwUyRqRmwSZaeDUqdmgBusncmliTwHdZE qTqMIOuefzHVuXWUh3/LOPQsQ0nUXQtdqreeevgTvNAQi3TAIDEtp7wWxcoGAnPFBYPY U+noijIyetk1eaxFd2S1v8B94nAOlGxUqWrAGWjTsXW4yiv3TQBH4KFSfCYrlzM6VrnO HFqB9tybCsNZMCd6sRpIHRi7wO87aHMN6KLs3iwuuVUFwJxGqqAGfgWFLgjOBnwli9Rp w8Qe6aqJhERYkpcI8D4mYb+Ltpn23X9Q/dW7QksMmR7GVxEW6f/p62Se2k64g19MgcYc s1rg== 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:in-reply-to :references; bh=qZM+k1KU8s7xfQtdaD63yjEtMmugyH6RnXDLGMxs+5U=; b=JO6W8T35Gtguoqm95P5rvsLPFke2dqm/5DajTvFYP3HzWxjcd1arMnWa/i1NG4+3KF xPQl/GM7P9/CFjZ292GtDaxG1BWHW5JlRd4Untoy0RcdXNxGDOkuQHkv4vPru5BSYMFB /eOpIEkR395sLYDlxLLFjfNBZpSReiY4svRb+WIx6MKKEJ+awG3z8+U/N3qcSpAcsu6T zcjtBFsr5UNGrdMmm0HMxlESTpfU4K7+b7fRt1Jj3kW6xgteS2/1t9xa/8NVwrYw2TsR ZwbDnmFQHt6XuLFSCjy+ex2H4la0Rzn4dZrgOQNbGYn+fxjaZhJq7VjIyC8CBg6wIPb2 WKJw== X-Gm-Message-State: AOUpUlFMu5AleMrXXzIv+atNEWrRjBKnGFTd29cTfXMeWSKNruJ623LP gcmlq8EbsiLmsYFhOx+bgs7ksQGn X-Received: by 2002:a62:4b48:: with SMTP id y69-v6mr41598250pfa.93.1534620348815; Sat, 18 Aug 2018 12:25:48 -0700 (PDT) Received: from localhost.localdomain ([2601:646:877f:9499::4add]) by smtp.gmail.com with ESMTPSA id k64-v6sm6723068pgd.47.2018.08.18.12.25.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 18 Aug 2018 12:25:47 -0700 (PDT) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Sat, 18 Aug 2018 12:25:35 -0700 Message-Id: <1b5dda703e10ab0f7286675cf5108b3909d2c6b8.1534620189.git.raj.khem@gmail.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: References: Subject: [OE-core] [PATCH 3/6] llvm: Point llvm-config to one built with llvm-native 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: , MIME-Version: 1.0 Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org If not defined, llvm build system tries to build one which then confuses the OE QA system since its building native tool and target packages in same package build moreover it is not required since we already have it via llvm-native Fixes ERROR: llvm-6.0-r0 do_package_qa: QA Issue: llvm: The compile log indicates that host include and/or library paths were used. Signed-off-by: Khem Raj --- meta/recipes-devtools/llvm/llvm_git.bb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) -- 2.18.0 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/recipes-devtools/llvm/llvm_git.bb b/meta/recipes-devtools/llvm/llvm_git.bb index bb83012231..d853d4151d 100644 --- a/meta/recipes-devtools/llvm/llvm_git.bb +++ b/meta/recipes-devtools/llvm/llvm_git.bb @@ -64,17 +64,19 @@ EXTRA_OECMAKE += "-DLLVM_ENABLE_ASSERTIONS=OFF \ -DLLVM_ENABLE_FFI=ON \ -DFFI_INCLUDE_DIR=$(pkg-config --variable=includedir libffi) \ -DLLVM_OPTIMIZED_TABLEGEN=ON \ - -DLLVM_TARGETS_TO_BUILD="${LLVM_TARGETS}" \ + -DLLVM_TARGETS_TO_BUILD='${LLVM_TARGETS}' \ -G Ninja" EXTRA_OECMAKE_append_class-target = "\ -DCMAKE_CROSSCOMPILING:BOOL=ON \ -DLLVM_TABLEGEN=${STAGING_BINDIR_NATIVE}/llvm-tblgen${PV} \ + -DLLVM_CONFIG_PATH=${STAGING_BINDIR_NATIVE}/llvm-config${PV} \ " EXTRA_OECMAKE_append_class-nativesdk = "\ -DCMAKE_CROSSCOMPILING:BOOL=ON \ -DLLVM_TABLEGEN=${STAGING_BINDIR_NATIVE}/llvm-tblgen${PV} \ + -DLLVM_CONFIG_PATH=${STAGING_BINDIR_NATIVE}/llvm-config${PV} \ " do_configure_prepend() { From patchwork Sat Aug 18 19:25:36 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 144518 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp2216667ljj; Sat, 18 Aug 2018 12:26:27 -0700 (PDT) X-Google-Smtp-Source: AA+uWPxzsZxxWoq1y40Op0ashvcvYuXLca8pL95l2ibXmvpuY/m8r/B5bvy054UcRiNyENAXkPjy X-Received: by 2002:a62:4083:: with SMTP id f3-v6mr41829563pfd.229.1534620386949; Sat, 18 Aug 2018 12:26:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534620386; cv=none; d=google.com; s=arc-20160816; b=hzhgLefVyILrRpiqaGdAuzVOOQ7upbHiRxrMn0BP5vxJA/ICqcKQBKfhiHSTHLXs3+ 2sOU8HAiW0tP3iuaFuQe8Uv4gCX3fUzsD2fw3gs+/8/D1PoeMZ5v9YgjCwZdcoha+3Ub LcBttiqL/+N0lN7pCTlWRTy8sQg2u1L8lLM/dPLISBf093nu2zzFNa/eVz4slLqzpqFp 5IHnQiMgPlac2bPS3pMD9c7Upc1pWlpvJ1BMjGYPWvhX1AW+nUVl3Vrvb6CbFueEdIHd KR14xCpTdBzvP9b5BmF3jNgz4SAl2DkCDmsnisS5l9vqZoVdptzx9qZ9z2nXk5c+LXCs TAwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to:arc-authentication-results; bh=LwHXUTMq9+ZkBD5gZ4A+wt98FJVF+B7zpIQqDe3G0/I=; b=FfuEBAx7IuF5Y5a/v5z3G1MymaJYI+fNwxs8S6GQvu7qDUrO2hIURLbF6xgZHbLcuS OGyWLrPTiisveu7jMcZnKTAHY4adWmG2cX3LFj1RpTyhwapnValjVHzkQpv7I57ya/ci heGF9hfmlleCJTXCw+DtGklhpeuS+Y3ROP4p1ueF/8iobyquJZu20Bkw0sRVdpn2ay3/ Ihew9Ll8WAwIl7s+Db6xOumKj6xoc/Hbi7u55tlEjC4X04hyQzvW26u6DzDOYiP9+c9J fWfoZ9d6QCyps+VIPjA7xhSE6hwXsMPNJvVNzVTABfQLZwtwl3fwy5oXKoDhyXnljhzO C8iw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b="C0s/uQBQ"; 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 s23-v6si5159260pga.563.2018.08.18.12.26.26; Sat, 18 Aug 2018 12:26:26 -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=@gmail.com header.s=20161025 header.b="C0s/uQBQ"; 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 layers.openembedded.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 88B0479240; Sat, 18 Aug 2018 19:26:10 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pg1-f194.google.com (mail-pg1-f194.google.com [209.85.215.194]) by mail.openembedded.org (Postfix) with ESMTP id 2129D7920E for ; Sat, 18 Aug 2018 19:25:49 +0000 (UTC) Received: by mail-pg1-f194.google.com with SMTP id n7-v6so4969839pgq.4 for ; Sat, 18 Aug 2018 12:25:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=cRvlbR+wfYBR/Oj+8cfsSdOvd7S7k40ieppO+sH52Oc=; b=C0s/uQBQFC6diPyvb5J2Plz0gZaDU28z2M8jT8c24Og+QK+GmmiSuAsNpSRaaAG8x+ lDb7R+zRpSM4g8QOTQ+k93BXcAt0g9Bvauqi+EysxBQG2wrU4NCkGX7jqTtoANOFaJiI vAh7V3F3HGBNBtDT379wD4bGNnE9/rqwbvz5M72+T/hQe6gQGa0YTG2it2BiQ4CBsofY ItxwobZnUWJef0VNW1HxXCtPx8o4rox38+IgnPLMspHT4Hc9Nq+0EkGoRNDQvL5iRI7z 4ENM8hY9i8TEkZfQMhMLCNwYO0hKWSYHdEK91xTmeWPKjezEhcbYdxRWP4RHwAJcAhP3 oJPA== 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:in-reply-to :references; bh=cRvlbR+wfYBR/Oj+8cfsSdOvd7S7k40ieppO+sH52Oc=; b=PgcaJ/pi7HchpGwHW7BnhfG6nttVm7coh14PECLPWYcrBzM9L1QDv0Vt7+rgxCA66K PFWo1aet5n+hM6Epe/ufrGFPJnLWl5mTa/HcQJELZcv266a0VahBnjLetYBcij2oClOr ZmGfxLhPv3VIPRFVzSrLiWz4pQphprXkQ8dFJdX5HdZ3FVqJXHCvwjYU2BFaH6EcGEFX TgU04GaUJ7mRS3WJ8RdvdKe1mSWQ+Q5oc4geqcRUgZWmofZQa3XcpOqrOtSV6YDtqz08 FaCtWqGFU5xIvy0VJ2EZ62duGUkcV0j/359DnIh+gCg1haXaQBKYflm17mHDC00mFqOr qKag== X-Gm-Message-State: AOUpUlEHYCCQFUnlfjniL7lE9ra2hNouBg2GgoVFPFrgi3rU8A7jAZgx VqVt3K2GxeLxBW60lJHfRhSf7z9V X-Received: by 2002:a62:6283:: with SMTP id w125-v6mr41589468pfb.108.1534620349975; Sat, 18 Aug 2018 12:25:49 -0700 (PDT) Received: from localhost.localdomain ([2601:646:877f:9499::4add]) by smtp.gmail.com with ESMTPSA id k64-v6sm6723068pgd.47.2018.08.18.12.25.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 18 Aug 2018 12:25:49 -0700 (PDT) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Sat, 18 Aug 2018 12:25:36 -0700 Message-Id: <17f1f013ccf6a321b25fffeac5e40fad6bb9c15e.1534620189.git.raj.khem@gmail.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: References: Subject: [OE-core] [PATCH 4/6] dos2unix.bbclass: Move to oe-core 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: , MIME-Version: 1.0 Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org - Import from meta-oe layer - This is useful for many packages where CR-LF needs to be adjusted, many recipes depend on it e.g. meta-multimedia libebml and so on. Signed-off-by: Khem Raj --- meta/classes/dos2unix.bbclass | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 meta/classes/dos2unix.bbclass -- 2.18.0 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/classes/dos2unix.bbclass b/meta/classes/dos2unix.bbclass new file mode 100644 index 0000000000..3fc17e2196 --- /dev/null +++ b/meta/classes/dos2unix.bbclass @@ -0,0 +1,14 @@ +# Class for use to convert all CRLF line terminators to LF +# provided that some projects are being developed/maintained +# on Windows so they have different line terminators(CRLF) vs +# on Linux(LF), which can cause annoying patching errors during +# git push/checkout processes. + +do_convert_crlf_to_lf[depends] += "dos2unix-native:do_populate_sysroot" + +# Convert CRLF line terminators to LF +do_convert_crlf_to_lf () { + find ${S} -type f -exec dos2unix {} \; +} + +addtask convert_crlf_to_lf after do_unpack before do_patch From patchwork Sat Aug 18 19:25:37 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 144519 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp2216763ljj; Sat, 18 Aug 2018 12:26:33 -0700 (PDT) X-Google-Smtp-Source: AA+uWPw8Uro6W7LzwTD8HlQg5HOMhFy7SUfufnobCDJPMECSlHotvnra3m2j4A2ACTmdWChNT+Q0 X-Received: by 2002:a62:6746:: with SMTP id b67-v6mr41746884pfc.243.1534620392999; Sat, 18 Aug 2018 12:26:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534620392; cv=none; d=google.com; s=arc-20160816; b=aQztzEYn3BPrHbRkgenDM9CC9U23e3f1BSwiP67sCVho0x9iunIs3SQ4gHBXzXAVGG Go/gSk+LmRXrpHA504d5PhhUgiJr7uscY+MMMhU0n4W2ueZm0LxVmDOOZRVQcShHFs28 bDMYNJdkuQk/rlhVW42iPbGbCy8/XUufxpnO+nSV+ZjKfMdoW6ZK75PH7GT+Lg8YSuKa lFRMD/+/7ipCsgRwSPhA2Wr/zAwCqxnjXtoeZqbpNWjYlpGqqr6MAdx2oyDZpAHrQP/D 5+JbZexixxLlFiDCwPrJMb9NpiSK8j/TKEfiPo2tFgqibNLckuABGe5Q7kXXhaNbJokL qjQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to:arc-authentication-results; bh=bcEW1NwhF/uD7puW4b7bVyq8/t7adnnFOBKLhQPaKA4=; b=g7jHDaKhhaAiC9AtyZU29oa1qKXZrZkO0EEVVROXkLu0K3vz+W54maj+umW7SD3yh2 24dNaQtOSMJcb24BEbOAkEYWRmU8RU7ZLgofJMDfyys5aI99G2RhhNJVxtgUEOCVrBpe ygomMzn3Ob3fLfxXkOSDe4LYatY1oejNW0vKrI8Hrpg4RroJazjRqfdQON8P3QEUReGj 0nhUUEM6ar7dNOMe4aLJUSRGQz4N6PoQPwFRU/BF/VLWNX3bFPjLL42gtCeqQmOQ6wbj CJohGSriyqZ8XUxjFugzmzpxVqi8HFoqwowHcdcmsG9cfNO6m7vaCMXAcVM7rvSXWs71 bj7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=Qq69GJc2; 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 h3-v6si5423521pgc.122.2018.08.18.12.26.32; Sat, 18 Aug 2018 12:26:32 -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=@gmail.com header.s=20161025 header.b=Qq69GJc2; 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 layers.openembedded.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id A7B4C79246; Sat, 18 Aug 2018 19:26:11 +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 1986679210 for ; Sat, 18 Aug 2018 19:25:49 +0000 (UTC) Received: by mail-pg1-f196.google.com with SMTP id r64-v6so3792208pgr.0 for ; Sat, 18 Aug 2018 12:25:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=vKibzbLpaZgpSlBh2YkxbU8QkteV/aZDIQJG2yQS/Tk=; b=Qq69GJc2DZWFtgtbPwLgCT8uwEv5VV7ya5UyKbo4hKiOPNQkpCsyr/EVocvGAIS+Bf 6J/+GiSnWo6qGBanOZC41C+1zuKfcmCIf/hxi9Mt2ArsUK2vCFfNMe1/JCNG8bcSqej+ DO8uRqPecFCqY+wf7pUQbUy35CKPzj/9LsMozjD0XEbTZekmUTdwLsbsrV3y22c8oCvi F9pP8T3rIJEy70gXfZImit/SX0BieWERG/xwO9cxFSVJ9IOnWnRdz2STJQ/59XBWU2QH cJAHNPvzztcwluVEYyBXXq7JJPhiWkbK++Ub8J46/c0GiredjGST0eeGPyssX64EFQou KhqQ== 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:in-reply-to :references; bh=vKibzbLpaZgpSlBh2YkxbU8QkteV/aZDIQJG2yQS/Tk=; b=Vr6arrKvI4D+7KrwFCY1o6KumJP/pyovTDODDItYOs5gbmm/+6KMR0EIn4+gK8YzoW cl2z+qLaYx3DZ8Xx00ZaeX/KlF/B+QE9mJBB7mr+GX6CDzoMtaFP3ycLEjS7NbDMdcfs cMZzRfFT8bsHLHM6QwSbde+na1yz8jGNYZjkMa72spRr0HSWOTu7MqkxNteED29+WUNV g1LhyBVEnmexGnwDz6wNNx8EBRMiayQ9J3EGW7YnXa+lGL2MiiGPKTqkOnxyV/nr9zWN O7VNt73aQt1PimfNxI7gp+RZ6vE9pTCN69ofyeN6RObBIeNr+X18ZiE1r+YmtIJW+lCN HFow== X-Gm-Message-State: AOUpUlHIrG7GFMGffKB5bnue5qoCngHeBrcRQnLt/ch7TYDkxtBQlPI5 qCpI+q7H/9uThxKcwlbsASFu3m1I X-Received: by 2002:a63:8042:: with SMTP id j63-v6mr36893343pgd.230.1534620350880; Sat, 18 Aug 2018 12:25:50 -0700 (PDT) Received: from localhost.localdomain ([2601:646:877f:9499::4add]) by smtp.gmail.com with ESMTPSA id k64-v6sm6723068pgd.47.2018.08.18.12.25.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 18 Aug 2018 12:25:50 -0700 (PDT) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Sat, 18 Aug 2018 12:25:37 -0700 Message-Id: <60211748013740f932e9e7f4b091f0df86d53a97.1534620189.git.raj.khem@gmail.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: References: Subject: [OE-core] [PATCH 5/6] llvm: Use YOCTO_ALTERNATE_MULTILIB_NAME environment variable in llvm-config 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: , MIME-Version: 1.0 Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org llvm-config is a tool on similar veins as pkg-config but provides a lot more information and packages which use llvm e.g. mesa use this tool to poke for llvm related informaiton e.g. version, libpath, includepaths to name a few, this has few challanges in cross build environments where llvm-config is supposed to be build for buildhost but provide information about target llvm which is addressed by building native llvm-config along with target llvm build, but this is frowned upon by OE build system since it detects that host paths are being used so we have to build it as part of llvm-native but then it means install paths for llvm and llvm-native are different and wrong paths get reported when llvm-config is used. This is solved by providing YOCTO_ALTERNATE_EXE_PATH variable to let llvm-config use that path instead of self-relative path to report back Second problem is when building multi-lib packages base_libdir is different for target packages but native llvm-config does not know about it so it reports non-multilibbed paths as libdir and packages can not find llvm in sysroot. This is fixed by adding another environment variable YOCTO_ALTERNATE_MULTILIB_NAME which can be set from recipes to set proper multilib path Signed-off-by: Khem Raj --- ...-llvm-allow-env-override-of-exe-path.patch | 47 ++++++++++++++++--- 1 file changed, 40 insertions(+), 7 deletions(-) -- 2.18.0 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/recipes-devtools/llvm/llvm/0002-llvm-allow-env-override-of-exe-path.patch b/meta/recipes-devtools/llvm/llvm/0002-llvm-allow-env-override-of-exe-path.patch index 21d2f81b58..6a9283323c 100644 --- a/meta/recipes-devtools/llvm/llvm/0002-llvm-allow-env-override-of-exe-path.patch +++ b/meta/recipes-devtools/llvm/llvm/0002-llvm-allow-env-override-of-exe-path.patch @@ -1,4 +1,4 @@ -From 2f8ea767afdaa440c6368040630e1b3ea6a0977a Mon Sep 17 00:00:00 2001 +From aeccf16eaccdd80e4d5ecaa51673ce4b2bac1130 Mon Sep 17 00:00:00 2001 From: Martin Kelly Date: Fri, 19 May 2017 00:22:57 -0700 Subject: [PATCH 2/2] llvm: allow env override of exe path @@ -8,16 +8,19 @@ return the libraries, include directories, etc. from inside the sysroot rather than from the native sysroot. Thus provide an env override for calling llvm-config from a target sysroot. +To let it work in multilib environment, we need to provide a knob to supply +multilib dirname as well + +Upstream-Status: Inappropriate [OE-Specific] + Signed-off-by: Martin Kelly Signed-off-by: Khem Raj --- -Upstream-Status: Pending - - tools/llvm-config/llvm-config.cpp | 7 +++++++ - 1 file changed, 7 insertions(+) + tools/llvm-config/llvm-config.cpp | 17 ++++++++++++++++- + 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/tools/llvm-config/llvm-config.cpp b/tools/llvm-config/llvm-config.cpp -index 08b096afb05..d8d7742744e 100644 +index 08b096afb05..360cc5abf4e 100644 --- a/tools/llvm-config/llvm-config.cpp +++ b/tools/llvm-config/llvm-config.cpp @@ -225,6 +225,13 @@ Typical components:\n\ @@ -34,6 +37,36 @@ index 08b096afb05..d8d7742744e 100644 // This just needs to be some symbol in the binary; C++ doesn't // allow taking the address of ::main however. void *P = (void *)(intptr_t)GetExecutablePath; +@@ -306,12 +313,20 @@ int main(int argc, char **argv) { + std::string ActivePrefix, ActiveBinDir, ActiveIncludeDir, ActiveLibDir, + ActiveCMakeDir; + std::string ActiveIncludeOption; ++ // Hack for Yocto: we need to override the multilib path when we are using ++ // llvm-config from within a target sysroot. ++ std::string Multilibdir = std::getenv("YOCTO_ALTERNATE_MULTILIB_NAME"); ++ if (Multilibdir.empty()) { ++ Multilibdir = "/lib" LLVM_LIBDIR_SUFFIX; ++ } ++ + if (IsInDevelopmentTree) { + ActiveIncludeDir = std::string(LLVM_SRC_ROOT) + "/include"; + ActivePrefix = CurrentExecPrefix; + + // CMake organizes the products differently than a normal prefix style + // layout. ++ + switch (DevelopmentTreeLayout) { + case CMakeStyle: + ActiveBinDir = ActiveObjRoot + "/bin"; +@@ -336,7 +351,7 @@ int main(int argc, char **argv) { + SmallString<256> path(StringRef(LLVM_TOOLS_INSTALL_DIR)); + sys::fs::make_absolute(ActivePrefix, path); + ActiveBinDir = path.str(); +- ActiveLibDir = ActivePrefix + "/lib" + LLVM_LIBDIR_SUFFIX; ++ ActiveLibDir = ActivePrefix + Multilibdir; + ActiveCMakeDir = ActiveLibDir + "/cmake/llvm"; + ActiveIncludeOption = "-I" + ActiveIncludeDir; + } -- -2.16.1 +2.18.0 From patchwork Sat Aug 18 19:25:38 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 144520 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp2216813ljj; Sat, 18 Aug 2018 12:26:38 -0700 (PDT) X-Google-Smtp-Source: AA+uWPwrMxahh/H/QuyNuzj25xH7iQG5j6UvjNGETCW9a9X5c6B+1s41V7lG8/eK9Km7rHmchyKH X-Received: by 2002:a65:668f:: with SMTP id b15-v6mr10852927pgw.426.1534620398527; Sat, 18 Aug 2018 12:26:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534620398; cv=none; d=google.com; s=arc-20160816; b=AuoqsMh6d+Eq1PU2zkChQqslSBZ4oAmguT7B6tGzmxUpHA+LS5/ow1X3AiCJJz1u8n DsB7Uu/2jAEalKcGVY1yj4SmxQTwukHBEAHLFcucBJMdEt/Nz1MgNnafNPmK+wqRbefv 9PQqxLgyEPCICc7uMI3NwgMvo/i+t4KqTkFapm26bLtMDDEhFylAzQYWAzpV/kBEAytl vTovxkN+icJgC3BkvhqC3MNf5JjqZQfJwMhxjiY5kv6zqWoa+WRvBU3padFlKNd+BVl+ lWRYidhfkqcBsIuKP1y9/h8DfXncSkYDVOBSyyfxP/vaVJXBYmfHH6Lm8XAwJDZSms3J tgjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to:arc-authentication-results; bh=/z36FOnQcj0RCItDrRFOhIchllQh1PWK1FyF/lfUbYg=; b=EpCwopBLOJFnJG4GHJWU3DH83J083JdEMpAOaoWsOyUFF1nDkmY/fiFPNiE9UXAVy2 V+IsYpy2kFcwjt7CZlKJHWZFu4peKQBwBu9kgG6Rtc5Ohwm1bX90h9vpY3KDC03T6XxI Ov1HomfWb4JhBW9ZX8b8tB8ez/34wGGvf+yP8S9mhFRgF82X7jNVJCSB9ump3/4ygImC eSCI0WzvRt3chpuXAYJZPV7Qz8GiSUbwNNsqCN6EF6yi4ogdrxZHwdlwMEVfHVSzZpek vHeBj+cRZmpbJnNmkh02XKgZuNJB10/BydDIM2OTMG6ERiG6Lvp3h9Fg3GkNxxJ2mX6N KGSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b="B/qBjDAy"; 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 144-v6si5445457pfw.95.2018.08.18.12.26.38; Sat, 18 Aug 2018 12:26:38 -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=@gmail.com header.s=20161025 header.b="B/qBjDAy"; 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 layers.openembedded.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id C8AEC79251; Sat, 18 Aug 2018 19:26:12 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pl0-f50.google.com (mail-pl0-f50.google.com [209.85.160.50]) by mail.openembedded.org (Postfix) with ESMTP id 443AD7920E for ; Sat, 18 Aug 2018 19:25:51 +0000 (UTC) Received: by mail-pl0-f50.google.com with SMTP id b90-v6so5193972plb.0 for ; Sat, 18 Aug 2018 12:25:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=LdLbrpmH32q3qj8mCPCakUtrLk79dx+UxclS3WTAw3o=; b=B/qBjDAySMuXjFVgtMbW+vZvc4p2HYFPDPWz6KXfmbCNfLjjjkxRG6e43Si+mLFqYk BuyJ5Ai5QAdM9AJMaypQM+gTDciAT7AYE6i2HDTiFvL94J2Dd9tyNTejNH8ciKWfdwCf usNN8PJsWUk0ZJ/ACgoxYKCYptX/d9jOzbDS/WedVi8qKiqQVcMkpFJGI5Jlg8ajzoj6 eBX4HTreK9Vszs6IBADQwe7Zl+U9oF4rIOZOWvZKZLEBPHBlgVzZD9BpJsU8YId5L9r3 ovjoyGtD4whXmMvSbySfAJcFc9p77ZCc5OXPaDn3NC8Xej0o3E8QuMmsAq+Im2ktJR/o ZUHg== 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:in-reply-to :references; bh=LdLbrpmH32q3qj8mCPCakUtrLk79dx+UxclS3WTAw3o=; b=OrGt0EP+SGJSVRz7nfmN2erOPPH9RBmGjmEC0IFQhLshaOUXHCyNeFRGLwgMoUSxu9 Pphu/VZM4MgWQaSE54QRwCGkVr+LP8tGb9vVQQY6L8eq8wxxH/khrPAJL7z2hp7WRSlI +OYlkKxLjdmXf6icmghjdp1ZUYyaOIWk7iY1HzyOtghyPN/28k7/SMhLUN3JJbZx1BEh CV5VRV2ZbZYq7gSrRR4tp59qCIE+Sk00MxwupETss4sFxr/JsWIOsNq4UefXFa6QMLCb zHfnKtwO3p1r6A74ZN7wDChEf+t6+wp7S3tZ8jUSPgK/69CFUI9vgrhtaYhd/8PmstPw C2Hw== X-Gm-Message-State: AOUpUlGI6a8AhI4a6xCMahIbAlQ/+nuqo6J2heCH2t8jo8D73g9/0Wb0 JbPfoDdnuFJNPfxOKRh82rqsU8wu X-Received: by 2002:a17:902:e18e:: with SMTP id cd14-v6mr3078364plb.305.1534620352053; Sat, 18 Aug 2018 12:25:52 -0700 (PDT) Received: from localhost.localdomain ([2601:646:877f:9499::4add]) by smtp.gmail.com with ESMTPSA id k64-v6sm6723068pgd.47.2018.08.18.12.25.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 18 Aug 2018 12:25:51 -0700 (PDT) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Sat, 18 Aug 2018 12:25:38 -0700 Message-Id: X-Mailer: git-send-email 2.18.0 In-Reply-To: References: Subject: [OE-core] [PATCH 6/6] mesa: Define YOCTO_ALTERNATE_MULTILIB_NAME to consider multilib names 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: , MIME-Version: 1.0 Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org Signed-off-by: Khem Raj --- meta/recipes-graphics/mesa/mesa.inc | 1 + 1 file changed, 1 insertion(+) -- 2.18.0 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/recipes-graphics/mesa/mesa.inc b/meta/recipes-graphics/mesa/mesa.inc index 2671d4de4d..dd626d9f00 100644 --- a/meta/recipes-graphics/mesa/mesa.inc +++ b/meta/recipes-graphics/mesa/mesa.inc @@ -34,6 +34,7 @@ PLATFORMS ??= "${@bb.utils.filter('PACKAGECONFIG', 'x11 wayland', d)} \ export LLVM_CONFIG = "${STAGING_BINDIR_NATIVE}/llvm-config${MESA_LLVM_RELEASE}" export YOCTO_ALTERNATE_EXE_PATH = "${STAGING_LIBDIR}/llvm${MESA_LLVM_RELEASE}/llvm-config" +export YOCTO_ALTERNATE_MULTILIB_NAME = "${base_libdir}" EXTRA_OECONF = "--enable-shared-glapi \ --disable-opencl \ --enable-glx-read-only-text \