ifyall / zephyr-old

Early Access to PSoC 6 integration into Zephyr
Apache License 2.0
1 stars 5 forks source link

File name case sensitivity issue on Linux #1

Open luchnikov opened 2 years ago

luchnikov commented 2 years ago

Describe the bug Case-sensitive DTS file name doesn't work on Linux

To Reproduce Try to build the sample app:

  1. mkdir build; cd build
  2. cmake -DBOARD=board_xyz
  3. make
  4. See error

Expected behavior Expected to compile

Impact Can't compile

Logs and console output

west build -p auto -b cy8cproto_062_4343w samples/basic/button
WARNING: ZEPHYR_BASE=/home/imax/fbsource/arvr/firmware/projects/merlot/../../../..//third-party/zephyr/zephyr_rtos/v2.3.0/zephyr in the calling environment will be used,
but the zephyr.base config option in /home/imax/paris/zephyr is "zephyr"
which implies a different ZEPHYR_BASE=/home/imax/paris/zephyr/zephyr
To disable this warning in the future, execute 'west config --global zephyr.base-prefer env'
-- west build: generating a build system
Including boilerplate (Zephyr base (cached)): /home/imax/paris/zephyr/zephyr/cmake/app/boilerplate.cmake
-- Application: /home/imax/paris/zephyr/zephyr/samples/basic/button
-- Zephyr version: 2.7.99 (/home/imax/paris/zephyr/zephyr), build: d6c4ef3d2548
-- Found west (found suitable version "0.12.0", minimum required is "0.7.1")
-- Board: cy8cproto_062_4343w
-- Cache files will be written to: /home/imax/.cache/zephyr
-- Found dtc: /usr/bin/dtc (found suitable version "1.6.1", minimum required is "1.4.6")
-- Found toolchain: gnuarmemb (/home/imax/fbsource/arvr/firmware/projects/merlot/../../../../arvr/third-party/toolchains/gcc-arm-none-eabi/8-2018-q4-major/arm-gcc-linux)
-- Found BOARD.dts: /home/imax/paris/zephyr/zephyr/boards/arm/cy8cproto_062_4343w/cy8cproto_062_4343w.dts
In file included from /home/imax/paris/zephyr/zephyr/boards/arm/cy8cproto_062_4343w/cy8cproto_062_4343w.dts:9,
                 from <command-line>:
/home/imax/paris/zephyr/zephyr/dts/arm/infineon/psoc6/mpns/CY8C624ABZI_S2D44.dtsi:6:10: fatal error: ../psoc6_02/psoc6_02.124-bga.dtsi: No such file or directory
 #include "../psoc6_02/psoc6_02.124-bga.dtsi"
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.

Environment (please complete the following information): Fedora 34

Additional context ./dts/arm/infineon/psoc6/mpns/CY8C624ABZI_S2D44.dtsi

include "../psoc6_02/psoc6_02.124-bga.dtsi"

File name is: ./dts/arm/infineon/psoc6/psoc6_02/PSoC6_02.124-BGA.dtsi

Renaming the file to all lower case fixes it. Should rename all of PSOC dts files accordingly

npal-cy commented 2 years ago

Hi @luchnikov, thanks for inform us. it is fixed here https://github.com/ifyall/zephyr/commit/2afd7ede7b1c96c2edc510842b9952e4b7edab12