Martin L Roth has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/74480 )
Change subject: payloads: Add target to download depthcharge source ......................................................................
payloads: Add target to download depthcharge source
This lets the user manually download the source for a payload before running the full make. This can be used to apply patches against a specific version, or to download the payload for offline use later. This can also be used as a part of the build system to download the payloads for testing before the coreboot build is started (and can no longer access the internet).
If the payload is currently specified as a part of the .config, the tag will be checked out after the source tree is fetched. Otherwise the source for depthcharge will be downloaded and no tag will be checked out.
If this seems useful, I can add it to the rest of the payloads, and add a download-all-payloads target or something as well.
Signed-off-by: Martin Roth gaumless@gmail.com Change-Id: I60bf04bbadccc1a0692958b17e2b66b7ad47a396 --- M payloads/external/Makefile.inc M payloads/external/depthcharge/Makefile 2 files changed, 39 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/80/74480/1
diff --git a/payloads/external/Makefile.inc b/payloads/external/Makefile.inc index effab43..1683dd2 100644 --- a/payloads/external/Makefile.inc +++ b/payloads/external/Makefile.inc @@ -141,6 +141,13 @@ endif
# Depthcharge +download-depthcharge: + $(MAKE) -C payloads/external/depthcharge download_tag \ + MFLAGS= MAKEFLAGS= \ + DEPTHCHARGE_MASTER=$(CONFIG_DEPTHCHARGE_MASTER) \ + DEPTHCHARGE_STABLE=$(CONFIG_DEPTHCHARGE_STABLE) \ + DEPTHCHARGE_REVISION=$(CONFIG_DEPTHCHARGE_REVISION) \ + DEPTHCHARGE_REVISION_ID=$(CONFIG_DEPTHCHARGE_REVISION_ID)
payloads/external/depthcharge/depthcharge/build/depthcharge.elf depthcharge: $(DOTCONFIG) $(CBFSTOOL) $(MAKE) -C payloads/external/depthcharge \ diff --git a/payloads/external/depthcharge/Makefile b/payloads/external/depthcharge/Makefile index 687e9f0..5dd10e2 100644 --- a/payloads/external/depthcharge/Makefile +++ b/payloads/external/depthcharge/Makefile @@ -62,6 +62,12 @@ touch $(project_dir)/.version_$(TAG-y) endif
+download_tag: fetch +ifneq ($(TAG-y),) + $(MAKE) $(project_dir)/.version_$(TAG-y) +endif + @echo "$(project_name) downloaded." + $(libpayload_install_dir): $(project_dir) test -f $(libpayload_config) || \ (echo "Error: $(libpayload_config) is not present" && \ @@ -104,3 +110,4 @@ echo "$(project_git_repo) $(project_dir)"
.PHONY: checkout config build clean distclean clone fetch print-repo-info +.PHONY: download_tag