kbuild: fix scripts/adjust_autoksyms.sh* for the no modules case
authorNicolas Pitre <nicolas.pitre@linaro.org>
Thu, 8 Dec 2016 19:17:03 +0000 (14:17 -0500)
committerMichal Marek <mmarek@suse.com>
Sun, 11 Dec 2016 21:30:10 +0000 (22:30 +0100)
commitd073472ac26f44f269d9234acd6871bbc6289532
treebf873f3b05793ff3cea0bc92ec19093192c1c374
parent0f66784ae2eb6ac5bc7540b891786ff062bbf630
kbuild: fix scripts/adjust_autoksyms.sh* for the no modules case

When CONFIG_TRIM_UNUSED_KSYMS=y and no modules are actually selected,
the adjust_autoksyms.sh script fails with:

sed: can't read .tmp_versions/*.mod: No such file or directory

Let's cope with that case gracefully.

Signed-off-by: Nicolas Pitre <nico@linaro.org>
Signed-off-by: Michal Marek <mmarek@suse.com>
scripts/adjust_autoksyms.sh