]>
git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blob - debian/rules.d/4-checks.mk
1 # Check ABI for package against last release (if not same abinum)
2 abi-check-
%: $(stampdir
)/stamp-build-
%
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)"
10 # Check the module list against the last release (always)
11 module-check-
%: $(stampdir
)/stamp-build-
%
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
)
19 # Check the reptoline jmp/call functions against the last release.
20 retpoline-check-
%: $(stampdir
)/stamp-build-
%
23 if grep
-q CONFIG_RETPOLINE
=y
$(builddir
)/build-
$*/.config
; then \
24 $(SHELL
) $(DROOT
)/scripts
/retpoline-extract
$(builddir
)/build-
$* | \
25 sort >$(abidir
)/$*.retpoline
; \
27 echo
"# RETPOLINE NOT ENABLED" >$(abidir
)/$*.retpoline
; \
29 $(SHELL
) $(DROOT
)/scripts
/retpoline-check
"$*" \
30 "$(prev_abidir)" "$(abidir)" "$(skipretpoline)"
32 checks-
%: module-check-
% abi-check-
% retpoline-check-
%
35 # Check the config against the known options list.
36 config-prepare-check-
%: $(stampdir
)/stamp-prepare-tree-
%
38 @perl
-f
$(DROOT
)/scripts
/config-check \
39 $(builddir
)/build-
$*/.config
"$(arch)" "$*" "$(commonconfdir)" "$(skipconfig)"