55a707586b
* Support SONiC reproduceable build for deb/py2/py3/web * Remove j2 files * Fix bug * Fix some issues 1. Change some code format issues 2. Fix curl calling wget command, pip2 calling pip3 issue 3. Fix wget/curl downloading multiple urls issue * Fix some code format issue * Fix bug * Fix bug * Fix command path hard code in build info scripts issue * Add debian package sonic-build-tools * Fix auto debian package removed issue * Change build debian package name, and change the folder * Collect the pre-versions and post-versions * Change to use debian:buster * Remove apt-mark and improve code * Remove set_build_hooks * Change docker trusted gpg files * Fix docker build COPY directory name issue * Move the trusted gpg files into the sonic-build-hooks package
45 lines
997 B
Makefile
45 lines
997 B
Makefile
# SONiC make file
|
|
|
|
NOJESSIE ?= 0
|
|
NOSTRETCH ?= 0
|
|
|
|
%::
|
|
@echo "+++ --- Making $@ --- +++"
|
|
ifeq ($(NOJESSIE), 0)
|
|
EXTRA_DOCKER_TARGETS=$(notdir $@) make -f Makefile.work jessie
|
|
endif
|
|
ifeq ($(NOSTRETCH), 0)
|
|
EXTRA_DOCKER_TARGETS=$(notdir $@) BLDENV=stretch make -f Makefile.work stretch
|
|
endif
|
|
BLDENV=buster make -f Makefile.work $@
|
|
|
|
jessie:
|
|
@echo "+++ Making $@ +++"
|
|
ifeq ($(NOJESSIE), 0)
|
|
make -f Makefile.work jessie
|
|
endif
|
|
|
|
stretch:
|
|
@echo "+++ Making $@ +++"
|
|
ifeq ($(NOSTRETCH), 0)
|
|
make -f Makefile.work stretch
|
|
endif
|
|
|
|
init:
|
|
@echo "+++ Making $@ +++"
|
|
make -f Makefile.work $@
|
|
|
|
clean configure reset showtag sonic-slave-build sonic-slave-bash :
|
|
@echo "+++ Making $@ +++"
|
|
ifeq ($(NOJESSIE), 0)
|
|
make -f Makefile.work $@
|
|
endif
|
|
ifeq ($(NOSTRETCH), 0)
|
|
BLDENV=stretch make -f Makefile.work $@
|
|
endif
|
|
BLDENV=buster make -f Makefile.work $@
|
|
|
|
# Freeze the versions, see more detail options: scripts/versions_manager.py freeze -h
|
|
freeze:
|
|
@scripts/versions_manager.py freeze $(FREEZE_VERSION_OPTIONS)
|