diff options
author | Matthias Kaehlcke <mka@chromium.org> | 2017-04-12 12:43:52 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-11-27 16:07:57 +0100 |
commit | c7288b457145b8e9a3ffbee1c0fb78afeb9d3693 (patch) | |
tree | 34330904819f67f8aee43fb56b4d5d7a5971da9d /Kbuild | |
parent | 3ebd7941d0bdc85ebfc6eaa58fbf53e0f26e00e3 (diff) | |
download | linux-stable-c7288b457145b8e9a3ffbee1c0fb78afeb9d3693.tar.gz linux-stable-c7288b457145b8e9a3ffbee1c0fb78afeb9d3693.tar.bz2 linux-stable-c7288b457145b8e9a3ffbee1c0fb78afeb9d3693.zip |
kbuild: Consolidate header generation from ASM offset information
commit ebf003f0cfb3705e60d40dedc3ec949176c741af upstream.
Largely redundant code is used in different places to generate C headers
from offset information extracted from assembly language output.
Consolidate the code in Makefile.lib and use this instead.
Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'Kbuild')
-rw-r--r-- | Kbuild | 25 |
1 files changed, 0 insertions, 25 deletions
@@ -6,31 +6,6 @@ # 3) Generate asm-offsets.h (may need bounds.h and timeconst.h) # 4) Check for missing system calls -# Default sed regexp - multiline due to syntax constraints -define sed-y - "/^->/{s:->#\(.*\):/* \1 */:; \ - s:^->\([^ ]*\) [\$$#]*\([-0-9]*\) \(.*\):#define \1 \2 /* \3 */:; \ - s:^->\([^ ]*\) [\$$#]*\([^ ]*\) \(.*\):#define \1 \2 /* \3 */:; \ - s:->::; p;}" -endef - -# Use filechk to avoid rebuilds when a header changes, but the resulting file -# does not -define filechk_offsets - (set -e; \ - echo "#ifndef $2"; \ - echo "#define $2"; \ - echo "/*"; \ - echo " * DO NOT MODIFY."; \ - echo " *"; \ - echo " * This file was generated by Kbuild"; \ - echo " */"; \ - echo ""; \ - sed -ne $(sed-y); \ - echo ""; \ - echo "#endif" ) -endef - ##### # 1) Generate bounds.h |