Closed pat0026 closed 1 year ago
I found the answer to my question and would like to share it here. I needed to move the .cargo directory under src to the root directory. From ./src/.cargo to ./.cargo.
Please see the following documentation as a reference: hierarchical-structure
I have read the following note:
But I was trying to build led-roulette on the f3discovery root directory by utilizing the package parameter with the following command:
I noticed that the -C link-arg=-Tlink.x wasn't added to the options in the build command even though it is already on the discovery/f3discovery/src/.cargo/config.toml.
Built on discovery/f3discovery (no -C link-arg=-Tlink.x):
Built on discovery/f3discovery/src/05-led-roulette (has -C link-arg=-Tlink.x):
I would like to know the reason why this is and how to build on the root directory with different members like f3discovery. I might try to organize my personal project that is closely related to each other in this way on my embedded journey. Or is this a limitation of the cargo build?