* Single image * Fix review comments * Update syncd service. Add HW mgmt to Mellanox single image. * Add single image template for Broadcom platform. SKU should be provided during configure: make configure PLATFORM=broadcom SKU=Force10-S6000 * Add single image template for Cavium platform. SKU should be provided during configure: make configure PLATFORM=cavium SKU=AS7512 * Add description to sonic_debian_extension.j2 file.
41 lines
960 B
Makefile
41 lines
960 B
Makefile
###############################################################################
|
|
## Wrapper for starting make inside sonic-slave container
|
|
###############################################################################
|
|
|
|
SHELL = /bin/bash
|
|
|
|
USER := $(shell id -un)
|
|
PWD := $(shell pwd)
|
|
|
|
MAKEFLAGS += -B
|
|
|
|
DOCKER_RUN := docker run --rm=true --privileged \
|
|
-v $(PWD):/sonic \
|
|
-it sonic-slave-$(USER)
|
|
|
|
DOCKER_BUILD = docker build --no-cache \
|
|
--build-arg user=$(USER) \
|
|
--build-arg uid=$(shell id -u) \
|
|
--build-arg guid=$(shell id -g) \
|
|
-t sonic-slave-$(USER) \
|
|
sonic-slave
|
|
|
|
.PHONY: sonic-slave-build sonic-slave-bash
|
|
|
|
.DEFAULT_GOAL := all
|
|
|
|
%::
|
|
@docker inspect --type image sonic-slave-$(USER) &> /dev/null || $(DOCKER_BUILD)
|
|
@$(DOCKER_RUN) make \
|
|
-C sonic \
|
|
-f slave.mk \
|
|
PLATFORM=$(PLATFORM) \
|
|
SKU=$(SKU) \
|
|
$@
|
|
|
|
sonic-slave-build :
|
|
@$(DOCKER_BUILD)
|
|
|
|
sonic-slave-bash :
|
|
@$(DOCKER_RUN) bash
|