From patchwork Tue Sep 8 11:33:22 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Damien Le Moal X-Patchwork-Id: 1359680 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.136; helo=silver.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=wdc.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=wdc.com header.i=@wdc.com header.a=rsa-sha256 header.s=dkim.wdc.com header.b=HyA9xJ0D; dkim-atps=neutral Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4Bm32757Y4z9sTS for ; Tue, 8 Sep 2020 21:33:51 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id CC65720436; Tue, 8 Sep 2020 11:33:49 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fYHtoawKSkOp; Tue, 8 Sep 2020 11:33:44 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 3453C2754C; Tue, 8 Sep 2020 11:33:44 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 257C21BF82B for ; Tue, 8 Sep 2020 11:33:43 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 16FB12040B for ; Tue, 8 Sep 2020 11:33:43 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VzOP+jIkCFsR for ; Tue, 8 Sep 2020 11:33:41 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from esa5.hgst.iphmx.com (esa5.hgst.iphmx.com [216.71.153.144]) by silver.osuosl.org (Postfix) with ESMTPS id 1BE5220436 for ; Tue, 8 Sep 2020 11:33:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1599564822; x=1631100822; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=pgHMIMpiBuW3kJQUhiKv7unDnwukOXx+T2Okfz19dec=; b=HyA9xJ0DJwLid5f0DcSlhGDnfAo6yx+bYvc1ghXoDCF4v3wbACKMHOlp 04H4JDpmCzvO7VG84e81OEF8zAHd5oHmWbBvjfasd0OFBtcVgnqS00FyJ SMtTbTUsrtsNwI/z91d+nGz9uIH3/yNR83tBHSTHkTY5smrER+Hu6DsTb gSBj7nHahR2jE5GjM+03dMIjLsSK1mf2o74RZaRN3s8iFVAXyjON1N+wy 7XHkCSX+xLCjsE50SwsKJCRYAxOwAqxf13xmR0apYQMj4ySkd7mXr/Js2 jsiAd/rusLNvIDjNfrJLkvGTpT3hfFhuFvShh5ndq760bNXHahse3DSyf g==; IronPort-SDR: ufv6PS5ZEOND/Pxed3U5+H8y9sxgQ49fbjG7sjIlUdbcay63bW1dDXX5Cgns3Qw2/mDrKNmu33 SEMgZWRdjQh7JNnXDSpC5sm1hLFQauFo4unv6/CMfPk0oe4wIXfxSdhu8CNuJSw7+6MHUI+v5x o9WutzRo/ZTNWmaXtD6DiiDFoAlVX+Gzp+QAsjVnS7rBPjz/Vu0HZOOOMoDSHQhH0inVno/UKR fqB2FKHA976y7k9aSgCPBkqWAcaqAG2NRa5fu8anOiCJ9zd2ZFKl+qkaPOt0mLz7y9RBz2+Aha qUs= X-IronPort-AV: E=Sophos;i="5.76,405,1592841600"; d="scan'208";a="146809722" Received: from h199-255-45-15.hgst.com (HELO uls-op-cesaep02.wdc.com) ([199.255.45.15]) by ob1.hgst.iphmx.com with ESMTP; 08 Sep 2020 19:33:36 +0800 IronPort-SDR: XhKSrvfhBDUzDYrxZ9dnVhfN5Pub7IZTkyGkoqo6oY1WX5q2fERp4i9HpmmqqTg7Jjum0MoBCL wjwux4zJ+PAw== Received: from uls-op-cesaip02.wdc.com ([10.248.3.37]) by uls-op-cesaep02.wdc.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Sep 2020 04:20:01 -0700 IronPort-SDR: Mg+K39/e2IDS66UZITN5fdviNnsg/LDVMeuX/91tLW2j+eBmKBw443iD9CdEjWD4hAo/3NzM0M 3LvGmGsPQtVQ== WDCIronportException: Internal Received: from cnf002038.ad.shared (HELO localhost.hgst.com) ([10.84.70.94]) by uls-op-cesaip02.wdc.com with ESMTP; 08 Sep 2020 04:33:33 -0700 From: Damien Le Moal To: buildroot@buildroot.org Date: Tue, 8 Sep 2020 20:33:22 +0900 Message-Id: <20200908113324.1022230-5-damien.lemoal@wdc.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200908113324.1022230-1-damien.lemoal@wdc.com> References: <20200908113324.1022230-1-damien.lemoal@wdc.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH v2 4/6] package make: build RISC-V nommu builds as linux X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Carlos Eduardo , Alistair Francis , Drew Fustini , Thomas Petazzoni , Romain Naour , Christoph Hellwig , Thomas De Schampheleire Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: Christoph Hellwig Using *-uclinux-* seems like an only partially followed convention. And at least for RISC-V gcc doesn't know about uclinux tuples, so switch back to the normal Linux one for now. Signed-off-by: Christoph Hellwig [Damien] * Make the change conditional on BR2_riscv arch being "y". Signed-off-by: Damien Le Moal --- package/Makefile.in | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/package/Makefile.in b/package/Makefile.in index 51f5cbce4f..28c470aea6 100644 --- a/package/Makefile.in +++ b/package/Makefile.in @@ -39,9 +39,14 @@ endif # Compute GNU_TARGET_NAME GNU_TARGET_NAME = $(ARCH)-$(TARGET_VENDOR)-$(TARGET_OS)-$(LIBC)$(ABI) -# FLAT binary format needs uclinux +# FLAT binary format needs uclinux, except RISC-V which needs +# the regular linux name. ifeq ($(BR2_BINFMT_FLAT),y) +ifeq ($(BR2_riscv),y) +TARGET_OS = linux +else TARGET_OS = uclinux +endif else TARGET_OS = linux endif