Sources

The Tree of Radix and Third Party Sources

1388 Commits   0 Branches   11 Tags
author: kx <kx@radix.pro> 2021-06-29 03:01:48 +0300 committer: kx <kx@radix.pro> 2021-06-29 03:01:48 +0300 commit: b659a46460f2e12d171744f273c1b2b0e2342813 parent: a16e72f4f0b73b9eb1a53ab096490ff5eff05ec7
Commit Summary:
Trusted Firmware A (TF-A) v2.5
Diffstat:
2 files changed, 50 insertions, 1 deletion
diff --git a/U-Boot/ATF/Makefile b/U-Boot/ATF/Makefile
new file mode 100644
index 0000000..562474b
--- /dev/null
+++ b/U-Boot/ATF/Makefile
@@ -0,0 +1,62 @@
+#
+# Project Home:
+# ============
+# https://developer.trustedfirmware.org/dashboard/view/6/
+#
+# Clone:
+# =====
+#   git clone https://github.com/ARM-software/arm-trusted-firmware.git
+#
+
+url        = https://github.com/ARM-software
+
+repo_name  = arm-trusted-firmware
+pkg_name   = arm-trusted-firmware
+suffix     = tar.xz
+
+versions   = 2.5
+
+# List of tags to be extracted:
+TAGS       = $(addprefix v, $(versions))
+
+git_repo   = .git_clone
+tarballs   = $(addsuffix .tar.xz, $(addprefix $(pkg_name)-, $(versions)))
+sha1s      = $(addsuffix .sha1sum, $(tarballs))
+
+TARGETS = repository_clean
+
+
+all: $(TARGETS)
+
+.PHONY: downloads_clean repository_clean
+
+$(git_repo):
+	@echo -e "\n======= Clone $(repo_name).git repository =======\n"
+	@rm -rf $(repo_name)
+	@git clone $(url)/$(repo_name).git $(repo_name)
+	@touch $@
+
+$(tarballs): $(git_repo)
+	@for version in $(versions) ; do \
+	  tag=v`echo $$version` ; \
+	  if [ ! -f $(repo_name)-$$version.$(suffix) ]; then \
+	    echo -e "\n======= Creating '$(repo_name)-$$version.$(suffix)' snapshot =======" ; \
+	    ( cd $(repo_name) && \
+	      git archive --format=tar --prefix=$(pkg_name)-$$version/ $$tag | \
+	      xz >../$(pkg_name)-$$version.$(suffix) ) ; \
+	  fi ; \
+	done
+
+$(sha1s): %.tar.xz.sha1sum : %.tar.xz
+	@for tarball in $< ; do \
+	  echo -e "\n======= Calculation the '$$tarball' sha1sum =======" ; \
+	  sha1sum --binary $$tarball > $$tarball.sha1sum ; \
+	done
+
+repository_clean: $(sha1s)
+	@echo -e "\n======= Remove cloned $(repo_name).git repository =======\n"
+	@rm -rf $(git_repo) $(repo_name)
+
+downloads_clean:
+	@rm -rf $(tarballs) $(sha1s)
+	@rm -rf $(git_repo) $(repo_name)
diff --git a/U-Boot/Makefile b/U-Boot/Makefile
index c8f0b6e..33ee5b7 100644
--- a/U-Boot/Makefile
+++ b/U-Boot/Makefile
@@ -4,7 +4,8 @@
 # $ tree -fid .
 #
 
-SUBDIRS := Allwinner   \
+SUBDIRS := ATF         \
+           Allwinner   \
            Amlogic     \
            Baikal      \
            Boundary    \