-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Platform/cisco-8000 module for sonic-buildimage (#8172)
Why I did it Update Makefile, so it does the following: For a given platform, verify if platform/checkout/.ini exists and hence run the platform/checkout/template.j2. This allows platform code to be checked out during the 'make configure' stage. How I did it git clone git@github.com:Azure/sonic-buildimage.git mkdir platform/cisco-8000 make init make configure PLATFORM=cisco-8000 make all
- Loading branch information
1 parent
402b073
commit 8093ab2
Showing
4 changed files
with
57 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[module] | ||
repo=git@github.com:Cisco-8000-sonic/platform-cisco-8000.git | ||
ref=v0.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{% set path = env('PLATFORM_PATH') %} | ||
if [ ! -d {{ path }} ]; then git clone {{ module.repo }} {{ path }}; fi; | ||
if [ -d {{ path }}/.git ]; then cd {{ path }} && | ||
|
||
{% if module.ref is defined %} | ||
git checkout {{ module.ref }} && git submodule update --init --recursive; | ||
{% else %} | ||
git submodule update --init --recursive; | ||
{% endif %} | ||
|
||
else echo "{{ path }}/.git not found"; exit 1; fi |
8093ab2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add initialization of NOBUSTER and NOBULLSEYE in Makefile to corresponding value. Otherwise if we set NOSTRECH to 1, make configure PLATFORM=XXX would not work.