diff options
author | Stewart Smith <stewart@linux.vnet.ibm.com> | 2015-11-09 15:43:23 +1100 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2015-11-09 15:43:23 +1100 |
commit | 33750c24c42ed0dfa55cd097aee8f35dc497131a (patch) | |
tree | 33326bdb04b43342e451899cc45716bb388dca71 | |
parent | 61d4601dfe04a7af46b654db12e12e4aa0785f33 (diff) | |
download | skiboot-33750c24c42ed0dfa55cd097aee8f35dc497131a.zip skiboot-33750c24c42ed0dfa55cd097aee8f35dc497131a.tar.gz skiboot-33750c24c42ed0dfa55cd097aee8f35dc497131a.tar.bz2 |
Skip -std=gnu11 for sparse
Some versions of sparse (all?) don't support -std=gnu11 CFLAG, so filter
it out when calling sparse. Doesn't affect non-sparse build
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
-rw-r--r-- | Makefile.main | 1 | ||||
-rw-r--r-- | Makefile.rules | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/Makefile.main b/Makefile.main index a5eb01e..ccfba6c 100644 --- a/Makefile.main +++ b/Makefile.main @@ -119,6 +119,7 @@ endif CHECK = sparse CHECKFLAGS := $(CF) +CHECK_CFLAGS_SKIP = -std=gnu11 .SECONDARY: diff --git a/Makefile.rules b/Makefile.rules index 3534f5d..ea52488 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -35,9 +35,9 @@ endef ifeq ($(C),1) ifeq ($(VERBOSE),1) - cmd_check = $(CHECK) $(CHECKFLAGS) $(call cook_cflags,$@) $< + cmd_check = $(CHECK) $(CHECKFLAGS) $(filter-out $(CHECK_CFLAGS_SKIP),$(call cook_cflags,$@)) $< else - cmd_check = @$(CHECK) $(CHECKFLAGS) $(call cook_cflags,$@) $< + cmd_check = @$(CHECK) $(CHECKFLAGS) $(filter-out $(CHECK_CFLAGS_SKIP),$(call cook_cflags,$@)) $< endif endif |