Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pull latest changes #2

Merged
merged 19 commits into from
May 30, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
62ef859
[monit] Set memory usage alert at 50% (#2939)
qiluo-msft May 24, 2019
b44eef9
Add support as4630-54pe device and sdk cfg (#2928)
jostar-yang May 24, 2019
f5d3ee7
[pmon]: Add ethtool to pmon docker (#2943)
keboliu May 26, 2019
3ec3e20
[logrotate] Enhance robustness (#2942)
jleveque May 26, 2019
0cdc22d
[devices]: enable ISSU on 2410 (#2937)
keboliu May 26, 2019
ccf91c3
[.gitignore]: add build artifacts (#2938)
lguohan May 26, 2019
6d62249
[devices]: Optics fixes in Dell Z9100/Z9264f platforms (#2936)
May 26, 2019
30b37ec
[build]: make sonic-slave-stretch as the default build docker (#2921)
lguohan May 27, 2019
38fb90d
[devices]: DellEmc Z9264f: Adding port speed entry in port_config.ini…
gengankarthik May 28, 2019
60bd741
[Mellanox] Update hw-mgmt package to v175 (#2948)
keboliu May 28, 2019
81071ec
[mellanox]: fix wrong type of paramerter (#2950)
keboliu May 28, 2019
10a6157
[DellEMC-Z9264f-Q64] Add PFC support for 40G z9264f (#2940)
May 28, 2019
df149cd
[teamd]: Administratively shutdown port channel has member ports in d…
phanindra-tv May 29, 2019
4d212de
[device][platform] add platform as5812-54x, accton. (#2889)
roylee123 May 29, 2019
89ee636
[Mellanox] SFP new platform API implementation (#2944)
keboliu May 29, 2019
e041b15
[mellanox]: Fixed config reload race. (#2930)
nazariig May 29, 2019
c0eb90b
[docker-vs]: Start staticd by default (#2929)
May 29, 2019
6ca35b5
[docker-ptf]: move docker-ptf to stretch (#2954)
lguohan May 30, 2019
3f4de49
[libteam] Send updates as soon as we need to update the LACP partner …
pavel-shirshov May 30, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
# SONiC make file

NOSTRETCH ?= 0
NOJESSIE ?= 0

%::
@echo "+++ --- Making $@ --- +++"
ifeq ($(NOSTRETCH), 0)
BLDENV=stretch EXTRA_STRETCH_TARGETS=$(notdir $@) make -f Makefile.work stretch
ifeq ($(NOJESSIE), 0)
EXTRA_JESSIE_TARGETS=$(notdir $@) make -f Makefile.work jessie
endif
make -f Makefile.work $@
BLDENV=stretch make -f Makefile.work $@

stretch:
jessie:
@echo "+++ Making $@ +++"
ifeq ($(NOSTRETCH), 0)
BLDENV=stretch make -f Makefile.work stretch
ifeq ($(NOJESSIE), 0)
make -f Makefile.work jessie
endif

clean reset init configure showtag sonic-slave-build sonic-slave-bash :
@echo "+++ Making $@ +++"
make -f Makefile.work $@
BLDENV=stretch make -f Makefile.work $@
9 changes: 4 additions & 5 deletions Makefile.work
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,10 @@
# * Please note that with current Stretch build structure,
# * user of KEEP_SLAVE_ON feature will have to be conscious
# * about which docker to stay inside after build is done.
# * - If user desires to stay inside Stretch docker, please issue
# * make KEEP_SLAVE_ON=yes stretch
# * - If user desires to stay inside Jessie docker, please issue
# * (a successful "make stretch" may be needed before the following command)
# * make NOSTRETCH=1 KEEP_SLAVE_ON=yes <any jessie target>
# * make KEEP_SLAVE_ON=yes jessie
# * - If user desires to stay inside Stretch docker, please issue
# * make NOJESSIE=1 KEEP_SLAVE_ON=yes <any target>
# * SOURCE_FOLDER: host path to be mount as /var/$(USER)/src, only effective when KEEP_SLAVE_ON=yes
# * SONIC_BUILD_JOBS: Specifying number of concurrent build job(s) to run
# * VS_PREPARE_MEM: Prepare memory in VS build (drop cache and compact).
Expand Down Expand Up @@ -123,7 +122,7 @@ SONIC_BUILD_INSTRUCTION := make \
HTTP_PROXY=$(http_proxy) \
HTTPS_PROXY=$(https_proxy) \
SONIC_ENABLE_SYSTEM_TELEMETRY=$(ENABLE_SYSTEM_TELEMETRY) \
EXTRA_STRETCH_TARGETS=$(EXTRA_STRETCH_TARGETS) \
EXTRA_JESSIE_TARGETS=$(EXTRA_JESSIE_TARGETS) \
$(SONIC_OVERRIDE_BUILD_VARS)

.PHONY: sonic-slave-build sonic-slave-bash init reset
Expand Down
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,6 @@ To build SONiC installer image and docker images, run the following commands:
# Execute make configure once to configure ASIC
make configure PLATFORM=[ASIC_VENDOR]

# Build Debian Stretch required targets (Manual execution optional; will also be executed as part of the build)
BLDENV=stretch make stretch

# Build SONiC image
make all

Expand Down
4 changes: 2 additions & 2 deletions build_debian.sh
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ sudo chmod +x $FILESYSTEM_ROOT/etc/initramfs-tools/hooks/union-fsck
pushd $FILESYSTEM_ROOT/usr/share/initramfs-tools/scripts/init-bottom && sudo patch -p1 < $OLDPWD/files/initramfs-tools/udev.patch; popd

## Install latest intel ixgbe driver
sudo cp target/files/stretch/ixgbe.ko $FILESYSTEM_ROOT/lib/modules/${LINUX_KERNEL_VERSION}-amd64/kernel/drivers/net/ethernet/intel/ixgbe/ixgbe.ko
sudo cp $files_path/ixgbe.ko $FILESYSTEM_ROOT/lib/modules/${LINUX_KERNEL_VERSION}-amd64/kernel/drivers/net/ethernet/intel/ixgbe/ixgbe.ko

## Install docker
echo '[INFO] Install docker'
Expand Down Expand Up @@ -307,7 +307,7 @@ check filesystem root-overlay with path /
check filesystem var-log with path /var/log
if space usage > 90% for 5 times within 10 cycles then alert
check system $HOST
if memory usage > 90% for 5 times within 10 cycles then alert
if memory usage > 50% for 5 times within 10 cycles then alert
if cpu usage (user) > 90% for 5 times within 10 cycles then alert
if cpu usage (system) > 90% for 5 times within 10 cycles then alert
EOF
Expand Down
Loading