aboutsummaryrefslogtreecommitdiffstats
path: root/tools/mkimage/patches/100-freebsd-compat.patch
blob: e014af57088c27141bc6ec1377759eedd9d1ab34 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- a/Makefile
+++ b/Makefile
@@ -584,7 +584,10 @@ UBOOTINCLUDE    := \
 		-I$(srctree)/arch/$(ARCH)/include \
 		-include $(srctree)/include/linux/kconfig.h
 
-NOSTDINC_FLAGS += -nostdinc -isystem $(shell $(CC) -print-file-name=include)
+ifneq ($(shell uname),FreeBSD)
+  NOSTDINC_FLAGS += -nostdinc -isystem $(shell $(CC) -print-file-name=include)
+endif
+
 CHECKFLAGS     += $(NOSTDINC_FLAGS)
 
 # FIX ME