diff options
author | James Clark <[email protected]> | 2021-08-16 14:07:05 +0100 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2021-09-01 11:26:01 -0300 |
commit | 8af52e69772d053bc7caab12ad1c59f18ef2e3e2 (patch) | |
tree | 1e1b459f759d1d29a192bfba19ce377ceec9c5b0 /scripts/gdb/linux/lists.py | |
parent | 79e7ed56d7e8899827d977d9dbd381b0ddb7a52a (diff) |
tools build: Fix feature detect clean for out of source builds
Currently the clean target when using O= isn't cleaning the feature
detect output. This is because O= and OUTPUT= are set to canonical
paths. For example in tools/perf/Makefile:
FULL_O := $(shell cd $(PWD); readlink -f $(O) || echo $(O))
This means that OUTPUT ends in a / and most usages prepend it to a file
without adding an extra /. This line that was changed adds an extra /
before the 'feature' folder but not to the end, resulting in a clean
command like this:
rm -f /tmp/build//featuretest-all.bin ...
After the change the clean command looks like this:
rm -f /tmp/build/feature/test-all.bin ...
Fixes: 762323eb39a257c3 ("perf build: Move feature cleanup under tools/build")
Signed-off-by: James Clark <[email protected]>
Acked-by: Jiri Olsa <[email protected]>
Link: http://lore.kernel.org/lkml/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/lists.py')
0 files changed, 0 insertions, 0 deletions