From patchwork Thu Apr 11 22:11:50 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 162082 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp7959440jan; Thu, 11 Apr 2019 15:12:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqxdzH/vo6jreT/wBJ9nLgpK/hKhZVZvDsvD5U7KH0gm8rn9B20E0wcLKAnruxNEA+rm7ekf X-Received: by 2002:a63:5a1d:: with SMTP id o29mr49203853pgb.320.1555020723377; Thu, 11 Apr 2019 15:12:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555020723; cv=none; d=google.com; s=arc-20160816; b=WgCRcOVRJh8YHRq+ohLmd7xG9PGduznBEfswnmintVx8cpsh/cUrZa0D+WKyduu5sw p37tSJKWM23Scr+IWEW/tiZLsHwp/u9Qf2QAJoMfAEbIi6ilGMZaRetmjyZ7B/cSZ1n3 ea/3byT6BQoac5W0HUeZ93Sx7W+/aHy9bi99jWuvgEIupg9Liz6mLU3Dr53HZT0QMNYA ppG34bmnVowa/Wt9WkWYq/g9RAeePxEcdo5ZzC39HT/iwug3wQ8QCXCVOYxENmACMKao nDjeJcPiubNPbiQVShqlpTpR8ScChec68aAMZN3O/inco3iWfL+EbPGifxX28iMUFU6d 7Uww== 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=V9tif8MiPt2kuN0Qo3nifOUolPCmw1N7o2BztdaViFo=; b=FMdQnIkXoPIA+t1IXgWJPGVj2/KlxbrhUZr8HSBvECWUOUA5jH4y/l9rUXZ4vP0WuE EVm9Sa2cLe54QYX5dD8LGx73NJ3qD76je/bxwDxKu7BFtN0lahBJiZLPdwnTPYyLOaTS UXvn3mldcJRBzGvvjKka/AN18ufHsY2J47fdc2z7g2xdw8MZnIxIZ2qwZxggxmFLUh6U z4PEhiRlwlcZ5ah5pGCdF5cl4rFC9MOox8gun0G0ok/Nm/9wDr88LJVQjmOtm173mt+s oqU9ccqAB2uYaVDsP/Efrphwf9/XYuCaoA7KR8sHdgvw0+JCc5H3M/XiO6VSONlF0uvd cFYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=oGz9Dw7d; 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 f64si26539690pfc.168.2019.04.11.15.12.02; Thu, 11 Apr 2019 15:12:03 -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=oGz9Dw7d; 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 721B37DB5A; Thu, 11 Apr 2019 22:11:59 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pg1-f174.google.com (mail-pg1-f174.google.com [209.85.215.174]) by mail.openembedded.org (Postfix) with ESMTP id DEFA07DB5A for ; Thu, 11 Apr 2019 22:11:58 +0000 (UTC) Received: by mail-pg1-f174.google.com with SMTP id i2so4142776pgj.11 for ; Thu, 11 Apr 2019 15:12:00 -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=vuuV8Ld7esGyx7eIO7hZKecFa5Li48exk+UaVJj1Unc=; b=oGz9Dw7dckFCcjemX/rMS1EDhXzLZUOoNqrmY0xMIVq7tMfG7WmZlzsfaYTkc+S19w 9riXdHP4O9VAucJV+MM9xMemd9mQUWg8Nlo2OiAI4yXzYxfPoJAcBfrIpYfsKZMZz7Qn t0a9LTlm9RH5btK1ko+fFIzv/lVLE6+ZyOtPc1BEnX7182NO3Ai7L5pofqNSuxLqwiCD 3VZxCj1A3ruZ8WvEMh/bXsPwtew2fwYSihTUQhQJfxWmWCuxYmOZeJrQG72GUSGAKCaq iRnx4T10DkBwENCllj36J3n6/qDD3h3GyXU9Yw01g0OEcmNZ/vE8UOLWDOy5Ztyog+Pu NjhQ== 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=vuuV8Ld7esGyx7eIO7hZKecFa5Li48exk+UaVJj1Unc=; b=iGlXrVVo7Bt3t0ruUTHEQubhVXxD7TiHgKrLRE3JB1v/FD0LD2C7dXDFFqnRGgKpzo fl6aB5xLHvGflrNlv+6T6KYlaKpXaji5aO5FsEdrqBNivLr9HNjxiTBDwT7+LR9JRB0N DaHAGcd9Zn6lQ0GKSG1c3xz0nEzGoMyKJKw8tswCGMVMstIaNAy4OdHWYxVbO+WMV+GT 3UCMxEMeeW5EZCLDktBtT8Cn76NmFRDTC+QuiNVWo56iBvLOelCEHUPr3rlepkzaoWj3 r/soJQ59DjWHZharH7p4MpTXzQQtsy9lqrdRNt7u0qtl7/s4f6m47vUxuDYzparl8fMY EYRQ== X-Gm-Message-State: APjAAAUDo7z+y2GNP/+CDJhVNQl0ENfOtPLiv/bcr0DnR2ii5kh4tRIT TzdsvBrOjdEq0NABj0HzMWsTpLIJb+M= X-Received: by 2002:aa7:8518:: with SMTP id v24mr52756912pfn.219.1555020719419; Thu, 11 Apr 2019 15:11:59 -0700 (PDT) Received: from apollo.hsd1.ca.comcast.net ([2601:646:8500:6bc6::739a]) by smtp.gmail.com with ESMTPSA id h20sm53080314pfj.40.2019.04.11.15.11.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 11 Apr 2019 15:11:58 -0700 (PDT) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Thu, 11 Apr 2019 15:11:50 -0700 Message-Id: <20190411221150.16825-1-raj.khem@gmail.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Subject: [OE-core] [PATCH V2] gcc-cross-canadian: Make baremetal specific code generic 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 baremetal override is not valid for cross-canadian anymore therefore use the TARGET_OS overrides Fixes e.g. https://github.com/riscv/meta-riscv/issues/117 Signed-off-by: Khem Raj --- meta/recipes-devtools/gcc/gcc-cross-canadian.inc | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) -- 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/gcc-cross-canadian.inc b/meta/recipes-devtools/gcc/gcc-cross-canadian.inc index e7c08d3a61..807e47e0ee 100644 --- a/meta/recipes-devtools/gcc/gcc-cross-canadian.inc +++ b/meta/recipes-devtools/gcc/gcc-cross-canadian.inc @@ -159,10 +159,9 @@ SYSTEMLIBS = "${target_base_libdir}/" SYSTEMLIBS1 = "${target_libdir}/" EXTRA_OECONF += "--enable-poison-system-directories" - -EXTRA_OECONF_append_libc-baremetal = " --without-headers" -EXTRA_OECONF_remove_libc-baremetal = "--with-sysroot=/not/exist" -EXTRA_OECONF_remove_libc-baremetal = "--with-build-sysroot=${STAGING_DIR_TARGET}" - +EXTRA_OECONF_remove_elf = "--with-sysroot=/not/exist" +EXTRA_OECONF_remove_eabi = "--with-sysroot=/not/exist" +EXTRA_OECONF_append_elf = "--without-headers --with-newlib" +EXTRA_OECONF_append_eabi = "--without-headers --with-newlib" # gcc 4.7 needs -isystem export ARCH_FLAGS_FOR_TARGET = "--sysroot=${STAGING_DIR_TARGET} -isystem=${target_includedir}"