]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blob - debian/rules.d/4-checks.mk
UBUNTU: [Packaging] retpoline files must be sorted
[mirror_ubuntu-artful-kernel.git] / debian / rules.d / 4-checks.mk
1 # Check ABI for package against last release (if not same abinum)
2 abi-check-%: $(stampdir)/stamp-build-%
3 @echo Debug: $@
4 install -d $(abidir)
5 sed -e 's/^\(.\+\)[[:space:]]\+\(.\+\)[[:space:]]\(.\+\)$$/\3 \2 \1/' \
6 $(builddir)/build-$*/Module.symvers | sort > $(abidir)/$*
7 @perl -f $(DROOT)/scripts/abi-check "$*" "$(prev_abinum)" "$(abinum)" \
8 "$(prev_abidir)" "$(abidir)" "$(skipabi)"
9
10 # Check the module list against the last release (always)
11 module-check-%: $(stampdir)/stamp-build-%
12 @echo Debug: $@
13 install -d $(abidir)
14 find $(builddir)/build-$*/ -name \*.ko | \
15 sed -e 's/.*\/\([^\/]*\)\.ko/\1/' | sort > $(abidir)/$*.modules
16 @perl -f $(DROOT)/scripts/module-check "$*" \
17 "$(prev_abidir)" "$(abidir)" $(skipmodule)
18
19 # Check the reptoline jmp/call functions against the last release.
20 retpoline-check-%: $(stampdir)/stamp-build-%
21 @echo Debug: $@
22 install -d $(abidir)
23 if grep -q CONFIG_RETPOLINE=y $(builddir)/build-$*/.config; then \
24 $(SHELL) $(DROOT)/scripts/retpoline-extract $(builddir)/build-$* | \
25 sort >$(abidir)/$*.retpoline; \
26 else \
27 echo "# RETPOLINE NOT ENABLED" >$(abidir)/$*.retpoline; \
28 fi
29 $(SHELL) $(DROOT)/scripts/retpoline-check "$*" \
30 "$(prev_abidir)" "$(abidir)" "$(skipretpoline)"
31
32 checks-%: module-check-% abi-check-% retpoline-check-%
33 @echo Debug: $@
34
35 # Check the config against the known options list.
36 config-prepare-check-%: $(stampdir)/stamp-prepare-tree-%
37 @echo Debug: $@
38 @perl -f $(DROOT)/scripts/config-check \
39 $(builddir)/build-$*/.config "$(arch)" "$*" "$(commonconfdir)" "$(skipconfig)"
40