Skip to content

Added support for Sonic cross-compilation build.#2233

Merged
saiarcot895 merged 1 commit intosonic-net:masterfrom
gregshpit:master
Jun 29, 2022
Merged

Added support for Sonic cross-compilation build.#2233
saiarcot895 merged 1 commit intosonic-net:masterfrom
gregshpit:master

Conversation

@gregshpit
Copy link
Copy Markdown
Contributor

Signed-off-by: marvell marvell@cpss-build3.marvell.com

What I did

Added support for Sonic cross-compiling build. Specifically building Sonic armhf on amd64 host.

How I did it

Removed addition of "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" to PATH variable when Sonic is built using cross-compilation (CROSS_BUILD_ENVIRON variable should be set to 'y' then).

How to verify it

Run Sonic armhf build using cross-compilation for marvell platform. Specifically run (when Sonic cross-compilation PR sonic-net/sonic-buildimage#8035 is merged with the upstream):
NOJESSIE=1 NOSTRETCH=1 CROSS_BLDENV=1 make target/sonic-marvell-armhf.bin

Signed-off-by: marvell <marvell@cpss-build3.marvell.com>
@gregshpit
Copy link
Copy Markdown
Contributor Author

Hi @saiarcot895 and @xumia ,

This PR was created as part of Sonic armhf cross-compilation build PR sonic-net/sonic-buildimage#8035 . Please review and merge it asap.
Thanks a lot for your cooperation !

Gregory

@saiarcot895 saiarcot895 merged commit 7d9faf3 into sonic-net:master Jun 29, 2022
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

Successfully merging this pull request may close these issues.

2 participants