Commit 8b1e6400 authored by Andrey V.Kosteltsev's avatar Andrey V.Kosteltsev

Added calculation sha1sum for dm64x-flashtools and newlib tarballs

parent 3f3e72ae
......@@ -16,9 +16,10 @@ git_repo = .git_clone
# here version is equal to tag, but version variable is defined for case
# when tag name contains version as subctring [see /Lunux/dm644x/Makefile]
versions = $(TAGS)
tarballs = $(addsuffix .tar.bz2,$(addprefix $(repo_name)-,$(versions)))
tarballs = $(addsuffix .tar.bz2, $(addprefix $(repo_name)-,$(versions)))
sha1s = $(addsuffix .sha1sum, $(tarballs))
TARGETS = repository_clean
TARGETS = repository_clean $(sha1s)
all: $(TARGETS)
......@@ -45,6 +46,12 @@ repository_clean: $(tarballs)
@echo -e "\n======= Remove $(repo_name).git repository ======="
@rm -rf $(git_repo) $(repo_name)
$(sha1s): %.tar.bz2.sha1sum : %.tar.bz2
@for tarball in $< ; do \
echo -e "\n======= Calculate '$$tarball' sha1sum =======\n" ; \
sha1sum --binary $$tarball > $$tarball.sha1sum ; \
done
downloads_clean:
@rm -rf $(tarballs)
@rm -rf $(tarballs) $(sha1s)
@rm -rf $(git_repo) $(repo_name)
......@@ -16,9 +16,10 @@ git_repo = .git_clone
# here version is equal to tag, but version variable is defined for case
# when tag name contains version as subctring [see /Lunux/dm644x/Makefile]
versions = $(TAGS)
tarballs = $(addsuffix .tar.bz2,$(addprefix $(repo_name)-,$(versions)))
tarballs = $(addsuffix .tar.bz2, $(addprefix $(repo_name)-,$(versions)))
sha1s = $(addsuffix .sha1sum, $(tarballs))
TARGETS = repository_clean
TARGETS = repository_clean $(sha1s)
all: $(TARGETS)
......@@ -45,6 +46,12 @@ repository_clean: $(tarballs)
@echo -e "\n======= Remove $(repo_name).git repository ======="
@rm -rf $(git_repo) $(repo_name)
$(sha1s): %.tar.bz2.sha1sum : %.tar.bz2
@for tarball in $< ; do \
echo -e "\n======= Calculate '$$tarball' sha1sum =======\n" ; \
sha1sum --binary $$tarball > $$tarball.sha1sum ; \
done
downloads_clean:
@rm -rf $(tarballs)
@rm -rf $(tarballs) $(sha1s)
@rm -rf $(git_repo) $(repo_name)
......@@ -16,9 +16,10 @@ git_repo = .git_clone
# here version is equal to tag, but version variable is defined for case
# when tag name contains version as subctring [see /Lunux/dm644x/Makefile]
versions = $(TAGS)
tarballs = $(addsuffix .tar.bz2,$(addprefix $(repo_name)-,$(versions)))
tarballs = $(addsuffix .tar.bz2, $(addprefix $(repo_name)-,$(versions)))
sha1s = $(addsuffix .sha1sum, $(tarballs))
TARGETS = repository_clean
TARGETS = repository_clean $(sha1s)
all: $(TARGETS)
......@@ -45,6 +46,12 @@ repository_clean: $(tarballs)
@echo -e "\n======= Remove $(repo_name).git repository ======="
@rm -rf $(git_repo) $(repo_name)
$(sha1s): %.tar.bz2.sha1sum : %.tar.bz2
@for tarball in $< ; do \
echo -e "\n======= Calculate '$$tarball' sha1sum =======\n" ; \
sha1sum --binary $$tarball > $$tarball.sha1sum ; \
done
downloads_clean:
@rm -rf $(tarballs)
@rm -rf $(tarballs) $(sha1s)
@rm -rf $(git_repo) $(repo_name)
......@@ -16,9 +16,10 @@ git_repo = .git_clone
# here version is equal to tag, but version variable is defined for case
# when tag name contains version as subctring [see /Lunux/dm644x/Makefile]
versions = $(TAGS)
tarballs = $(addsuffix .tar.bz2,$(addprefix $(repo_name)-,$(versions)))
tarballs = $(addsuffix .tar.bz2, $(addprefix $(repo_name)-,$(versions)))
sha1s = $(addsuffix .sha1sum, $(tarballs))
TARGETS = repository_clean
TARGETS = repository_clean $(sha1s)
all: $(TARGETS)
......@@ -45,6 +46,12 @@ repository_clean: $(tarballs)
@echo -e "\n======= Remove $(repo_name).git repository ======="
@rm -rf $(git_repo) $(repo_name)
$(sha1s): %.tar.bz2.sha1sum : %.tar.bz2
@for tarball in $< ; do \
echo -e "\n======= Calculate '$$tarball' sha1sum =======\n" ; \
sha1sum --binary $$tarball > $$tarball.sha1sum ; \
done
downloads_clean:
@rm -rf $(tarballs)
@rm -rf $(tarballs) $(sha1s)
@rm -rf $(git_repo) $(repo_name)
......@@ -15,7 +15,9 @@ tarballs = newlib-1.14.0.tar.gz
tarballs += newlib-1.18.0.tar.gz
tarballs += newlib-1.20.0.tar.gz
all: $(tarballs)
sha1s = $(addsuffix .sha1sum, $(tarballs))
all: $(tarballs) $(sha1s)
.PHONY: downloads_clean
......@@ -25,5 +27,11 @@ $(tarballs):
wget -N $(url)/$$tarball ; \
done
$(sha1s): %.tar.gz.sha1sum : %.tar.gz
@for tarball in $< ; do \
echo -e "\n======= Calculate '$$tarball' sha1sum =======\n" ; \
sha1sum --binary $$tarball > $$tarball.sha1sum ; \
done
downloads_clean:
@rm -rf $(tarballs)
@rm -rf $(tarballs) $(sha1s)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment