summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--payloads/external/Makefile.mk2
-rw-r--r--payloads/external/depthcharge/Kconfig12
-rw-r--r--payloads/external/depthcharge/Makefile4
3 files changed, 16 insertions, 2 deletions
diff --git a/payloads/external/Makefile.mk b/payloads/external/Makefile.mk
index c87f140da4..f1dc5cc4ad 100644
--- a/payloads/external/Makefile.mk
+++ b/payloads/external/Makefile.mk
@@ -146,6 +146,8 @@ payloads/external/depthcharge/depthcharge/build/depthcharge.elf depthcharge: $(D
$(MAKE) -C payloads/external/depthcharge \
BOARD=$(BOARD) \
MFLAGS= MAKEFLAGS= \
+ DEPTHCHARGE_REPO=$(CONFIG_DEPTHCHARGE_REPO) \
+ DEPTHCHARGE_BRANCH=$(CONFIG_DEPTHCHARGE_BRANCH) \
DEPTHCHARGE_MASTER=$(CONFIG_DEPTHCHARGE_MASTER) \
DEPTHCHARGE_STABLE=$(CONFIG_DEPTHCHARGE_STABLE) \
DEPTHCHARGE_REVISION=$(CONFIG_DEPTHCHARGE_REVISION) \
diff --git a/payloads/external/depthcharge/Kconfig b/payloads/external/depthcharge/Kconfig
index c531aa05b8..86b20abcaf 100644
--- a/payloads/external/depthcharge/Kconfig
+++ b/payloads/external/depthcharge/Kconfig
@@ -26,6 +26,18 @@ config DEPTHCHARGE_REVISION
endchoice
+config DEPTHCHARGE_REPO
+ string "depthcharge repo site"
+ default "https://chromium.googlesource.com/chromiumos/platform/depthcharge"
+ help
+ repo site
+
+config DEPTHCHARGE_BRANCH
+ string "branch from the depthcharge repo"
+ default "origin/main"
+ help
+ repo branch name
+
config DEPTHCHARGE_REVISION_ID
string "Insert a commit's SHA-1 or a branch name"
depends on DEPTHCHARGE_REVISION
diff --git a/payloads/external/depthcharge/Makefile b/payloads/external/depthcharge/Makefile
index e3e2303faf..af303da872 100644
--- a/payloads/external/depthcharge/Makefile
+++ b/payloads/external/depthcharge/Makefile
@@ -3,7 +3,7 @@ STABLE_COMMIT_ID=c48613a71c1ee29295b184c51fe5dadf71b543c4
project_name=depthcharge
project_dir=$(CURDIR)/depthcharge
-project_git_repo=https://chromium.googlesource.com/chromiumos/platform/depthcharge
+project_git_repo=$(DEPTHCHARGE_REPO)
project_config_file=$(project_dir)/.config
output_dir=$(project_dir)/build
libpayload_dir=$(abspath $(CURDIR)/../../libpayload)
@@ -13,7 +13,7 @@ coreboot_build_dir=$(abspath $(CURDIR)/../../../build)
VBOOT_SOURCE ?= $(abspath $(CURDIR)/../../../3rdparty/vboot)
EC_HEADERS ?= $(abspath $(CURDIR)/../../../3rdparty/chromeec/include)
-TAG-$(DEPTHCHARGE_MASTER)=origin/main
+TAG-$(DEPTHCHARGE_MASTER)=$(DEPTHCHARGE_BRANCH)
TAG-$(DEPTHCHARGE_STABLE)=$(STABLE_COMMIT_ID)
TAG-$(DEPTHCHARGE_REVISION)=$(DEPTHCHARGE_REVISION_ID)