SONIC Source Code Compilation #19602
Replies: 3 comments 5 replies
-
Before you wish to setup the repo make sure you have the correct hardware requirements as mentioned in the README.md:
Once you have that the steps to build the repo are as follows: Now you can run
This will get you within the slave docker, then you can run: That is it, now you can modify the code and run unit tests. Most tests in SONiC are written using the pytest framework and have the setup.py file. You can use |
Beta Was this translation helpful? Give feedback.
-
I would also like to know if there's a confirmed distro that works for building the image from source. I've been trying building for broadcom and vs, on a physical machine, on a VM, in Ubuntu 22 LTS, Ubuntu 23. Got different errors every time, such as building all with -j4 would fail some targets and I had to build that single target only. |
Beta Was this translation helpful? Give feedback.
-
Fixable by manually altering |
Beta Was this translation helpful? Give feedback.
-
I am compiling the SONIC source code in my Ubuntu 22.04 system by issuing the following commands
make ini,
make configure PLATFORM=vs,
make SONIC_BUILD_JOBS=4 all)
just to see whether I am able to compile or not but it is giving error in compilation. Can anybody tell me the right steps to compile so that it will be compiled successfully?
As I am exploring about SONIC so I don't know much about it so I will be grateful if anyone is ready to help me.
Beta Was this translation helpful? Give feedback.
All reactions