Skip to content

FAQ: How to build for 2 cpu's? #601

Answered by skliper
skliper asked this question in Q&A
Discussion options

You must be logged in to vote

Capturing the topic from the community email (thanks Gary!). This is how you add cpu2 to the build:

git clone --recurse-submodules https://github.com/nasa/cFS.git 
cd cFS/
cp cfe/cmake/Makefile.sample  Makefile
cp -r cfe/cmake/sample_defs/ sample_defs
cp sample_defs/cpu1_cfe_es_startup.scr sample_defs/cpu2_cfe_es_startup.scr 
cp sample_defs/cpu1_msgids.h sample_defs/cpu2_msgids.h 
cp sample_defs/cpu1_platform_cfg.h sample_defs/cpu2_platform_cfg.h 

vi sample_defs/targets.cmake
< change > SET(MISSION_CPUNAMES cpu1 cpu2)
 
make SIMULATION=native install

Replies: 1 comment

Comment options

skliper
Oct 20, 2022
Collaborator Author

You must be logged in to vote
0 replies
Answer selected by skliper
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant