Ported Marvell armhf build on amd64 host for debian buster to use cross-comp…#88
Ported Marvell armhf build on amd64 host for debian buster to use cross-comp…#88lguohan merged 4 commits intosonic-net:masterfrom gregshpit:master
Conversation
…ilation instead of qemu emulation
|
Dear reviewers, Long time has passed since this PR was raised. Please make progress on the review. Thanks, Gregory |
Rebased with the module's master repository
|
Hi, please review and merge this PR. It was raised already 4 months ago. Gregory |
CLI/klish/Makefile
Outdated
|
|
||
| KLISH_VERSION = 2.1.4 | ||
| PYTHONVER=3.7 | ||
| PYTHONVER=2.7 |
There was a problem hiding this comment.
why this changed back to 2.7?
There was a problem hiding this comment.
I was asked to apply this change as rebasing to the sonic-mgmt-framework master. But now I see
that I was probably misled, the master branch did not change PYTHONVER.
I'll make an inquiry and get back to you.
|
@gregshipit, can you check the build failure? |
Discarded the last commit as incorrect
Fixed previous commit to fully discard changes in the skipped commit.
I discarded the last mistaken commit and now the build finished successfully. |
|
@lguohan, build issue is resolved and now all checks are passing file. Please review the changes |
|
@lguohan, can this PR me merged please? |
…ilation instead of qemu emulation
…ilation instead of qemu emulation
Motivation:
Current armhf Sonic build on amd64 host uses qemu emulation. Due to the nature of the emulation it takes a very long time, about 22-24 hours to complete the build. The change I did to improve the building time ports Sonic armhf build on amd64 host for Marvell platform for debian buster to use cross-compilation on arm64 host for armhf target. The overall Sonic armhf building time using cross-compilation is about 6 hours.
The Sonic configure and build for the armhf cross-compilation is as following:
NOJESSIE=1 NOSTRETCH=1 BLDENV=buster CROSS_BLDENV=1 make configure PLATFORM=marvell-armhf PLATFORM_ARCH=armhf
NOJESSIE=1 NOSTRETCH=1 BLDENV=buster CROSS_BLDENV=1 make target/sonic-marvell-armhf.bin
Sonic module should check if $CROSS_BUILD_ENVIRON is 'y' to make sure that it is cross-compilation build.