Whamcloud - gitweb
Need to use the flavtgt instead of flavor. flavtgt == "" when flavor == up.
[fs/lustre-release.git] / autoMakefile.am
1 include build/autoMakefile.am.toplevel
2
3 CSTK=/tmp/checkstack
4 CSTKO=/tmp/checkstack.orig
5
6 checkstack:
7         [ -f ${CSTK} -a ! -s ${CSTKO} ] && mv -f ${CSTK} ${CSTKO} || true
8         { for i in lustre/* lnet/* ; do                                      \
9                 MOD=$$i/`basename $$i`;                                      \
10                 [ -f $$MOD.ko ] && MOD=$$MOD.ko || MOD=$$MOD.o;              \
11                 [ -f $$MOD ] && objdump -d $$MOD | perl build/checkstack.pl; \
12           done;                                                              \
13           for i in lnet/klnds/*; do                                          \
14                 MOD=$$i/k`basename $$i`;                                     \
15                 [ -f $$MOD.ko ] && MOD=$$MOD.ko || MOD=$$MOD.o;              \
16                 [ -f $$MOD ] && objdump -d $$MOD | perl build/checkstack.pl; \
17           done } | sort -nr > ${CSTK}
18         [ -f ${CSTKO} ] && ! diff -u ${CSTKO} ${CSTK} || head -30 ${CSTK}
19
20 checkstack-update:
21         [ -f ${CSTK} ] && mv -f ${CSTK} ${CSTKO}
22
23 checkstack-clean:
24         rm -f ${CSTK} ${CSTKO}