forked from LLNL/lustre
-
Notifications
You must be signed in to change notification settings - Fork 0
/
autoMakefile.am
71 lines (59 loc) · 2.08 KB
/
autoMakefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
SUBDIRS := @LDISKFS_SUBDIR@ @SPL_SUBDIR@ @ZFS_SUBDIR@ . @LIBSYSIO_SUBDIR@ @SNMP_SUBDIR@ @LUSTREIOKIT_SUBDIR@ @LIBCFS_SUBDIR@ lnet lustre
DIST_SUBDIRS := @SNMP_DIST_SUBDIR@ libsysio ldiskfs lustre-iokit @LIBCFS_SUBDIR@ lnet lustre
SOURCES_SUBDIRS := @LDISKFS_SUBDIR@ @LIBCFS_SUBDIR@ lnet lustre
RPM_SUBDIRS := @LDISKFS_SUBDIR@ @LUSTREIOKIT_SUBDIR@
if LDISKFS_ENABLED
if !LDISKFS_IN_KERNEL
SYMVERFILE_DEPENDECY := @SYMVERFILE@
endif
endif
@TESTS_TRUE@BUILD_TESTS = true
@TESTS_FALSE@BUILD_TESTS = false
include build/autoMakefile.am.toplevel
EXTRA_DIST += config.h.in
if USES_DPKG
EXTRA_DIST += debian/*
endif
if LDISKFS_ENABLED
if !LDISKFS_IN_KERNEL
EXTRA_DIST += @SYMVERFILE@
@SYMVERFILE@:
touch @SYMVERFILE@
-grep -v ldiskfs @SYMVERFILE@ > @[email protected]
cat @[email protected] > @SYMVERFILE@
@if [ -f @LDISKFS_DIR@/@SYMVERFILE@ ]; then \
cat @LDISKFS_DIR@/@SYMVERFILE@ >>@SYMVERFILE@; \
elif [ -f @LDISKFS_DIR@/ldiskfs/@SYMVERFILE@ ]; then \
cat @LDISKFS_DIR@/ldiskfs/@SYMVERFILE@ >>@SYMVERFILE@; \
else \
echo -e "\n" \
"*** Missing ldiskfs symbols. Ensure you have built ldiskfs:\n" \
"*** - @LDISKFS_OBJ@/@SYMVERFILE@, or\n" \
"*** - @LDISKFS_OBJ@/ldiskfs/@SYMVERFILE@\n"; \
exit 1; \
fi
endif
endif
CSTK=/tmp/checkstack
CSTKO=/tmp/checkstack.orig
checkstack:
[ -f ${CSTK} -a ! -s ${CSTKO} ] && mv -f ${CSTK} ${CSTKO} || true
{ for MOD in $$(find . -name "*.ko"); do \
objdump -d $$MOD | perl build/checkstack.pl; \
done } | grep -v " bug " | sort -nr | uniq > ${CSTK}
[ -f ${CSTKO} ] && ! diff -u ${CSTKO} ${CSTK} || head -30 ${CSTK}
checkstack-update:
[ -f ${CSTK} ] && mv -f ${CSTK} ${CSTKO}
checkstack-clean:
rm -f ${CSTK} ${CSTKO}
module-dist-hook:
if [ -d CVS -o -d .git ]; then \
perl lustre/scripts/make_META.pl > $(distdir)/META; \
cp $(distdir)/META $(distdir)/ldiskfs/META; \
elif [ -f META ]; then \
cp META $(distdir)/META; \
cp $(distdir)/META $(distdir)/ldiskfs/META; \
else \
echo -e "I have no idea how to create a META file in $(distdir).\nPlease file a bug at http://bugzilla.lustre.org/"; \
exit 1; \
fi