aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorVegard Nossum <vegard.nossum@gmail.com>2008-12-16 06:33:43 -0500
committerSam Ravnborg <sam@ravnborg.org>2008-12-18 14:18:04 -0500
commit179efcb47d5a5dd34a45be3f0eca4bffa717c6b4 (patch)
tree2ec42d6576ec8f73e8911bf44eac4570c6a7afb5 /Makefile
parenta6ba0cb35da64d658b7a01ea4597416f8522d5e1 (diff)
kbuild: add headerdep used to detect inclusion cycles in header files
Signed-off-by: Vegard Nossum <vegard.nossum@gmail.com> Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 95160e5c70e8..e1c5ae8a8162 100644
--- a/Makefile
+++ b/Makefile
@@ -1026,6 +1026,10 @@ include/linux/version.h: $(srctree)/Makefile FORCE
1026include/linux/utsrelease.h: include/config/kernel.release FORCE 1026include/linux/utsrelease.h: include/config/kernel.release FORCE
1027 $(call filechk,utsrelease.h) 1027 $(call filechk,utsrelease.h)
1028 1028
1029PHONY += headerdep
1030headerdep:
1031 $(Q)find include/ -name '*.h' | xargs --max-args 1 scripts/headerdep.pl
1032
1029# --------------------------------------------------------------------------- 1033# ---------------------------------------------------------------------------
1030 1034
1031PHONY += depend dep 1035PHONY += depend dep
@@ -1274,7 +1278,8 @@ help:
1274 @echo ' versioncheck - Sanity check on version.h usage' 1278 @echo ' versioncheck - Sanity check on version.h usage'
1275 @echo ' includecheck - Check for duplicate included header files' 1279 @echo ' includecheck - Check for duplicate included header files'
1276 @echo ' export_report - List the usages of all exported symbols' 1280 @echo ' export_report - List the usages of all exported symbols'
1277 @echo ' headers_check - Sanity check on exported headers'; \ 1281 @echo ' headers_check - Sanity check on exported headers'
1282 @echo ' headerdep - Detect inclusion cycles in headers'; \
1278 echo '' 1283 echo ''
1279 @echo 'Kernel packaging:' 1284 @echo 'Kernel packaging:'
1280 @$(MAKE) $(build)=$(package-dir) help 1285 @$(MAKE) $(build)=$(package-dir) help