Re: [Zephyr-devel] How to use BOARD_ROOT to define out-of-tree boards?
Li, Jun R <jun.r.li@...>
I found the following definition can work through:
toggle quoted messageShow quoted text
``` set(BOARD_ROOT ${CMAKE_SOURCE_DIR}) ``` Regards, Jun
On 3/14/18, 13:51, "Li, Jun R" <jun.r.li@...> wrote:
No, the typo came from one of build errors I had made before. I corrected the typo but still didn’t work. However, if the BOARD_ROOT is specified with the absolute directory name, by -DBOARD_ROOT=<my_project_abs_dir>, it works. I think I need to find an env variable referring to my project directory name. Regards, Jun > On Mar 14, 2018, at 1:45 PM, Henrik Brix Andersen <henrik@...> wrote: > > Hi, > >> On 14 Mar 2018, at 16.08, Li, Jun R <jun.r.li@...> wrote: >> >> For the first way, I got an error: >> -- Selected BOARD stm32f4_disoc >> No board named 'stm32f4_disoc' found > > Was the typo intentional (“disoc” vs. “disco)? Otherwise, that may explain why your board definition was not picked up. > > Regards, > Brix > -- > Henrik Brix Andersen >
|
|