diff options
author | Matthias Kaehlcke | 2017-04-12 21:43:52 +0200 |
---|---|---|
committer | Masahiro Yamada | 2017-04-12 22:43:37 +0200 |
commit | ebf003f0cfb3705e60d40dedc3ec949176c741af (patch) | |
tree | 38e55cfbac691e87fe377f11dac3b4d1fa285416 /Kbuild | |
parent | kbuild: use -Oz instead of -Os when using clang (diff) | |
download | kernel-qcow2-linux-ebf003f0cfb3705e60d40dedc3ec949176c741af.tar.gz kernel-qcow2-linux-ebf003f0cfb3705e60d40dedc3ec949176c741af.tar.xz kernel-qcow2-linux-ebf003f0cfb3705e60d40dedc3ec949176c741af.zip |
kbuild: Consolidate header generation from ASM offset information
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>
Diffstat (limited to 'Kbuild')
-rw-r--r-- | Kbuild | 25 |
1 files changed, 0 insertions, 25 deletions
@@ -7,31 +7,6 @@ # 4) Check for missing system calls # 5) Generate constants.py (may need bounds.h) -# 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 |