diff options
author | lijuang <lijuang@codeaurora.org> | 2018-03-28 13:52:57 +0800 |
---|---|---|
committer | lijuang <lijuang@codeaurora.org> | 2018-04-10 13:34:43 +0800 |
commit | 65c51d5d4d6cd9ff6d35dd4e9e9ae85b8e3bad2d (patch) | |
tree | e60db1041467fbcde1004de0a2d1b31839220d7a /QcomModulePkg | |
parent | 9dbccad7ae9ee590b84da6454bb09319382732f9 (diff) |
QcomModulePkg: Enable the sdllvm analyze under a flag
Enable the --compile-and-analyze only when SDLLVM toolchain is used.
Change-Id: I18809c63b0d585fc7bb0cfea788f82290d2eda33
Diffstat (limited to 'QcomModulePkg')
-rw-r--r-- | QcomModulePkg/Application/LinuxLoader/LinuxLoader.inf | 4 | ||||
-rw-r--r-- | QcomModulePkg/Library/BootLib/BootLib.inf | 2 | ||||
-rw-r--r-- | QcomModulePkg/Library/FastbootLib/FastbootLib.inf | 2 | ||||
-rw-r--r-- | QcomModulePkg/Library/StackCanary/StackCanary.inf | 4 | ||||
-rw-r--r-- | QcomModulePkg/Library/avb/AvbLib.inf | 4 | ||||
-rw-r--r-- | QcomModulePkg/Library/zlib/zlib.inf | 3 |
6 files changed, 10 insertions, 9 deletions
diff --git a/QcomModulePkg/Application/LinuxLoader/LinuxLoader.inf b/QcomModulePkg/Application/LinuxLoader/LinuxLoader.inf index f3d261c5f8..3de623017e 100644 --- a/QcomModulePkg/Application/LinuxLoader/LinuxLoader.inf +++ b/QcomModulePkg/Application/LinuxLoader/LinuxLoader.inf @@ -1,5 +1,5 @@ #/* @file -# Copyright (c) 2017, The Linux Foundation. All rights reserved. +# Copyright (c) 2017-2018, The Linux Foundation. All rights reserved. # Portions Copyright (c) 2011-2013, ARM Limited. All rights reserved. # # This program and the accompanying materials @@ -24,7 +24,7 @@ LinuxLoader.c [BuildOptions.AARCH64] - GCC:*_*_*_CC_FLAGS = --compile-and-analyze $(BUILD_REPORT_DIR) + GCC:*_*_*_CC_FLAGS = $(SDLLVM_COMPILE_ANALYZE) $(SDLLVM_ANALYZE_REPORT) GCC:*_*_*_CC_FLAGS = $(UBSAN_UEFI_GCC_FLAG_UNDEFINED) GCC:*_*_*_CC_FLAGS = $(UBSAN_UEFI_GCC_FLAG_ALIGNMENT) diff --git a/QcomModulePkg/Library/BootLib/BootLib.inf b/QcomModulePkg/Library/BootLib/BootLib.inf index 4910db2b11..8e6202e292 100644 --- a/QcomModulePkg/Library/BootLib/BootLib.inf +++ b/QcomModulePkg/Library/BootLib/BootLib.inf @@ -37,7 +37,7 @@ LIBRARY_CLASS = BootLib [BuildOptions.AARCH64] - GCC:*_*_*_CC_FLAGS = -O2 --compile-and-analyze $(BUILD_REPORT_DIR) + GCC:*_*_*_CC_FLAGS = -O2 $(SDLLVM_COMPILE_ANALYZE) $(SDLLVM_ANALYZE_REPORT) GCC:*_*_*_CC_FLAGS = $(UBSAN_UEFI_GCC_FLAG_UNDEFINED) GCC:*_*_*_CC_FLAGS = $(UBSAN_UEFI_GCC_FLAG_ALIGNMENT) diff --git a/QcomModulePkg/Library/FastbootLib/FastbootLib.inf b/QcomModulePkg/Library/FastbootLib/FastbootLib.inf index 1dda0042aa..b4968b4553 100644 --- a/QcomModulePkg/Library/FastbootLib/FastbootLib.inf +++ b/QcomModulePkg/Library/FastbootLib/FastbootLib.inf @@ -42,7 +42,7 @@ # [BuildOptions.AARCH64] - GCC:*_*_*_CC_FLAGS = --compile-and-analyze $(BUILD_REPORT_DIR) + GCC:*_*_*_CC_FLAGS = $(SDLLVM_COMPILE_ANALYZE) $(SDLLVM_ANALYZE_REPORT) [Sources] FastbootMain.c diff --git a/QcomModulePkg/Library/StackCanary/StackCanary.inf b/QcomModulePkg/Library/StackCanary/StackCanary.inf index 1013996580..6de63d28f5 100644 --- a/QcomModulePkg/Library/StackCanary/StackCanary.inf +++ b/QcomModulePkg/Library/StackCanary/StackCanary.inf @@ -40,8 +40,8 @@ StackCanary.c [BuildOptions.AARCH64] - GCC:*_*_*_CC_FLAGS = -fno-stack-protector --compile-and-analyze $(BUILD_REPORT_DIR) - + GCC:*_*_*_CC_FLAGS = -fno-stack-protector + GCC:*_*_*_CC_FLAGS = $(SDLLVM_COMPILE_ANALYZE) $(SDLLVM_ANALYZE_REPORT) [BuildOptions.ARM] GCC:*_*_*_CC_FLAGS = -fno-stack-protector diff --git a/QcomModulePkg/Library/avb/AvbLib.inf b/QcomModulePkg/Library/avb/AvbLib.inf index d0a69ac8a1..9d6777af06 100644 --- a/QcomModulePkg/Library/avb/AvbLib.inf +++ b/QcomModulePkg/Library/avb/AvbLib.inf @@ -1,5 +1,5 @@ #/* -# * Copyright (c) 2017, The Linux Foundation. All rights reserved. +# * Copyright (c) 2017-2018, The Linux Foundation. All rights reserved. # * # * Redistribution and use in source and binary forms, with or without # * modification, are permitted provided that the following conditions are @@ -40,7 +40,7 @@ GCC:*_*_*_CC_FLAGS = -DAVB_COMPILATION -DAVB_ENABLE_DEBUG [BuildOptions.AARCH64] - GCC:*_*_*_CC_FLAGS = --compile-and-analyze $(BUILD_REPORT_DIR) + GCC:*_*_*_CC_FLAGS = $(SDLLVM_COMPILE_ANALYZE) $(SDLLVM_ANALYZE_REPORT) [Sources] libavb/avb_chain_partition_descriptor.c diff --git a/QcomModulePkg/Library/zlib/zlib.inf b/QcomModulePkg/Library/zlib/zlib.inf index 4ca0117508..b25af5821f 100644 --- a/QcomModulePkg/Library/zlib/zlib.inf +++ b/QcomModulePkg/Library/zlib/zlib.inf @@ -8,7 +8,8 @@ [BuildOptions.AARCH64] - GCC:*_*_*_CC_FLAGS = -O2 -DZ_SOLO --compile-and-analyze $(BUILD_REPORT_DIR) + GCC:*_*_*_CC_FLAGS = -O2 -DZ_SOLO + GCC:*_*_*_CC_FLAGS = $(SDLLVM_COMPILE_ANALYZE) $(SDLLVM_ANALYZE_REPORT) [Sources] zutil.c |