From patchwork Thu Apr 4 05:49:32 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 161750 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp1185740jan; Wed, 3 Apr 2019 22:49:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqxGs6AMWF0PGnn1f8ym40cXe7styp4o3P/luBkAD5t6gsScY/66ciPTXwltkV8FWQlylBWK X-Received: by 2002:a63:cf0f:: with SMTP id j15mr3882411pgg.329.1554356987543; Wed, 03 Apr 2019 22:49:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554356987; cv=none; d=google.com; s=arc-20160816; b=u3l3DfzPVHLJWMdRHxh2Yai+3V0ra8DsidPL8d8SmHExOHBnagbP81QZwRI6ZYXCW1 9IsMmQ6421pLlVobRT/s8gfOovPiFl4WHsToZ3cmW+2WCquKYHcBW3HCb7AgDEGJdsFw 2BHX7ZClMsb8hqCUumoL8y7ktCBp0tRG9gksTTHjgc6u7tBo7woyfqW6/ic0bMCZcZSn LoVxcFQS164HPqsxSKcspbXZeT6BhSA+UNpeccU11P/rsgcOD1xU/cnOXsaCiEnX/XBu I2Wlq8NOzS4jPp6a3UdPKlyH1ACap1f8SiRCKICA+oTevMykprUg4Q71IQf52GtMU1Ub pgaQ== 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=j7p955CBdOPEgm+wsNQ+1I7QW7C5bRMPIydL8JTva+I=; b=N4AgShxjPEIqt4EPvhhXqNEGA12OzRo5kJE9hRP4zum7u8tEHo9K2kW8GT3UxiEkyw Xibp5aLsqywNrpknltx9boHpvZfdqj5ByzQBsh5zHep3xRKGero9wJKGcDzAfL3tj6Dl Sp5gG0YOj3qKLqANS/DpdNv3W5wfimXIdYons6e6OGxaRL0B1vNBxKODpcZ9Xkj0vbkH boBpmaYuVHK0aCd4w3aMfLzk99A1uNpXsaRzUa9j+C53BffHGw7XOj9rKhkI7FS/2Wt3 9WaKwubu8qZGUGNregh2RAw6e41bPF29Bz5WsRzocN0GS3Qss4ZwQaoU8DY3EUALF/gm dpkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b="Tc/Q+euE"; 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 a10si15065528pgt.357.2019.04.03.22.49.47; Wed, 03 Apr 2019 22:49:47 -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="Tc/Q+euE"; 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 ec2-34-214-78-129.us-west-2.compute.amazonaws.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id DC9C67D433; Thu, 4 Apr 2019 05:49:42 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pl1-f182.google.com (mail-pl1-f182.google.com [209.85.214.182]) by mail.openembedded.org (Postfix) with ESMTP id B173A7D401 for ; Thu, 4 Apr 2019 05:49:41 +0000 (UTC) Received: by mail-pl1-f182.google.com with SMTP id w24so601942plp.2 for ; Wed, 03 Apr 2019 22:49:42 -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:mime-version :content-transfer-encoding; bh=TopGRm0NI3mUh3Cu3LGIAHTqGrpTiCglTsFZ02ryCpA=; b=Tc/Q+euE6dKedbUTgrhrtAu0OQJTimaCl2c1f54bS+ANcQBwlsIqztKC3NG+sz/If4 ml10HpPlHROGTQ+/k1yhH5vOE611bK/h3cWCGm4hWZtkgcmhrwsyE6jfSPDZwa0B9q6d ZDUAq3U17Fpio0S0MrJxeM78cbOE5j5MPJoSsjaBhbVNINld8M8/dQ1M/lLJFDR4yt+N pXfIlBJPis0A1U1g7lkj+aL6j4QM2DmDHCpw6wZWWyeqzmPUJu+OVvo8abJN0u3nig/3 lq1JNkk0y/ub+J/A+z9OzoO9W+ITQ7dreVj53K01l8CutxVl0swcnZWv4y1VOuATImMy s2BA== 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=TopGRm0NI3mUh3Cu3LGIAHTqGrpTiCglTsFZ02ryCpA=; b=F4ZS8Zy1elz/vAUEKBgbM+Bd49I8bhBIusbHnmlFzkQhKI8IemCCL94D6T05tO9QOX hUdAoPQv003NsMAfyW8UhTSUsI3M4cX+y63BR4A7C+DAy5oPs4LP9mGnGn2/dqjT6lPp yYpVp8BCvsf9LFGW4nvy75wXt+6senQ0Wqi481wfiaY7KNOFeSuXLXJKv692ManN/OZ1 sciwtYLh//bK1+V9RxW8YDfJ1C0eM8eqcOi09o6RN+QynoGCzFPzUQWnF5FHYQYhiGD9 m8xLL1iPVyL8o6yUNWgv7MgEWskFDQYt51UVCnPyMaZFnjfN+Wy7QD3NkXtecXYPHDLa qUKg== X-Gm-Message-State: APjAAAUQ6uzBZBeSuU/A+BTQstv837BQjP8EbuUkDlArRkdYXd+DPnp0 NaWqbs0iVHOjPT1G4gOtZ4XmMIUTNdM= X-Received: by 2002:a17:902:b715:: with SMTP id d21mr4469171pls.103.1554356982061; Wed, 03 Apr 2019 22:49:42 -0700 (PDT) Received: from apollo.hsd1.ca.comcast.net ([2601:646:8500:6bc6::dcf4]) by smtp.gmail.com with ESMTPSA id w23sm17260666pgj.72.2019.04.03.22.49.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 03 Apr 2019 22:49:41 -0700 (PDT) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Wed, 3 Apr 2019 22:49:32 -0700 Message-Id: <20190404054932.38231-1-raj.khem@gmail.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Subject: [OE-core] [PATCH] libgcc: Create linux-musleabihf and linux-gnueabihf symlinks 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 we have hard-float ABI enabled, certain tools e.g. llvm/clang expects the hf version of tuples for crt files from libgcc, therefore create a symlink to help the cause. This makes clang work with hard-float defaults on target Signed-off-by: Khem Raj --- meta/recipes-devtools/gcc/libgcc.inc | 7 +++++++ 1 file changed, 7 insertions(+) -- 2.21.0 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/recipes-devtools/gcc/libgcc.inc b/meta/recipes-devtools/gcc/libgcc.inc index e4e0c48007..e008d14f36 100644 --- a/meta/recipes-devtools/gcc/libgcc.inc +++ b/meta/recipes-devtools/gcc/libgcc.inc @@ -11,6 +11,13 @@ do_install_append_class-target () { esac ln -s ${TARGET_SYS} ${D}${libdir}/${TARGET_ARCH}${TARGET_VENDOR}-$extra_target_os fi + if [ -n "${@ bb.utils.contains('TUNE_CCARGS_MFLOAT', 'hard', 'hf', '', d)}" ]; then + case "${TARGET_OS}" in + "linux-musleabi") extra_target_os="linux-musleabihf";; + "linux-gnueabi") extra_target_os="linux-gnueabihf";; + esac + ln -s ${TARGET_SYS} ${D}${libdir}/${TARGET_ARCH}${TARGET_VENDOR}-$extra_target_os + fi } PACKAGES = "\