micropython/ports
Iksas ce2058685b ports: Fix handling of paths containing spaces in Makefiles.
Make can't handle paths with spaces, see https://savannah.gnu.org/bugs/?712

The following workarounds exist:

- When using make's built-in functions:
    - Use relative paths wherever possible to avoid spaces in the first
      place.
    - All spaces in paths can be escaped with backslashes; quotes don't
      work.
    - Some users use the shell to temporarily rename directories, or to
      create symlinks without spaces.

- When using make to pass commands to the system's shell, enclose paths in
  quotes.  While make will still interpret quoted strings with spaces as
  multiple words, the system's shell will correctly parse the resulting
  command.

This commit contains the following fixes:

- In ports/stm32/mboot/Makefile: Use relative paths to avoid spaces when
  using built-in functions.

- In all other files: Use quotes to enclose paths when make is used to call
  shell functions.

All changes have been tested with a directory containing spaces.

Signed-off-by: Iksas <iksas@mailbox.org>
2024-01-24 10:43:18 +11:00
..
bare-arm shared/libc/string0: Don't deref args for n==0 case. 2023-11-07 16:01:50 +11:00
cc3200 ports: Fix sys.stdout.buffer.write() return value. 2023-12-22 10:32:46 +11:00
embed embed: Fix alloca include for FreeBSD and NetBSD. 2024-01-05 01:03:25 -06:00
esp32 ports: Fix handling of paths containing spaces in Makefiles. 2024-01-24 10:43:18 +11:00
esp8266 ports: Fix sys.stdout.buffer.write() return value. 2023-12-22 10:32:46 +11:00
mimxrt ports: Fix handling of paths containing spaces in Makefiles. 2024-01-24 10:43:18 +11:00
minimal ports: Fix sys.stdout.buffer.write() return value. 2023-12-22 10:32:46 +11:00
nrf nrf: Fix _start() build issue with CMSIS 5.9.0. 2024-01-22 12:40:16 +11:00
pic16bit ports: Fix sys.stdout.buffer.write() return value. 2023-12-22 10:32:46 +11:00
powerpc ports: Fix sys.stdout.buffer.write() return value. 2023-12-22 10:32:46 +11:00
qemu-arm ports: Switch build to use common lib/libm list of source files. 2023-12-08 15:42:41 +11:00
renesas-ra renesas-ra/boards/ARDUINO_PORTENTA_C33: Fix the RTC clock source. 2024-01-21 00:19:20 +11:00
rp2 ports: Fix handling of paths containing spaces in Makefiles. 2024-01-24 10:43:18 +11:00
samd samd/mcu/samd21: Enable MICROPY_STACK_CHECK on SAMD21. 2024-01-08 23:24:39 +11:00
stm32 ports: Fix handling of paths containing spaces in Makefiles. 2024-01-24 10:43:18 +11:00
unix ports: Move MICROPY_INTERNAL_WFE definition to mphalport.h. 2024-01-05 15:49:42 +11:00
webassembly ports: Fix sys.stdout.buffer.write() return value. 2023-12-22 10:32:46 +11:00
windows windows/windows_mphal: Fix mp_hal_delay_ms() so it runs events. 2024-01-05 15:56:34 +11:00
zephyr ports: Fix sys.stdout.buffer.write() return value. 2023-12-22 10:32:46 +11:00