Commit Graph

93 Commits

Author SHA1 Message Date
gregshpit
5df09490dc
Ported Marvell armhf build on amd64 host for debian buster to use cross-comp… (#8035)
* Ported Marvell armhf build on x86 for debian buster to use cross-compilation instead of qemu emulation

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 reduce the building time by
porting 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 reduced to
about 6 hours.

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

* Fixed final Sonic image build with dockers inside

* Update Dockerfile.j2

Fixed qemu-user-static:x86_64-aarch64-5.0.0-2 .

* Update cross-build-arm-python-reqirements.sh

Added support for both armhf and arm64 cross-build platform using $PY_PLAT environment variable.

* Update Makefile

Added TARGET=<cross-target> for armhf/arm64 cross-compilation.

* Reviewer's @qiluo-msft requests done

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

* Added new radius/pam patch for arm64 support

* Update slave.mk

Added missing back tick.

* Added libgtest-dev: libgmock-dev: to the buster Dockerfile.j2. Fixed arm perl version to be generic

* Added missing armhf/arm64 entries in /etc/apt/sources.list

* fix libc-bin core dump issue from xumia:fix-libc-bin-install-issue commit

* Removed unnecessary 'apt-get update' from sonic-slave-buster/Dockerfile.j2

* Fixed saiarcot895 reviewer's requests

* Fixed README and replaced 'sed/awk' with patches

* Fixed ntp build to use openssl

* Unuse sonic-slave-buster/cross-build-arm-python-reqirements.sh script (put all prebuilt python packages cross-compilation/install inside Dockerfile.j2). Fixed src/snmpd/Makefile to use -j1 in all cases

* Clean armhf cross-compilation build fixes

* Ported cross-compilation armhf build to bullseye

* Additional change for bullseye

* Set CROSS_BUILD_ENVIRON default value n

* Removed python2 references

* Fixes after merge with the upstream

* Deleted unused sonic-slave-buster/cross-build-arm-python-reqirements.sh file

* Fixed 2 @saiarcot895 requests

* Fixed @saiarcot895 reviewer's requests

* Removed use of prebuilt python wheels

* Incorporated saiarcot895 CC/CXX and other simplification/generalization changes

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

* Fixed saiarcot895 reviewer's  additional requests

* src/libyang/patch/debian-packaging-files.patch

* Removed --no-deps option when installing wheels. Removed unnecessary lazy_object_proxy arm python3 package instalation

Co-authored-by: marvell <marvell@cpss-build3.marvell.com>
Co-authored-by: marvell <marvell@cpss-build2.marvell.com>
2022-07-21 14:15:16 -07:00
xumia
8fb534effb
Add the branch 202205 and branch 202111 in the README.md (#11311)
Why I did it
Add the branch 202205 and branch 202111 in the README.md
2022-07-04 12:37:21 +08:00
Christian Svensson
2f332c8425
[doc]: Update build instructions (#8470)
The current instructions cannot be used on e.g. Ubuntu 20.04.

This commit reformats the steps to be more natural to read when
first getting started building SONiC.

* Add SONIC_BUILD_JOBS=$(nproc) to usage guide
* Explain disk usage w.r.t. SONIC_BUILD_JOBS
* Set BUILD JOBS to 4

More than 4 can cause race issues right now, and setting to nproc
might be too much as every job spawns multiple threads.

Signed-off-by: Christian Svensson <blue@cmd.nu>
2021-08-25 04:35:31 -07:00
Shilong Liu
70c619c9b6
Update README page build status badge for azp (#8069) 2021-07-08 23:29:35 -07:00
VenkatCisco
534a5b8093
[build]: support no_proxy environment variable in Azure SONiC build files (#7333)
Lack of having the support for no_proxy in SONiC build environment limits enterprise companies to put some internal hacks to ensure the proxy's dont refer to some Intranet site for artifactory downloads etc. Today. Using no_proxy is familiar in proxy settings terminology and excludes traffic destined to certain hosts.

Most Web clients hence support connection to proxy servers via environment variables:

http_proxy / HTTP_PROXY
https_proxy / HTTPS_PROXY
no_proxy / NO_PROXY
These variables tell the client what URL should be used to access the proxy servers and which exceptions should be made.

How to verify it

Simply set up the variable in the bash shell at build time.

export no_proxy=internal.example.com, internal2.example.com

Usage is:
no_proxy is a comma- or space-separated list of machine or domain names, with optional :port part. If no :port
part is present, it applies to all ports on that domain.
2021-04-15 23:10:19 -07:00
Qi Luo
15487f4b5e
[doc]: Fix typos in documents (#7296) 2021-04-14 18:27:24 -07:00
Qi Luo
5aba5cc68b
[doc]: fix some typos (#6838) 2021-02-22 09:23:37 -08:00
Danny Allen
0ad2098402
[README] Update build badges to include 202012 build status (#6373)
Signed-off-by: Danny Allen <daall@microsoft.com>
2021-01-07 10:02:39 -08:00
Guohan Lu
283ed8b18e [doc]: add centec(arm64) and marvel(armhf) build badge
Signed-off-by: Guohan Lu <lguohan@gmail.com>
2020-12-26 23:13:26 -08:00
Ravindranath C K
239346d90f
[doc]: Update Readme with Innovium support (#6030)
* Add make target for Innovium platform
* Add the syncd docker image gzip tar archive name

Signed-off-by: rck@innovium.com
2020-12-01 09:10:15 -08:00
Qi Luo
e36c1fdb4d
Revert "[build]: Add build badge for Barefoot 202006 build (#4923)" (#5996)
This reverts commit f2e8187400.
2020-11-23 15:09:43 -08:00
Volodymyr Boiko
f2e8187400
[build]: Add build badge for Barefoot 202006 build (#4923)
Signed-off-by: Volodymyr Boyko <volodymyrx.boiko@intel.com>
2020-09-25 20:40:21 -07:00
lguohan
0dbced4a08
[doc]: add Centec master branch build badge
make platform as alphabetic order
2020-08-07 00:41:26 -07:00
Qi Luo
47ca5e2fa0
Update README.md (#5078)
Remove obsoleted build job's badge
2020-07-31 16:27:45 -07:00
Qi Luo
6d0f8dcb87
[doc]: Update README.md: move LGTM badges above Jenkins badges (#4658) 2020-05-27 18:12:42 -07:00
Qi Luo
c5c0042a26
Update README.md: improve the style of build badges and add LGTM badges (#4395)
* Update README.md: improve build badge style
* Update README.md: add LGTM badges
2020-04-07 22:45:20 -07:00
simonJi2018
11da67bce1
[doc]: Add 201911/201811 status support for Nephos (#4382)
Add branch 201911/201811 status support for Nephos platform
2020-04-07 20:59:14 -07:00
Andriy Kokhan
3e9a64cfcc
[build]: Add build badge for Barefoot 201911 build (#4289)
Signed-off-by: Andriy Kokhan <akokhan@barefootnetworks.com>
2020-03-19 12:36:51 -07:00
Tony Titus
e069e44d05
Add Innovium 201911 build support (#4113) 2020-02-11 06:09:29 -08:00
rlhui
c39b1883c5
Update build badge in the README.md (#4084)
Update build badge in the README.md
2020-01-30 08:36:49 -08:00
kannankvs
979b0dd4a2 [doc]: Added one extra sentence to give example for check out 201911 branch (#3867) 2019-12-10 23:48:18 -08:00
Sujin Kang
157317d710 [doc]: Remove all non-existing build jobs from README.md (#3844) 2019-12-04 20:27:39 -08:00
Tony Titus
3853b31f3c [innovium]: Add Innovium Jenkins build (#3820) 2019-12-03 13:55:25 -08:00
Michel Moriniaux
8d162ae70a [doc]: Added branch 201904 to the build status icons (#3642)
Somehow this was missed in april, I added the icons for 201904 so that
the branch is not forgotten

Signed-off-by: Michel Moriniaux <m.moriniaux@criteo.com>
2019-10-23 09:36:10 -07:00
Wei Bai
9d7199ac93 [dox]: Add SONiC management docker image (#3636) 2019-10-19 11:00:37 -07:00
arheneus@marvell.com
23a3faf3f9 [build]: Sonic installer script for armhf (#3303)
Signed-off-by: Antony Rheneus <arheneus@marvell.com>
2019-09-11 10:12:10 -07:00
ruijie.com.cn
9e44070ffa [doc]: use docker without sudo (#3336)
Users can install docker with sudo, and it requires sudo to issue docker command. This will cause few errors in Makefile.work which need use docker without sudo.
2019-08-26 10:35:41 -07:00
arheneus@marvell.com
50fe458592 [build]: SONiC buildimage ARM arch support (#2980)
ARM Architecture support in SONIC

make configure platform=[ASIC_VENDOR_ARCH] PLATFORM_ARCH=[ARM_ARCH]
SONIC_ARCH: default amd64
armhf - arm32bit
arm64 - arm64bit

Signed-off-by: Antony Rheneus <arheneus@marvell.com>
2019-07-25 22:06:41 -07:00
Renuka Manavalan
33a1b26a11 [build]: Added debug dockers & image info (#3121)
Added details on how to build debug docker images and how they can be exploited for debugging.
2019-07-13 12:44:46 -07:00
lguohan
30b37ec6fb
[build]: make sonic-slave-stretch as the default build docker (#2921)
Signed-off-by: Guohan Lu <gulv@microsoft.com>
2019-05-27 15:50:51 -07:00
randygaulmsft
3add5d46e4 Add note for running out of disk space in /var/lib/docker to README.md (#2758) 2019-04-10 00:02:57 -07:00
Darío Hereñú
c120ee9225 Fixed typo on paragraph #40 (#2537)
* plus minor formatting proposals
2019-02-07 09:25:41 -08:00
Guohan Lu
4750a87a28 [build]: add build badge for 201811 branch 2018-12-05 18:29:55 +00:00
Guohan Lu
b1d290c746 update build to 201803 and 201807
Signed-off-by: Guohan Lu <gulv@microsoft.com>
2018-10-06 18:41:37 +00:00
Joe LeVeque
35d93f0c3b [build] Remove sudo calls from build process (#2015)
* [build] Remove sudo calls from build process

* Make regex more strict
2018-09-04 22:32:46 -07:00
Ying Xie
a8ccf589c9 [build]: Makefile: make new step "make stretch" optional (#1936)
* [makefile] Rename Makefile to Makefile.work

Signed-off-by: Ying Xie <ying.xie@microsoft.com>

* [makefile] Add new make file to avoid extra step

* avoiding calling "make stretch"

Signed-off-by: Ying Xie <ying.xie@microsoft.com>

* [makefile] allow skipping "make stretch"

Signed-off-by: Ying Xie <ying.xie@microsoft.com>

* [makefile] add all PHONY targets to pass through list

Signed-off-by: Ying Xie <ying.xie@microsoft.com>
2018-08-16 15:54:31 -07:00
Guohan Lu
6246b161d5 [doc]: update build instruction for debian stretch
Signed-off-by: Guohan Lu <gulv@microsoft.com>
2018-08-12 08:20:10 +00:00
Guohan Lu
88ea503e63 [doc]: update build instruction for debian stretch build
Signed-off-by: Guohan Lu <gulv@microsoft.com>
2018-08-11 21:26:12 +00:00
Guohan Lu
0edb3802b0 [build]: add stretch target to build in stretch docker 2018-08-11 09:09:03 +00:00
Guohan Lu
9801ba9cc9 [devices]: enable platform modules for various platforms 2018-08-11 09:09:03 +00:00
Guohan Lu
2449fafae0 [kernel]: update kernel submodule and remove standalone igb driver 2018-08-11 09:07:59 +00:00
Guohan Lu
a0280dd500 update build instructions 2018-08-11 09:07:59 +00:00
lguohan
b86c3ee8ce
[build]: add barefoot master build badge (#1881) 2018-07-27 12:36:23 -07:00
lguohan
5034d695c3
[doc]: add build badge for 201712 release (#1510)
Signed-off-by: Guohan Lu <lguohan@gmail.com>
2018-03-18 16:15:19 -07:00
lguohan
6399818aeb
[doc]: add build note to use normal user account to do the make (#1393)
* [doc]: add build note to use normal user account to do the make
2018-02-15 17:44:16 -08:00
lguohan
45bf130803
[doc]: update sonic-buildimage clone instructions (#1278)
* [doc]: update sonic-buildimage clone instructions
2018-01-03 21:45:08 -08:00
lguohan
5c40aa52ac
[build]: add build badge for nephos platform (#1267) 2017-12-25 18:42:51 -08:00
lguohan
15d433d975
[build]: allow to use http(s) proxy in the build (#1265)
* allow to use http(s) proxy in the build

To enable this, use following command
http_proxy=[your_proxy] https_proxy=[your_proxy] make
2017-12-23 23:34:15 -08:00
kaiyu22
63de341dd6 [Platform] Add Ingrasys S9130-32X and S9230-64X with Nephos Switch ASIC (#1245)
* Add switch ASIC vendor and platforms for Nephos

- What I did
Add switch ASIC vendor: Nephos
Add Nephos platforms: Ingrasys S9130-32X, Ingrasys S9230-64X

- How I did it
Add platform/nephos files
Add platform/nephos/sonic-platform-modules-ingrasys submodule
Add device/ingrasys/x86_64-ingrasys_s9130_32x-r0 files
Add device/ingrasys/x86_64-ingrasys_s9230_64x-r0 files
Add SONiC to support Nephos platform

- How to verify it
To build SONiC installer image and docker images, run the following commands:
make configure PLATFORM=nephos
make target/sonic-nephos.bin
Check system and network feature is worked as well

- Description for the changelog
Add switch ASIC vendor and platforms for Nephos

- A picture of a cute animal (not mandatory but encouraged)

Signed-off-by: Sam Yang <yang.kaiyu@gmail.com>

* Advance sonic-sairedis submodule to include #271 (Add Nephos ASIC)
2017-12-22 10:04:29 -08:00
lguohan
cd4b11c811
[build]: add build badge for broadcom and mellanox on 201709 release (#1147) 2017-11-13 10:07:09 -08:00