From owner-svn-src-all@freebsd.org Tue Nov 21 19:23:21 2017 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B588EDF7599; Tue, 21 Nov 2017 19:23:21 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7F1797CAE3; Tue, 21 Nov 2017 19:23:21 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vALJNK1J035181; Tue, 21 Nov 2017 19:23:20 GMT (envelope-from imp@FreeBSD.org) Received: (from imp@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vALJNKJD035180; Tue, 21 Nov 2017 19:23:20 GMT (envelope-from imp@FreeBSD.org) Message-Id: <201711211923.vALJNKJD035180@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: imp set sender to imp@FreeBSD.org using -f From: Warner Losh Date: Tue, 21 Nov 2017 19:23:20 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326072 - head/stand X-SVN-Group: head X-SVN-Commit-Author: imp X-SVN-Commit-Paths: head/stand X-SVN-Commit-Revision: 326072 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Nov 2017 19:23:22 -0000 Author: imp Date: Tue Nov 21 19:23:20 2017 New Revision: 326072 URL: https://svnweb.freebsd.org/changeset/base/326072 Log: Unbreak riscv build in universe. riscv doesn't have -msoft-float. For the moment, just don't add anything. There's no /boot/loader or other bootstrap contained in the tree for riscv*. However, with real hardware coming next year, there are plans for one, so keep building at least a minimal libsa and ficl to prevent bitrot. Sponsored by: Netflix Modified: head/stand/Makefile.inc Modified: head/stand/Makefile.inc ============================================================================== --- head/stand/Makefile.inc Tue Nov 21 19:23:12 2017 (r326071) +++ head/stand/Makefile.inc Tue Nov 21 19:23:20 2017 (r326072) @@ -10,10 +10,12 @@ CFLAGS+=-I${SASRC} SSP_CFLAGS= # Add in the no float / no SIMD stuff and announce we're freestanding +# aarch64 and riscv don't have -msoft-float, but all others do. riscv +# currently has no /boot/loader, but may soon. CFLAGS+= -ffreestanding ${CFLAGS_NO_SIMD} .if ${MACHINE_CPUARCH} == "aarch64" CFLAGS+= -mgeneral-regs-only -.else +.elif ${MACHINE_CPUARCH} != "riscv" CFLAGS+= -msoft-float .endif