Re: rename the zephyr to other name breaks the build

Hake Huang

Hi All,


Does anyone meet this problem?


1.     Create a folder, and enter it

2.     Run west init .

3.     Run west update

4.     Rename the zephyr to zephyr_rt1020

5.     source the, and export the variable.

6.     Cd tests/posix/fs

7.     Create build folder

8.     Cd to the build folder

9.     Run cmake -DBOARD=mimxrt1020_evk ..

10.  It prompts below errors

Including module: esp-idf in path: /build/src/workspace/modules/hal/esp-idf/zephyr

Including module: fatfs in path: /build/src/workspace/modules/fs/fatfs

CMake Error at /build/src/workspace/modules/fs/fatfs/CMakeLists.txt:3 (add_library):

  add_library cannot create target "ELMFAT" because another target with the

  same name already exists.  The existing target is an interface library

  created in source directory

  "/build/src/workspace/rt1020_master/ext/fs/fat".  See documentation for

  policy CMP0002 for more details.




Join to automatically receive all group messages.