summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkx <kx@radix.pro>2017-03-01 09:50:41 +0300
committerkx <kx@radix.pro>2017-03-01 09:50:41 +0300
commite7317a953eb67771eda07dbde89c0dfe760274b9 (patch)
tree45e451da21818199b96bcf7291ce651ce573a48d
parent9bbc570f5249b0797c2a411bdb3aef34336c8dff (diff)
downloadsources-e7317a953eb67771eda07dbde89c0dfe760274b9.tar.xz
Hardkernel U-Boot for ODROID-C2
-rw-r--r--Linux/Hardkernel/S905/Makefile1
-rw-r--r--U-Boot/Hardkernel/Makefile3
-rw-r--r--U-Boot/Hardkernel/S905/Makefile67
3 files changed, 70 insertions, 1 deletions
diff --git a/Linux/Hardkernel/S905/Makefile b/Linux/Hardkernel/S905/Makefile
index b5ce4b6..7faca80 100644
--- a/Linux/Hardkernel/S905/Makefile
+++ b/Linux/Hardkernel/S905/Makefile
@@ -16,6 +16,7 @@ repo_name = linux
# hash | snapshot | date
# ----------------------------------------+-----------+--------
revisions = b22dbcc9173919eaa4bbdeb144abc062f2d5e0fd:aml-3.14.79:20170131
+revisions += 66d564944a60b4aa0ec991eb119226c0322ea0c1:aml-3.14.79:20170227
#
# Default Linux config file name:
diff --git a/U-Boot/Hardkernel/Makefile b/U-Boot/Hardkernel/Makefile
index 148a9be..c56df36 100644
--- a/U-Boot/Hardkernel/Makefile
+++ b/U-Boot/Hardkernel/Makefile
@@ -4,7 +4,8 @@
# $ tree -fid .
#
-SUBDIRS := S805
+SUBDIRS := S805 \
+ S905
all-recursive downloads_clean-recursive:
diff --git a/U-Boot/Hardkernel/S905/Makefile b/U-Boot/Hardkernel/S905/Makefile
new file mode 100644
index 0000000..3e1e03d
--- /dev/null
+++ b/U-Boot/Hardkernel/S905/Makefile
@@ -0,0 +1,67 @@
+
+#
+# Amlogic S905 u-boot: https://github.com/hardkernel/u-boot.git
+#
+
+url = git://radix.pro/Hardkernel/u-boot
+
+repo_name = u-boot
+
+#
+# List of tags to be extracted:
+# ============================
+#
+# Revisions from 'odroidc2-v2015.01' branch. Supports Amlogic SS05 SoCs.
+#
+# hash | | denx | date
+# ----------------------------------------+---+-------+--------
+revisions = 3eb97d48991decdd5dea537c8c2325cbb0611089:aml-2015.01:20170210
+
+git_repo = .git_clone
+
+versions = $(foreach tag, $(revisions), \
+ $(addprefix $(shell echo $(tag) | cut -f 2 -d ':')-, \
+ $(shell echo $(tag) | cut -f 3 -d ':')))
+
+tarballs = $(addsuffix .tar.xz, $(addprefix $(repo_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 revision in $(revisions) ; do \
+ hash=`echo $$revision | cut -f 1 -d ':'` ; \
+ version=`echo $$revision | cut -f 2 -d ':'` ; \
+ date=`echo $$revision | cut -f 3 -d ':'` ; \
+ if [ ! -f $(repo_name)-$$version-$$date.tar.xz ]; then \
+ echo -e "\n======= Creating '$(repo_name)-$$version-$$date.tar.xz' snapshot =======" ; \
+ ( cd $(repo_name) && \
+ git archive --format=tar --prefix=$(repo_name)-$$version-$$date/ $$hash | \
+ xz >../$(repo_name)-$$version-$$date.tar.xz ) ; \
+ 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)