From owner-svn-src-all@freebsd.org Thu Aug 31 17:32:10 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 65842E0290C; Thu, 31 Aug 2017 17:32:10 +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 34B131B60; Thu, 31 Aug 2017 17:32:10 +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 v7VHW9MC037194; Thu, 31 Aug 2017 17:32:09 GMT (envelope-from imp@FreeBSD.org) Received: (from imp@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v7VHW9wq037192; Thu, 31 Aug 2017 17:32:09 GMT (envelope-from imp@FreeBSD.org) Message-Id: <201708311732.v7VHW9wq037192@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: imp set sender to imp@FreeBSD.org using -f From: Warner Losh Date: Thu, 31 Aug 2017 17:32:09 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r323062 - head/sys/boot/efi/libefi X-SVN-Group: head X-SVN-Commit-Author: imp X-SVN-Commit-Paths: head/sys/boot/efi/libefi X-SVN-Commit-Revision: 323062 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.23 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: Thu, 31 Aug 2017 17:32:10 -0000 Author: imp Date: Thu Aug 31 17:32:09 2017 New Revision: 323062 URL: https://svnweb.freebsd.org/changeset/base/323062 Log: Make efichar.c routines available to libefi. Make efichar.c routines available to libefi as well as libefivar. Define LIBEFI when building so we can conditionally include stand.h vs the normal userland stuff. Modified: head/sys/boot/efi/libefi/Makefile head/sys/boot/efi/libefi/efichar.c Modified: head/sys/boot/efi/libefi/Makefile ============================================================================== --- head/sys/boot/efi/libefi/Makefile Thu Aug 31 17:22:35 2017 (r323061) +++ head/sys/boot/efi/libefi/Makefile Thu Aug 31 17:32:09 2017 (r323062) @@ -11,7 +11,7 @@ LIB= efi INTERNALLIB= WARNS?= 2 -SRCS= delay.c devpath.c efi_console.c efinet.c efipart.c env.c errno.c \ +SRCS= delay.c devpath.c efi_console.c efichar.c efinet.c efipart.c env.c errno.c \ handles.c wchar.c libefi.c efi_driver_utils.c efizfs.c devicename.c .if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "i386" @@ -55,5 +55,7 @@ CFLAGS+= ${FORMAT_EXTENSIONS} .if ${MACHINE_CPUARCH} != "arm" && ${MACHINE_CPUARCH} != "aarch64" CFLAGS+= -DTERM_EMU .endif + +CFLAGS+= -DLIBEFI .include Modified: head/sys/boot/efi/libefi/efichar.c ============================================================================== --- head/sys/boot/efi/libefi/efichar.c Thu Aug 31 17:22:35 2017 (r323061) +++ head/sys/boot/efi/libefi/efichar.c Thu Aug 31 17:32:09 2017 (r323062) @@ -29,10 +29,14 @@ __FBSDID("$FreeBSD$"); #include #include +#ifdef LIBEFI +#include +#else #include #include #include #include +#endif #include #include