diff options
author | Jeroen Hofstee <jeroen@myspectrum.nl> | 2014-07-30 21:54:54 +0200 |
---|---|---|
committer | Albert ARIBAUD <albert.u.boot@aribaud.net> | 2014-09-09 13:51:54 +0200 |
commit | fe5d1abcf47b2419f69d722deea902c0d44842e7 (patch) | |
tree | 34d63607468c4e1b72b1e43c2c70dacfd40c13c3 /Kbuild | |
parent | f2cbb037a73bd91e99bbb2717e532a88929b2e12 (diff) |
clang: workaround for generated constants
KBuild abuses the asm statement to write to a file and
clang chokes about these invalid asm statements. Hack it
even more by fooling this is actual valid asm code.
cc: Masahiro Yamada <yamada.m@jp.panasonic.com>
cc: Tom Rini <trini@ti.com>
Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl>
Diffstat (limited to 'Kbuild')
-rw-r--r-- | Kbuild | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -53,7 +53,8 @@ targets += arch/$(ARCH)/lib/asm-offsets.s # Default sed regexp - multiline due to syntax constraints define sed-y - "/^->/{s:->#\(.*\):/* \1 */:; \ + "s:[[:space:]]*\.ascii[[:space:]]*\"\(.*\)\":\1:; \ + /^->/{s:->#\(.*\):/* \1 */:; \ s:^->\([^ ]*\) [\$$#]*\([-0-9]*\) \(.*\):#define \1 \2 /* \3 */:; \ s:^->\([^ ]*\) [\$$#]*\([^ ]*\) \(.*\):#define \1 \2 /* \3 */:; \ s:->::; p;}" |