Bug 197847
Summary: | [objtool] make failure due to change in make handling of # characters | ||
---|---|---|---|
Product: | Other | Reporter: | zibeon |
Component: | Configuration | Assignee: | other_configuration (other_configuration) |
Status: | NEW --- | ||
Severity: | blocking | CC: | pmenzel+bugzilla.kernel.org, rdunlap, tomenglund26 |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | all | Subsystem: | |
Regression: | Yes | Bisected commit-id: | |
Attachments: | tools/build/Build.include: fix # escaping in .cmd files for future Make |
Description
zibeon
2017-11-11 15:25:05 UTC
same issue happening here aswell, and it will probably affect quite a lot more once make gets a new release. which brings in the relevant commit. Patch is merged into linux-kbuild git tree (2018-APR-09). Randy, it’d be great, if this was applied to the stable series too. Rasmus’ commit 9564a8cf (Kbuild: fix # escaping in .cmd files for future Make) [1][2] is incomplete. The printf’s in the hunk below need to be updated too. ``` dep-cmd = $(if $(wildcard $(fixdep)), \ $(fixdep) $(depfile) $@ '$(make-cmd)' > $(dot-target).tmp; \ rm -f $(depfile); \ mv -f $(dot-target).tmp $(dot-target).cmd, \ printf '\# cannot find fixdep (%s)\n' $(fixdep) > $(dot-target).cmd; \ printf '\# using basic dep data\n\n' >> $(dot-target).cmd; \ cat $(depfile) >> $(dot-target).cmd; \ printf '\n%s\n' 'cmd_$@ := $(make-cmd)' >> $(dot-target).cmd) ``` [1] https://patchwork.kernel.org/patch/10328633/ [2] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=9564a8cf422d7b58f6e857e3546d346fa970191e Created attachment 276327 [details]
tools/build/Build.include: fix # escaping in .cmd files for future Make
Here is the fix.
|