build: fix module symbol collection if build_dir is a symlink
authorJonas Gorski <jonas.gorski@gmail.com>
Fri, 3 Nov 2017 09:59:00 +0000 (10:59 +0100)
committerJonas Gorski <jonas.gorski@gmail.com>
Tue, 7 Nov 2017 21:58:46 +0000 (22:58 +0100)
commite26ffb31dfa30d498b963a86d231835e3af7d3df
treefcedd12890c9b4e7c02b7bfc4a2d60831620a562
parent1928fc93ced752bd1e304ab3837fb41e7a80b9d9
build: fix module symbol collection if build_dir is a symlink

If PKG_BUILD_DIR contains symlinks, the generated Module.symvers will
contain the resolved paths, not the virtual path with the symlink name.

This breaks the filter for the module's own symbols, so to fix this
ensure we also grep for the resolved path.

Reported-by: Roman Yeryomin <roman@advem.lv>
Tested-by: Roman Yeryomin <roman@advem.lv>
Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
include/kernel.mk