summaryrefslogtreecommitdiff
path: root/tools/Makefile
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2014-04-12 21:21:49 +0000
committerJohn Crispin <john@openwrt.org>2014-04-12 21:21:49 +0000
commit76133009c90284c6c0eab59207f01980a3222213 (patch)
tree3225ab99d9d57b5de3be77190f5a9ade3949ee0b /tools/Makefile
parent72803e0e27ec149784ff22ee528a7c11c6eefed1 (diff)
downloadmtk-20170518-76133009c90284c6c0eab59207f01980a3222213.zip
mtk-20170518-76133009c90284c6c0eab59207f01980a3222213.tar.gz
mtk-20170518-76133009c90284c6c0eab59207f01980a3222213.tar.bz2
sparse: add as a new package selectable from the config
This change does multiple things, all related to enable sparse usage as a static analysis tool selectable from the OpenWrt configuration: *add a KERNEL_SPARSE option in the config to add sparse to the kernel build (through the C=1 option usage) *add sparse as a new host tools. It will get selected automatically when the above option will be enabled Signed-off-by: Mathieu Olivari <mathieu@qca.qualcomm.com> SVN-Revision: 40490
Diffstat (limited to 'tools/Makefile')
-rw-r--r--tools/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/Makefile b/tools/Makefile
index 428cf0b..75d2b0d 100644
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -38,6 +38,7 @@ tools-$(CONFIG_TARGET_ar71xx) += lzma-old squashfs
tools-y += lzma squashfs4
tools-$(BUILD_B43_TOOLS) += b43-tools
tools-$(BUILD_PPL_CLOOG) += ppl cloog
+tools-$(CONFIG_USE_SPARSE) += sparse
# builddir dependencies
$(curdir)/bison/compile := $(curdir)/flex/install