summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Roth <martinr@coreboot.org>2018-08-27 07:12:50 -0600
committerMartin Roth <martinroth@google.com>2019-08-03 17:20:42 +0000
commit0baad5ad6dd21b406694190ad4b6cf16d4f6e429 (patch)
tree060ecac8efb375fb86b7cdc58c23b3faf227f0b5
parenta7d55cf910ee23d0bfa8627da76d9b1449c08773 (diff)
downloadcoreboot-0baad5ad6dd21b406694190ad4b6cf16d4f6e429.tar.xz
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@coreboot.org> Reviewed-on: https://review.coreboot.org/c/coreboot/+/28365 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
-rw-r--r--util/nvidia/Makefile.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/util/nvidia/Makefile.inc b/util/nvidia/Makefile.inc
index 133778f592..1894fadc2b 100644
--- a/util/nvidia/Makefile.inc
+++ b/util/nvidia/Makefile.inc
@@ -43,6 +43,10 @@ CBOOTIMAGE_SRCS:=$(addprefix util/nvidia/cbootimage/src/,$(filter %.c,$(CBOOTIMA
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