aboutsummaryrefslogtreecommitdiffstats
path: root/tools/mkimage/patches/100-freebsd-compat.patch
blob: 1567285714d3bff0c5b68b6de88e656342d59a2d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- a/Makefile
+++ b/Makefile
@@ -634,7 +634,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