Skip to content

Commit

Permalink
Introduced Cavium target
Browse files Browse the repository at this point in the history
  • Loading branch information
Rostyslav Spolyak committed Sep 14, 2016
1 parent cc7f150 commit c34f336
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
9 changes: 8 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand All @@ -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/,,$@)
Expand Down Expand Up @@ -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
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down
3 changes: 3 additions & 0 deletions installer/x86_64/platforms/x86_64-accton_as7512_32x-r0
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
CONSOLE_PORT=0x2f8
CONSOLE_DEV=1
CONSOLE_SPEED=115200
2 changes: 1 addition & 1 deletion src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit c34f336

Please sign in to comment.