diff options
author | Khem Raj <raj.khem@gmail.com> | 2025-07-23 22:57:01 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-07-28 17:37:02 +0100 |
commit | 1f9f8187875d1cb20b5b6f0c4e242d56a0eea735 (patch) | |
tree | e0ee9f1ab5166b2250f226fa9d00067ede56138b /scripts/install-buildtools | |
parent | 7e36ded41739fab062063cdfe867ae904c135cab (diff) | |
download | poky-1f9f8187875d1cb20b5b6f0c4e242d56a0eea735.tar.gz |
bluez: Fix invalid-pp-token warning found with clang
We add FIRMWARE_DIR via CFLAGS using escapes for string and clang
option parser flags it
<command line>:4:23: warning: missing terminating '"' character [-Winvalid-pp-token]
4 | #define FIRMWARE_DIR \"/usr/lib/firmware\"
| ^
emitting this warning during configure means some tests fail wrongly. e.g.
test for enable -fPIC -DPIC, which results in textrels in libbbluetooth.so
Pass the string definition using single quotes to avoid the shell
"eating" the quotes and other characters
This works well across gcc and clang
(From OE-Core rev: 23a87f27b1837bd35bea356f0a10816fb35826f2)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/install-buildtools')
0 files changed, 0 insertions, 0 deletions