Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmake system fails to update config.h #12322

Open
yf13 opened this issue May 11, 2024 · 1 comment
Open

cmake system fails to update config.h #12322

yf13 opened this issue May 11, 2024 · 1 comment

Comments

@yf13
Copy link
Contributor

yf13 commented May 11, 2024

Description

When .config is tweaked, sometimes cmake system doesn't update the include/nuttx/config.h.

Reproducing

To reproduce, try following steps:

  • Find an out-of-tree build folder, do cmake ~/Projects/Nuttx/nuttx -G Ninja -DBOARD_CONFIG=rv-virt/nsh
  • Run ninja to build nuttx
  • Use qemu-system-riscv32 -M virt -nographic -bios nuttx to check it (e.g. run free or hello from NSHJ) then quit.

The repeat the following steps a few times:

  • Run kconfig-tweak -e DEBUG_SCHED_INFO
  • Run ninja to see Re-running CMake... followed by more build logs.
  • Run kconfig-tweak -d DEBUG_SCHED_INFO
  • Run ninja to see Re-runing CMake... followed by more build logs.

We expect to see Re-running CMake... each time after .config is tweaked, however this isn't true if we repeat the above tweaking operations more times.

Currently I have to clean current folder and redo cmake command, and do kconfig-tweak before using ninja. This is tedious.

@xiaoxiang781216
Copy link
Contributor

@xuxin930 please take a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants