[coreboot-gerrit] Change in coreboot[master]: util/nvidia: Change ENODATA to ENOATTR for FreeBSD

Martin Roth (Code Review) gerrit at coreboot.org
Mon Aug 27 15:13:41 CEST 2018


Martin Roth has uploaded this change for review. ( https://review.coreboot.org/28365


Change subject: util/nvidia: Change ENODATA to ENOATTR for FreeBSD
......................................................................

util/nvidia: Change ENODATA to ENOATTR for FreeBSD

FreeBSD doesn't have ENODATA defined, so the cbootimage utility wouldn't
build.  It looks like the BSDs use ENOATTR in the same fashion, so
update the error to use that.

Change-Id: Ic70710d5726476755585fd1a3ae3f256a430e8df
Signed-off-by: Martin Roth <martinr at coreboot.org>
---
M util/nvidia/Makefile.inc
1 file changed, 4 insertions(+), 0 deletions(-)



  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/65/28365/1

diff --git a/util/nvidia/Makefile.inc b/util/nvidia/Makefile.inc
index 133778f..1894fad 100644
--- a/util/nvidia/Makefile.inc
+++ b/util/nvidia/Makefile.inc
@@ -43,6 +43,10 @@
 CBOOTIMAGE_OBJS:=$(addprefix $(objutil)/nvidia/cbootimage/,$(patsubst %.c,%.o,$(filter %.c,$(CBOOTIMAGE_RAW_SRCS))))
 CBOOTIMAGE_FLAGS:=-Wall -std=c99 -O2
 
+ifeq ($(OS_ARCH), FreeBSD)
+CBOOTIMAGE_FLAGS:=-DENODATA=ENOATTR
+endif
+
 additional-dirs += $(sort $(dir $(CBOOTIMAGE_OBJS)))
 
 $(objutil)/nvidia/cbootimage/%.o: util/nvidia/cbootimage/src/%.c

-- 
To view, visit https://review.coreboot.org/28365
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic70710d5726476755585fd1a3ae3f256a430e8df
Gerrit-Change-Number: 28365
Gerrit-PatchSet: 1
Gerrit-Owner: Martin Roth <martinroth at google.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20180827/39a19ae7/attachment-0001.html>


More information about the coreboot-gerrit mailing list