-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Platform/cisco-8000 module for sonic-buildimage #8172
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
Changes from 5 commits
27a2838
109cc7b
f7be554
4e1059e
0c55366
48401e7
aaf00a4
e4e7e5e
a0ee24e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,11 @@ | |
NOJESSIE ?= 1 | ||
NOSTRETCH ?= 0 | ||
|
||
PLATFORM_PATH := platform/$(if $(PLATFORM),$(PLATFORM),$(CONFIGURED_PLATFORM)) | ||
PLATFORM_CHECKOUT := platform/checkout | ||
PLATFORM_CHECKOUT_FILE := $(PLATFORM_CHECKOUT)/$(PLATFORM).ini | ||
PLATFORM_CHECKOUT_CMD := $(shell if [ -f $(PLATFORM_CHECKOUT_FILE) ]; then PLATFORM_PATH=$(PLATFORM_PATH) j2 $(PLATFORM_CHECKOUT)/template.j2 $(PLATFORM_CHECKOUT_FILE); fi) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. To support azp, please allow the step can be skipped when the repo has already checked out. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
@xumia would the change in There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This step will automatically be skipped if the |
||
|
||
%:: | ||
@echo "+++ --- Making $@ --- +++" | ||
ifeq ($(NOJESSIE), 0) | ||
|
@@ -29,15 +34,25 @@ init: | |
@echo "+++ Making $@ +++" | ||
make -f Makefile.work $@ | ||
|
||
clean configure reset showtag sonic-slave-build sonic-slave-bash : | ||
# | ||
# Function to invoke target $@ in Makefile.work with proper BLDENV | ||
# | ||
define make_work | ||
@echo "+++ Making $@ +++" | ||
ifeq ($(NOJESSIE), 0) | ||
make -f Makefile.work $@ | ||
endif | ||
ifeq ($(NOSTRETCH), 0) | ||
BLDENV=stretch make -f Makefile.work $@ | ||
endif | ||
$(if $(NOJESSIE),, make -f Makefile.work $@) | ||
$(if $(NOSTRETCH),, BLDENV=stretch make -f Makefile.work $@) | ||
xumia marked this conversation as resolved.
Show resolved
Hide resolved
|
||
BLDENV=buster make -f Makefile.work $@ | ||
endef | ||
|
||
$(PLATFORM_PATH): | ||
@echo "+++ Checking out $@ +++" | ||
$(PLATFORM_CHECKOUT_CMD) | ||
|
||
configure : $(PLATFORM_PATH) | ||
$(call make_work, $@) | ||
|
||
clean reset showtag sonic-slave-build sonic-slave-bash : | ||
$(call make_work, $@) | ||
|
||
# Freeze the versions, see more detail options: scripts/versions_manager.py freeze -h | ||
freeze: | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[module] | ||
[email protected]:Cisco-8000-sonic/platform-cisco-8000.git | ||
ref=v0.1 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{% set path = env('PLATFORM_PATH') %} | ||
{% if module.ref is defined %} | ||
xumia marked this conversation as resolved.
Show resolved
Hide resolved
|
||
git clone {{ module.repo }} {{ path }} && cd {{ path }} && git checkout {{ module.ref }} && git submodule update --init --recursive | ||
{% else %} | ||
git clone {{ module.repo }} {{ path }} && cd {{ path }} && git submodule update --init --recursive | ||
{% endif %} |
Uh oh!
There was an error while loading. Please reload this page.