gromero opened a new pull request #8230:
URL: https://github.com/apache/tvm/pull/8230


   Hi,
   
   Could the following small change be reviewed please?
   
   It's necessary to make the build of the libraries (`common`, 
`utvm_rpc_common`, `utvm_rpc_server`, etc) be aware of board-specific config 
settings, like per board `CONFIG_FPU` (since some boards, like mps2, doesn't 
have a FPU and currently it's set globally). It's also necessary to move 
forward the following PR:
   https://github.com/apache/tvm/pull/8055
   
   Without that change, for instance, even if `CONFIG_FPU=y` is set in the 
board config file (like `boards/qemu_x86.conf`) the libraries are built against 
soft-float because `CONFIG_FPU=y` doesn't take effect and so running some 
models that rely on float point will fail.
   
   This happens because currently board-specific config files (boards/*.conf) 
are not
   copied from Zephyr project dir to the destination build dir, so
   as a consequence the per board configs are not used when building
   the runtime libraries, like libcommon. Hence, for instance, it's
   currently not possible to set CONFIG_FPU per board since it only
   takes effect when it's set in the generic 'prj.con' config file.
   
   This commit fixes it by copying to the build dir, to each lib
   dir, the proper .conf for the selected target board. For example,
   if target 'qemu_x86' is selected 'qemu_x86.conf' is copied to
   the boards/ dir inside the lib dirs, so Zephyr build system can
   find it and combine it with configs found in the generic 'prj.conf'.
   
   Thanks & best regards,
   Gustavo


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to