d48c05d6260d84b17ac5a20f61bb82cc28788402
[linux-flexiantxendom0-natty.git] / debian / rules.d / 4-checks.mk
1 # Check ABI for package against last release (if not same abinum)
2 abi-%: $(abidir)/%
3         @# Empty for make to be happy
4 $(abidir)/%: $(stampdir)/stamp-build-%
5         install -d $(abidir)
6         sed -e 's/^\(.\+\)[[:space:]]\+\(.\+\)[[:space:]]\(.\+\)$$/\3 \2 \1/'   \
7                 $(builddir)/build-$*/Module.symvers | sort > $@
8
9 abi-check-%: $(abidir)/%
10         @perl -f $(DROOT)/scripts/abi-check "$*" "$(prev_abinum)" "$(abinum)" \
11                 "$(prev_abidir)" "$(abidir)" "$(skipabi)"
12
13 # Check the module list against the last release (always)
14 module-%: $(abidir)/%.modules
15         @# Empty for make to be happy
16 $(abidir)/%.modules: $(stampdir)/stamp-build-%
17         install -d $(abidir)
18         find $(builddir)/build-$*/ -name \*.ko | \
19                 sed -e 's/.*\/\([^\/]*\)\.ko/\1/' | sort > $@
20
21 module-check-%: $(abidir)/%.modules
22         @perl -f $(DROOT)/scripts/module-check "$*" \
23                 "$(prev_abidir)" "$(abidir)" $(skipmodule)
24
25 checks-%: abi-check-% module-check-%
26         @# Will be calling more stuff later
27
28 # Check the config against the known options list.
29 config-prepare-check-%: $(stampdir)/stamp-prepare-tree-%
30         @perl -f $(DROOT)/scripts/config-check \
31                 $(builddir)/build-$*/.config "$(arch)" "$*" "$(sharedconfdir)" "$(skipconfig)"
32
33 prepare-checks-%: config-prepare-check-%
34         @# Will be calling more stuff later