Commit a47d1035 authored by Andrey V.Kosteltsev's avatar Andrey V.Kosteltsev

Added sha1sum calculation for Linux/{dm644x,mips,omap} tarballs

parent 8b1e6400
......@@ -20,9 +20,10 @@ TAGS += v3.8-davinci2
_defconfig = davinci_all_defconfig
git_repo = .git_clone
versions = $(foreach tag,$(TAGS),$(shell echo $(tag) | sed 's/\(^[a-zA-Z]*\)\([0-9][.0-9]*[.0-9]*\)\(.*\)/\2/'))
tarballs = $(addsuffix .tar.bz2,$(addprefix linux-,$(versions)))
defconfigs = $(addsuffix .defconfig,$(addprefix linux-,$(versions)))
versions = $(foreach tag, $(TAGS), $(shell echo $(tag) | sed 's/\(^[a-zA-Z]*\)\([0-9][.0-9]*[.0-9]*\)\(.*\)/\2/'))
tarballs = $(addsuffix .tar.bz2, $(addprefix linux-, $(versions)))
defconfigs = $(addsuffix .defconfig, $(addprefix linux-, $(versions)))
sha1s = $(addsuffix .sha1sum, $(tarballs))
TARGETS = repository_clean
......@@ -31,7 +32,7 @@ all: $(TARGETS)
.PHONY: downloads_clean repository_clean
$(git_repo):
@echo -e "\n======= Clone Kevin Hilman $(repo_name).git repository ======="
@echo -e "\n======= Clone Kevin Hilman $(repo_name).git repository =======\n"
@rm -rf $(repo_name)
@git clone $(url)/$(repo_name).git $(repo_name)
@touch $@
......@@ -57,10 +58,16 @@ $(defconfigs): %.defconfig: %.tar.bz2
rm -rf linux-$$version ) ; \
done
repository_clean: $(defconfigs)
@echo -e "\n======= Remove cloned $(repo_name).git repository ======="
$(sha1s): %.tar.bz2.sha1sum : %.tar.bz2
@for tarball in $< ; do \
echo -e "\n======= Calculate '$$tarball' sha1sum =======" ; \
sha1sum --binary $$tarball > $$tarball.sha1sum ; \
done
repository_clean: $(defconfigs) $(sha1s)
@echo -e "\n======= Remove cloned $(repo_name).git repository =======\n"
@rm -rf $(git_repo) $(repo_name)
downloads_clean:
@rm -rf $(tarballs) $(defconfigs)
@rm -rf $(tarballs) $(defconfigs) $(sha1s)
@rm -rf $(git_repo) $(repo_name)
......@@ -22,9 +22,10 @@ TAGS += linux-3.8.5
_defconfig = bcm47xx_defconfig
git_repo = .git_clone
versions = $(foreach tag,$(TAGS),$(shell echo $(tag) | sed 's/\(^[a-zA-Z-]*\)\([0-9][.0-9]*[.0-9]*\)\(.*\)/\2/'))
tarballs = $(addsuffix .tar.bz2,$(addprefix linux-,$(versions)))
defconfigs = $(addsuffix .defconfig,$(addprefix linux-,$(versions)))
versions = $(foreach tag, $(TAGS), $(shell echo $(tag) | sed 's/\(^[a-zA-Z-]*\)\([0-9][.0-9]*[.0-9]*\)\(.*\)/\2/'))
tarballs = $(addsuffix .tar.bz2, $(addprefix linux-, $(versions)))
defconfigs = $(addsuffix .defconfig, $(addprefix linux-, $(versions)))
sha1s = $(addsuffix .sha1sum, $(tarballs))
TARGETS = repository_clean
......@@ -33,7 +34,7 @@ all: $(TARGETS)
.PHONY: downloads_clean repository_clean
$(git_repo):
@echo -e "\n======= Clone $(repo_name).git repository ======="
@echo -e "\n======= Clone $(repo_name).git repository =======\n"
@rm -rf $(repo_name)
@if [ "$(url)" = 'git://radix.pro' ]; then \
git clone $(url)/$(repo_name).git $(repo_name) ; \
......@@ -63,10 +64,16 @@ $(defconfigs): %.defconfig: %.tar.bz2
rm -rf linux-$$version ) ; \
done
repository_clean: $(defconfigs)
@echo -e "\n======= Remove cloned $(repo_name).git repository ======="
$(sha1s): %.tar.bz2.sha1sum : %.tar.bz2
@for tarball in $< ; do \
echo -e "\n======= Calculate '$$tarball' sha1sum =======" ; \
sha1sum --binary $$tarball > $$tarball.sha1sum ; \
done
repository_clean: $(defconfigs) $(sha1s)
@echo -e "\n======= Remove cloned $(repo_name).git repository =======\n"
@rm -rf $(git_repo) $(repo_name)
downloads_clean:
@rm -rf $(tarballs) $(defconfigs)
@rm -rf $(tarballs) $(defconfigs) $(sha1s)
@rm -rf $(git_repo) $(repo_name)
......@@ -21,9 +21,10 @@ TAGS += v3.8.3
_defconfig = omap_4430sdp_defconfig
git_repo = .git_clone
versions = $(foreach tag,$(TAGS),$(shell echo $(tag) | sed 's/\(^[a-zA-Z]*\)\([0-9][.0-9]*[.0-9]*\)\(.*\)/\2/'))
tarballs = $(addsuffix .tar.bz2,$(addprefix linux-,$(versions)))
defconfigs = $(addsuffix .defconfig,$(addprefix linux-,$(versions)))
versions = $(foreach tag, $(TAGS), $(shell echo $(tag) | sed 's/\(^[a-zA-Z]*\)\([0-9][.0-9]*[.0-9]*\)\(.*\)/\2/'))
tarballs = $(addsuffix .tar.bz2, $(addprefix linux-, $(versions)))
defconfigs = $(addsuffix .defconfig, $(addprefix linux-, $(versions)))
sha1s = $(addsuffix .sha1sum, $(tarballs))
TARGETS = repository_clean
......@@ -32,7 +33,7 @@ all: $(TARGETS)
.PHONY: downloads_clean repository_clean
$(git_repo):
@echo -e "\n======= Clone $(repo_name).git repository ======="
@echo -e "\n======= Clone $(repo_name).git repository =======\n"
@rm -rf $(repo_name)
@git clone $(url)/$(repo_name).git $(repo_name)
@touch $@
......@@ -63,10 +64,16 @@ $(defconfigs): %.defconfig: %.tar.bz2
rm -rf linux-$$version ) ; \
done
repository_clean: $(defconfigs)
@echo -e "\n======= Remove cloned $(repo_name).git repository ======="
$(sha1s): %.tar.bz2.sha1sum : %.tar.bz2
@for tarball in $< ; do \
echo -e "\n======= Calculate '$$tarball' sha1sum =======" ; \
sha1sum --binary $$tarball > $$tarball.sha1sum ; \
done
repository_clean: $(defconfigs) $(sha1s)
@echo -e "\n======= Remove cloned $(repo_name).git repository =======\n"
@rm -rf $(git_repo) $(repo_name)
downloads_clean:
@rm -rf $(tarballs) $(defconfigs)
@rm -rf $(tarballs) $(defconfigs) $(sha1s)
@rm -rf $(git_repo) $(repo_name)
......@@ -19,14 +19,14 @@ versions = $(TAGS)
tarballs = $(addsuffix .tar.bz2, $(addprefix $(repo_name)-,$(versions)))
sha1s = $(addsuffix .sha1sum, $(tarballs))
TARGETS = repository_clean $(sha1s)
TARGETS = repository_clean
all: $(TARGETS)
.PHONY: downloads_clean repository_clean
$(git_repo):
@echo -e "\n======= Clone $(repo_name).git repository ======="
@echo -e "\n======= Clone $(repo_name).git repository =======\n"
@rm -rf $(repo_name)
@git clone $(url)/$(repo_name).git $(repo_name)
@touch $@
......@@ -42,16 +42,16 @@ $(tarballs): $(git_repo)
fi ; \
done
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" ; \
echo -e "\n======= Calculate '$$tarball' sha1sum =======" ; \
sha1sum --binary $$tarball > $$tarball.sha1sum ; \
done
repository_clean: $(tarballs) $(sha1s)
@echo -e "\n======= Remove $(repo_name).git repository =======\n"
@rm -rf $(git_repo) $(repo_name)
downloads_clean:
@rm -rf $(tarballs) $(sha1s)
@rm -rf $(git_repo) $(repo_name)
......@@ -19,14 +19,14 @@ versions = $(TAGS)
tarballs = $(addsuffix .tar.bz2, $(addprefix $(repo_name)-,$(versions)))
sha1s = $(addsuffix .sha1sum, $(tarballs))
TARGETS = repository_clean $(sha1s)
TARGETS = repository_clean
all: $(TARGETS)
.PHONY: downloads_clean repository_clean
$(git_repo):
@echo -e "\n======= Clone $(repo_name).git repository ======="
@echo -e "\n======= Clone $(repo_name).git repository =======\n"
@rm -rf $(repo_name)
@git clone $(url)/$(repo_name).git $(repo_name)
@touch $@
......@@ -42,16 +42,16 @@ $(tarballs): $(git_repo)
fi ; \
done
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" ; \
echo -e "\n======= Calculate '$$tarball' sha1sum =======" ; \
sha1sum --binary $$tarball > $$tarball.sha1sum ; \
done
repository_clean: $(tarballs) $(sha1s)
@echo -e "\n======= Remove $(repo_name).git repository =======\n"
@rm -rf $(git_repo) $(repo_name)
downloads_clean:
@rm -rf $(tarballs) $(sha1s)
@rm -rf $(git_repo) $(repo_name)
......@@ -19,14 +19,14 @@ versions = $(TAGS)
tarballs = $(addsuffix .tar.bz2, $(addprefix $(repo_name)-,$(versions)))
sha1s = $(addsuffix .sha1sum, $(tarballs))
TARGETS = repository_clean $(sha1s)
TARGETS = repository_clean
all: $(TARGETS)
.PHONY: downloads_clean repository_clean
$(git_repo):
@echo -e "\n======= Clone $(repo_name).git repository ======="
@echo -e "\n======= Clone $(repo_name).git repository =======\n"
@rm -rf $(repo_name)
@git clone $(url)/$(repo_name).git $(repo_name)
@touch $@
......@@ -42,16 +42,16 @@ $(tarballs): $(git_repo)
fi ; \
done
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" ; \
echo -e "\n======= Calculate '$$tarball' sha1sum =======" ; \
sha1sum --binary $$tarball > $$tarball.sha1sum ; \
done
repository_clean: $(tarballs) $(sha1s)
@echo -e "\n======= Remove $(repo_name).git repository =======\n"
@rm -rf $(git_repo) $(repo_name)
downloads_clean:
@rm -rf $(tarballs) $(sha1s)
@rm -rf $(git_repo) $(repo_name)
......@@ -19,14 +19,14 @@ versions = $(TAGS)
tarballs = $(addsuffix .tar.bz2, $(addprefix $(repo_name)-,$(versions)))
sha1s = $(addsuffix .sha1sum, $(tarballs))
TARGETS = repository_clean $(sha1s)
TARGETS = repository_clean
all: $(TARGETS)
.PHONY: downloads_clean
$(git_repo):
@echo -e "\n======= Clone $(repo_name).git repository ======="
@echo -e "\n======= Clone $(repo_name).git repository =======\n"
@rm -rf $(repo_name)
@git clone $(url)/$(repo_name).git $(repo_name)
@touch $@
......@@ -42,16 +42,16 @@ $(tarballs): $(git_repo)
fi ; \
done
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" ; \
echo -e "\n======= Calculate '$$tarball' sha1sum =======" ; \
sha1sum --binary $$tarball > $$tarball.sha1sum ; \
done
repository_clean: $(tarballs) $(sha1s)
@echo -e "\n======= Remove $(repo_name).git repository =======\n"
@rm -rf $(git_repo) $(repo_name)
downloads_clean:
@rm -rf $(tarballs) $(sha1s)
@rm -rf $(git_repo) $(repo_name)
......@@ -22,7 +22,7 @@ all: $(tarballs) $(sha1s)
.PHONY: downloads_clean
$(tarballs):
@echo -e "\n======= Downloading source tarballs ======="
@echo -e "\n======= Downloading source tarballs =======\n"
@for tarball in $(tarballs) ; do \
wget -N $(url)/$$tarball ; \
done
......
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