Re: rename the zephyr to other name breaks the build


pzierhoffer@...
 

Hi Hake

It seems it might be somewhat related to https://github.com/zephyrproject-rtos/west/pull/268

Although, if I understand correctly, simply renaming the directory is not the way to handle it anyway.

Best regards

Piotr Zierhoffer


On Mon, 8 Jul 2019 at 17:16, Hake Huang <hake.huang@...> wrote:

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 env-zephyr.sh, 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.

 

Regards,

Hake

Join testing-wg@lists.zephyrproject.org to automatically receive all group messages.