kbuild: better abstract vmlinux sequential prerequisites
authorNicolas Pitre <nicolas.pitre@linaro.org>
Fri, 22 Apr 2016 19:25:00 +0000 (15:25 -0400)
committerMichal Marek <mmarek@suse.com>
Tue, 26 Apr 2016 08:39:19 +0000 (10:39 +0200)
commit2441e78b19192cd9ea1ce93027a5732a2117f026
tree64d942caf22837e283f6be06e63e71aabe7ea4bc
parentba79d401f1aee52186ff09607e9405cfb805307d
kbuild: better abstract vmlinux sequential prerequisites

When CONFIG_TRIM_UNUSED_KSYMS=y and CONFIG_BUILD_DOCSRC=y it is possible
to get the following error:

ERROR: "cn_del_callback" [Documentation/connector/cn_test.ko] undefined!
ERROR: "cn_add_callback" [Documentation/connector/cn_test.ko] undefined!
ERROR: "cn_netlink_send" [Documentation/connector/cn_test.ko] undefined!
../scripts/Makefile.modpost:91: recipe for target '__modpost' failed

It is not sufficient to do "vmlinux-dirs += Documentation" as this also
depends on the headers_check target, and all of this needs to be done
before adjust_autoksyms.sh is executed.

Let's sort this out by gathering those sequential prerequisites in a make
target of their own, separate from the vmlinux target. And by doing so,
the special autoksyms_recursive target is no longer needed.

Signed-off-by: Nicolas Pitre <nico@linaro.org>
Acked-by: Randy Dunlap <rdunlap@infradead.org>
Tested-by: Randy Dunlap <rdunlap@infradead.org>
Makefile
This page took 0.032406 seconds and 5 git commands to generate.