3 @@ -634,7 +634,10 @@ UBOOTINCLUDE := \
4 -I$(srctree)/arch/$(ARCH)/include \
5 -include $(srctree)/include/linux/kconfig.h
7 -NOSTDINC_FLAGS += -nostdinc -isystem $(shell $(CC) -print-file-name=include)
8 +ifneq ($(shell uname),FreeBSD)
9 + NOSTDINC_FLAGS += -nostdinc -isystem $(shell $(CC) -print-file-name=include)
12 CHECKFLAGS += $(NOSTDINC_FLAGS)