summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTzafrir Cohen <tzafrir.cohen@xorcom.com>2009-06-28 13:41:41 +0000
committerTzafrir Cohen <tzafrir.cohen@xorcom.com>2009-06-28 13:41:41 +0000
commitd654f837038811fc9e11d1e30a98983c8cff74e5 (patch)
tree706548dfdf6a6af600697484918b11f16e59dd4f /Makefile
parente20d9c3503b1e427046047a1801d7e1985d9e99b (diff)
Fix 'make stackcheck' using the script of the kernel source.
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6780 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 962883b..6986e38 100644
--- a/Makefile
+++ b/Makefile
@@ -38,6 +38,8 @@ else
HAS_KSRC:=no
endif
+CHECKSTACK=$(KSRC)/scripts/checkstack.pl
+
# Set HOTPLUG_FIRMWARE=no to override automatic building with hotplug support
# if it is enabled in the kernel.
@@ -90,8 +92,8 @@ include/dahdi/version.h: FORCE
prereq: include/dahdi/version.h firmware-loaders
-stackcheck: checkstack modules
- ./checkstack kernel/*.ko kernel/*/*.ko
+stackcheck: $(CHECKSTACK) modules
+ objdump -d drivers/dahdi/*.ko drivers/dahdi/*/*.ko | $(CHECKSTACK)
install: all install-modules install-devices install-include install-firmware install-xpp-firm
@echo "###################################################"