Skip to content

Commit

Permalink
add ability to do check out a commit id
Browse files Browse the repository at this point in the history
  • Loading branch information
VenkatCisco committed Jun 23, 2021
1 parent 109cc7b commit f7be554
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions platform/cisco-8000/rules.mk
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
##############################################################
## Top level platform rules.mk
##############################################################

CISCO_PLATFORM_BRANCH := cisco-8000/master
CISCO_PLATFORM_URL := https://github.com/Cisco-8000-sonic/platform-cisco-8000.git
CISCO_PLATFORM_URL := https://$(GITUSER):$(GITTOKEN)@Cisco-sonic-8000/platform-cisco-8000.git
CISCO_PLATFORM_SRC=$(PLATFORM_PATH)/src
CISCO_8000_SHA1 := f224715

$(shell if [ ! -d $(CISCO_PLATFORM_SRC) ]; then git clone -b $(CISCO_PLATFORM_BRANCH) $(CISCO_PLATFORM_URL) $(CISCO_PLATFORM_SRC); fi)
$(shell if [ -d $(CISCO_PLATFORM_SRC) ]; then cd $(CISCO_PLATFORM_SRC) && git checkout $(CISCO_8000_SHA1))
$(shell if [ -d $(CISCO_PLATFORM_SRC) ]; then $(CISCO_PLATFORM_SRC)/platform_setup.sh; fi)

include $(CISCO_PLATFORM_SRC)/rules.dep

0 comments on commit f7be554

Please sign in to comment.