[coreboot] Patch set updated for coreboot: c12c8f6 nvramtool: Set build flags for FreeBSD

Zheng Bao (zheng.bao@amd.com) gerrit at coreboot.org
Tue Sep 11 09:51:52 CEST 2012


Zheng Bao (zheng.bao at amd.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/1500

-gerrit

commit c12c8f608dcbc9285b50d3fe8d81bd34737dc33c
Author: Zheng Bao <fishbaozi at gmail.com>
Date:   Tue Sep 11 12:10:09 2012 +0800

    nvramtool: Set build flags for FreeBSD
    
    Set HOSTCFLAGS as nil to make the nvramtool include the regex.h
    in system. Otherwise it will include the regex.h in kconfig, which
    will cause building error in FreeBSD.
    
    Change-Id: I95292e23e1716da1260842be9597119a4e26c8ed
    Signed-off-by: Zheng Bao <zheng.bao at amd.com>
    Signed-off-by: Zheng Bao <fishbaozi at gmail.com>
---
 util/nvramtool/Makefile.inc | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/util/nvramtool/Makefile.inc b/util/nvramtool/Makefile.inc
index 0acda04..080734c 100644
--- a/util/nvramtool/Makefile.inc
+++ b/util/nvramtool/Makefile.inc
@@ -27,6 +27,10 @@ endif
 ifeq ($(OS_ARCH), NetBSD)
 NVRAMTOOLLDLFLAGS = -l$(shell uname -p)
 endif
+ifeq ($(OS_ARCH), FreeBSD)
+NVRAMTOOLFLAGS += -O2 -g -Wall -W
+HOSTCFLAGS =
+endif
 ifeq ($(shell uname -o), Cygwin)
 NVRAMTOOLFLAGS += -O2 -g -Wall -W -D__GLIBC__
 NVRAMTOOLLDFLAGS = -lioperm




More information about the coreboot mailing list