diff --git a/Makefile b/Makefile index 7694de6a41d4..52b5470076de 100644 --- a/Makefile +++ b/Makefile @@ -7,6 +7,11 @@ PASSWORD_ENCRYPTED= ## Select bash for commands SHELL := /bin/bash +## Path to vendor linux patch folder +ifeq ($(MAKECMDGOALS),cavm-all) +export LINUX_PATCH=cavm-as7512 +endif + ## Capture all the files in SDK directories MLNX-SDK-DEBS=$(notdir $(wildcard src/mlnx-sdk/*.deb)) BRCM-SDK-DEBS=$(notdir $(wildcard src/brcm-sdk/*.deb)) @@ -20,7 +25,7 @@ define build_docker endef ## Rules -.phony : brcm-all mlnx-all +.phony : brcm-all mlnx-all cavm-all src/%: $(MAKE) -C src $(subst src/,,$@) @@ -113,3 +118,5 @@ brcm-all: target/sonic-generic.bin $(addprefix target/,docker-syncd.gz docker-or ## Note: docker-fpm.gz must be the last to build the implicit dependency fpmsyncd mlnx-all: target/sonic-generic.bin $(addprefix target/,docker-syncd-mlnx.gz docker-orchagent-mlnx.gz docker-fpm.gz docker-database.gz) + +cavm-all: target/sonic-generic.bin diff --git a/README.md b/README.md index c257b9334903..89d9f902aa07 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,7 @@ To build NOS installer image and docker images, run command line Supported VENDORs are: - brcm: Broadcom - mlnx: Mellanox +- cavm: Cavium For example, the user name is 'admin' and the password is 'YourPaSsWoRd'. To build all the images for Broadcom platform, use the command: diff --git a/installer/x86_64/platforms/x86_64-accton_as7512_32x-r0 b/installer/x86_64/platforms/x86_64-accton_as7512_32x-r0 new file mode 100644 index 000000000000..14404194ef53 --- /dev/null +++ b/installer/x86_64/platforms/x86_64-accton_as7512_32x-r0 @@ -0,0 +1,3 @@ +CONSOLE_PORT=0x2f8 +CONSOLE_DEV=1 +CONSOLE_SPEED=115200 diff --git a/src/Makefile b/src/Makefile index 09e1152dec48..6b900fc40707 100644 --- a/src/Makefile +++ b/src/Makefile @@ -61,7 +61,7 @@ mlnx/swss_1.0.0_amd64.deb mlnx/intfsyncd mlnx/neighsyncd mlnx/orchagent mlnx/por cp sonic-swss/debian/swss/usr/bin/fpmsyncd . $(addprefix sonic-linux-kernel/,linux-headers-3.16.0-4-amd64_3.16.7-ckt11-2+acs8u2_amd64.deb linux-headers-3.16.0-4-common_3.16.7-ckt11-2+acs8u2_amd64.deb linux-image-3.16.0-4-amd64-dbg_3.16.7-ckt11-2+acs8u2_amd64.deb linux-image-3.16.0-4-amd64_3.16.7-ckt11-2+acs8u2_amd64.deb xen-linux-system-3.16.0-4-amd64_3.16.7-ckt11-2+acs8u2_amd64.deb): - pushd sonic-linux-kernel; sudo ./build.sh; popd + pushd sonic-linux-kernel; sudo ./build.sh $(LINUX_PATCH); popd initramfs-tools/initramfs-tools_0.120_all.deb: pushd initramfs-tools; ./build.sh; popd