Quote esp-idf include paths in esp32.ini for Windows builds (#10980)
${platformio.packages_dir} resolves to a backslash path on Windows.
PlatformIO parses build_flags with POSIX shell rules, which strip the
backslashes and turn the NimBLE include paths into broken relative
paths (d:platformiopackages/...), failing the build with
'host/ble_gap.h: No such file or directory'. Quoting the flags
preserves backslashes through parsing.
This commit is contained in:
+11
-10
@@ -22,16 +22,17 @@ build_flags =
|
|||||||
-DMESHTASTIC_EXCLUDE_RANGETEST=1
|
-DMESHTASTIC_EXCLUDE_RANGETEST=1
|
||||||
; HACK HACK HACK this is just a proof of concept ESP32+NimBLE but these
|
; HACK HACK HACK this is just a proof of concept ESP32+NimBLE but these
|
||||||
; includes need to be done properly somehow
|
; includes need to be done properly somehow
|
||||||
-I${platformio.packages_dir}/framework-espidf/components/bt/host/nimble/nimble/nimble/host/include
|
; Quotes keep Windows packages_dir backslashes intact through POSIX flag parsing
|
||||||
-I${platformio.packages_dir}/framework-espidf/components/bt/host/nimble/nimble/nimble/include
|
-I"${platformio.packages_dir}/framework-espidf/components/bt/host/nimble/nimble/nimble/host/include"
|
||||||
-I${platformio.packages_dir}/framework-espidf/components/bt/host/nimble/nimble/porting/nimble/include
|
-I"${platformio.packages_dir}/framework-espidf/components/bt/host/nimble/nimble/nimble/include"
|
||||||
-I${platformio.packages_dir}/framework-espidf/components/bt/host/nimble/port/include
|
-I"${platformio.packages_dir}/framework-espidf/components/bt/host/nimble/nimble/porting/nimble/include"
|
||||||
-I${platformio.packages_dir}/framework-espidf/components/bt/host/nimble/nimble/porting/npl/freertos/include
|
-I"${platformio.packages_dir}/framework-espidf/components/bt/host/nimble/port/include"
|
||||||
-I${platformio.packages_dir}/framework-espidf/components/bt/host/nimble/nimble/nimble/transport/include
|
-I"${platformio.packages_dir}/framework-espidf/components/bt/host/nimble/nimble/porting/npl/freertos/include"
|
||||||
-I${platformio.packages_dir}/framework-espidf/components/bt/host/nimble/nimble/nimble/host/services/gap/include
|
-I"${platformio.packages_dir}/framework-espidf/components/bt/host/nimble/nimble/nimble/transport/include"
|
||||||
-I${platformio.packages_dir}/framework-espidf/components/bt/host/nimble/esp-hci/include
|
-I"${platformio.packages_dir}/framework-espidf/components/bt/host/nimble/nimble/nimble/host/services/gap/include"
|
||||||
-I${platformio.packages_dir}/framework-espidf/components/bt/host/nimble/nimble/nimble/host/services/gatt/include
|
-I"${platformio.packages_dir}/framework-espidf/components/bt/host/nimble/esp-hci/include"
|
||||||
-I${platformio.packages_dir}/framework-espidf/components/bt/host/nimble/nimble/nimble/host/util/include
|
-I"${platformio.packages_dir}/framework-espidf/components/bt/host/nimble/nimble/nimble/host/services/gatt/include"
|
||||||
|
-I"${platformio.packages_dir}/framework-espidf/components/bt/host/nimble/nimble/nimble/host/util/include"
|
||||||
|
|
||||||
custom_sdkconfig =
|
custom_sdkconfig =
|
||||||
${esp32_common.custom_sdkconfig}
|
${esp32_common.custom_sdkconfig}
|
||||||
|
|||||||
Reference in New Issue
Block a user