Sources

The Tree of Radix and Third Party Sources

1388 Commits   0 Branches   11 Tags
author: kx <kx@radix.pro> 2013-05-21 18:15:13 +0400 committer: kx <kx@radix.pro> 2013-05-21 18:15:13 +0400 commit: ba0a42bb4acc94c0170c6be88733d1bd4e022035 parent: 484c6d9dc505cb2f4195bbb663e8cebed3ebc957
Commit Summary:
Added Allwinner A1x native u-boot.
Diffstat:
2 files changed, 55 insertions, 0 deletions
diff --git a/U-Boot/sunxi/Makefile b/U-Boot/sunxi/Makefile
new file mode 100644
index 0000000..5e559f3
--- /dev/null
+++ b/U-Boot/sunxi/Makefile
@@ -0,0 +1,61 @@
+
+#
+# Allwinner A1x native u-boot:
+# ===========================
+#   https://github.com/linux-sunxi/u-boot-sunxi/wiki
+#
+# clone:
+#   $ git clone https://github.com/linux-sunxi/u-boot-sunxi.git
+#
+
+url        = git://radix.pro
+
+repo_name  = u-boot-sunxi
+
+#
+# List of tags to be extracted:
+#
+TAGS       = v2013.04-sunxi
+
+
+git_repo   = .git_clone
+versions   = $(foreach tag, $(TAGS), $(shell echo $(tag) | sed 's/\(^[a-zA-Z]*\)\([0-9][0-9][0-9][0-9][.0-9]*[-a-zA-Z]*\)\(.*\)/\2/'))
+tarballs   = $(addsuffix .tar.bz2, $(addprefix u-boot-, $(versions)))
+sha1s      = $(addsuffix .sha1sum, $(tarballs))
+
+TARGETS = repository_clean
+
+all: $(TARGETS)
+
+.PHONY: downloads_clean repository_clean
+
+$(git_repo):
+	@echo -e "\n======= Clone Allwinner A1x $(repo_name).git repository =======\n"
+	@rm -rf $(repo_name)
+	@git clone $(url)/$(repo_name).git $(repo_name)
+	@touch $@
+
+$(tarballs): $(git_repo)
+	@for tag in $(TAGS) ; do \
+	  version=`echo $$tag | sed 's/\(^[a-zA-Z]*\)\([0-9][0-9][0-9][0-9][.0-9]*[-a-zA-Z]*\)\(.*\)/\2/'` ; \
+	  if [ ! -f u-boot-$$version.tar.bz2 ]; then \
+	    echo -e "\n======= Creating 'u-boot-$$version.tar.bz2' snapshot =======" ; \
+	    ( cd $(repo_name) && \
+	      git archive --format=tar --prefix=u-boot-$$version/ $$tag | \
+	      bzip2 >../u-boot-$$version.tar.bz2 ) ; \
+	  fi ; \
+	done
+
+$(sha1s): %.tar.bz2.sha1sum : %.tar.bz2
+	@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/sunxi/u-boot-sunxi.txt b/U-Boot/sunxi/u-boot-sunxi.txt
new file mode 100644
index 0000000..75cad5c
--- /dev/null
+++ b/U-Boot/sunxi/u-boot-sunxi.txt
@@ -0,0 +1,11 @@
+
+u-boot for Allwinner A10 & A13:
+==============================
+
+Clone:
+=====
+   git clone https://github.com/linux-sunxi/u-boot-sunxi.git
+
+WiKi:
+====
+   https://github.com/linux-sunxi/u-boot-sunxi/wiki