Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoao Moreira <jmoreira@suse.de>2018-10-29 23:33:58 +0100
committerMiroslav Benes <mbenes@suse.cz>2018-11-02 15:44:26 +0100
commit60eeb41aed43d88a54cfc9632beba4e1b29ce0d4 (patch)
treefcc27383535cb56755b8a067ba69bddcdefd2289
parent83d4a1730757d96be28931f390cc6d76bae1ff1a (diff)
Add version information to KLP_SYMBOLS file
Signed-off-by: Joao Moreira <jmoreira@suse.de> Reviewed-by: Petr Mladek <pmladek@suse.com> Signed-off-by: Miroslav Benes <mbenes@suse.cz>
-rwxr-xr-xrpm/klp-symbols4
1 files changed, 3 insertions, 1 deletions
diff --git a/rpm/klp-symbols b/rpm/klp-symbols
index c2abfe2335..012fca43c3 100755
--- a/rpm/klp-symbols
+++ b/rpm/klp-symbols
@@ -17,6 +17,7 @@ if test "$1" == "-h" -o "$1" == "--help" -o $# -ne 2 ; then
exit 1
fi
+KLP_DATA_VERSION="0.1"
KERNEL_BUILD_DIR="$1"
KLP_SYMBOLS="$2"
@@ -38,7 +39,8 @@ get_symbols()
nm -f posix "$1" | grep -v '\( [UN] \)\|\(\.L\|__crc_\)' | cut -d\ -f1,2
}
-echo "*vmlinux" > "$KLP_SYMBOLS"
+echo "klp-convert-symbol-data.$KLP_DATA_VERSION" > "$KLP_SYMBOLS"
+echo "*vmlinux" >> "$KLP_SYMBOLS"
get_symbols "$VMLINUX" >> "$KLP_SYMBOLS"
find "$MODVER_DIR" -iname '*.mod' | while read KMOD ; do