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

Splitted main line Linux kernel into v2.6 and v3.x directories. Added Linux...

Splitted main line Linux kernel into v2.6 and v3.x directories. Added Linux tarballs PGP signature verification.
parent a47d1035
......@@ -38,7 +38,7 @@ $(tarballs):
$(sha1s): %.tar.bz2.sha1sum : %.tar.bz2
@for tarball in $< ; do \
echo -e "\n======= Calculate '$$tarball' sha1sum =======\n" ; \
echo -e "\n======= Calculation the '$$tarball' sha1sum =======\n" ; \
sha1sum --binary $$tarball > $$tarball.sha1sum ; \
done
......
......@@ -39,7 +39,7 @@ $(tarballs):
$(sha1s): %.tar.bz2.sha1sum : %.tar.bz2
@for tarball in $< ; do \
echo -e "\n======= Calculate '$$tarball' sha1sum =======\n" ; \
echo -e "\n======= Calculation the '$$tarball' sha1sum =======\n" ; \
sha1sum --binary $$tarball > $$tarball.sha1sum ; \
done
......
#
#In a directory with the keyring file, the source file to verify and the
#signature file, the command to use is:
# In a directory with the keyring file, the source file to verify and the
# signature file, the command to use is:
#
# $ gpg --verify --keyring ./gnu-keyring.gpg foo.tar.xz.sig
#
......
......@@ -44,7 +44,7 @@ $(signatures): %.tar.bz2.sig : %.tar.bz2
$(sha1s): %.tar.bz2.sha1sum : %.tar.bz2
@for tarball in $< ; do \
echo -e "\n======= Calculate '$$tarball' sha1sum =======\n" ; \
echo -e "\n======= Calculation the '$$tarball' sha1sum =======\n" ; \
sha1sum --binary $$tarball > $$tarball.sha1sum ; \
done
......
......@@ -44,7 +44,7 @@ $(signatures): %.tar.bz2.sig : %.tar.bz2
$(sha1s): %.tar.bz2.sha1sum : %.tar.bz2
@for tarball in $< ; do \
echo -e "\n======= Calculate '$$tarball' sha1sum =======\n" ; \
echo -e "\n======= Calculation the '$$tarball' sha1sum =======\n" ; \
sha1sum --binary $$tarball > $$tarball.sha1sum ; \
done
......
#
# url = http://www.kernel.org/pub/linux/kernel/[v2.6|3.x]
# In a directory with the keyring file, the source file to verify and the
# signature file, the command to use is:
#
# mirrors:
# $ gpg --verify --keyring ./gnu-keyring.gpg foo.tar.xz.sig
#
# url = http://www.se.kernel.org/pub/linux/kernel/[v2.6|3.x]
# original url: ftp:://ftp.gnu.org/gnu/gnu-keyring.gpg
#
url_prefix = http://www.kernel.org/pub/linux/kernel
url_v2_6 = v2.6
url_v3_x = v3.x
IDs = 517D0F0E 6092693E
tarballs_2_6 = linux-2.6.36.tar.bz2 linux-2.6.39.4.tar.bz2
signatures_2_6 = linux-2.6.36.tar.bz2.sign linux-2.6.39.4.tar.bz2.sign
keyrings = $(addsuffix .gpg, $(addprefix keyring-, $(IDs)))
tarballs_3_x = linux-3.5.4.tar.bz2 linux-3.8.5.tar.bz2
signatures_3_x = linux-3.5.4.tar.sign linux-3.8.5.tar.sign
TARGETS = $(tarballs_2_6) $(signatures_2_6)
TARGETS += $(tarballs_3_x) $(signatures_3_x)
all: $(TARGETS)
all: $(keyrings)
.PHONY: downloads_clean
#
# v2.6
#
$(tarballs_2_6):
@echo -e "\n======= Downloading source tarballs ======="
@for tarball in $(tarballs_2_6) ; do \
wget -N $(url_prefix)/$(url_v2_6)/$$tarball ; \
done
$(signatures_2_6):
@echo -e "\n======= Downloading tarball signatures ======="
@for signature in $(signatures_2_6) ; do \
wget -N $(url_prefix)/$(url_v2_6)/$$signature ; \
done
#
# v3.x
#
$(tarballs_3_x):
@echo -e "\n======= Downloading source tarballs ======="
@for tarball in $(tarballs_3_x) ; do \
wget -N $(url_prefix)/$(url_v3_x)/$$tarball ; \
done
$(signatures_3_x):
@echo -e "\n======= Downloading tarball signatures ======="
@for signature in $(signatures_3_x) ; do \
wget -N $(url_prefix)/$(url_v3_x)/$$signature ; \
$(keyrings):
@echo -e "\n======= Downloading keyring files =======\n"
@for ID in $(IDs) ; do \
gpg --recv-key $$ID ; \
gpg --export $$ID > keyring-$$ID.gpg ; \
gpg --batch --yes --delete-key $$ID ; \
done
downloads_clean:
@rm -rf $(TARGETS)
@rm -f $(keyrings)
......@@ -60,7 +60,7 @@ $(defconfigs): %.defconfig: %.tar.bz2
$(sha1s): %.tar.bz2.sha1sum : %.tar.bz2
@for tarball in $< ; do \
echo -e "\n======= Calculate '$$tarball' sha1sum =======" ; \
echo -e "\n======= Calculation the '$$tarball' sha1sum =======" ; \
sha1sum --binary $$tarball > $$tarball.sha1sum ; \
done
......
......@@ -66,7 +66,7 @@ $(defconfigs): %.defconfig: %.tar.bz2
$(sha1s): %.tar.bz2.sha1sum : %.tar.bz2
@for tarball in $< ; do \
echo -e "\n======= Calculate '$$tarball' sha1sum =======" ; \
echo -e "\n======= Calculation the '$$tarball' sha1sum =======" ; \
sha1sum --binary $$tarball > $$tarball.sha1sum ; \
done
......
......@@ -66,7 +66,7 @@ $(defconfigs): %.defconfig: %.tar.bz2
$(sha1s): %.tar.bz2.sha1sum : %.tar.bz2
@for tarball in $< ; do \
echo -e "\n======= Calculate '$$tarball' sha1sum =======" ; \
echo -e "\n======= Calculation the '$$tarball' sha1sum =======" ; \
sha1sum --binary $$tarball > $$tarball.sha1sum ; \
done
......
#
# url = http://www.kernel.org/pub/linux/kernel/v[2.6|3.x]
#
# mirrors:
#
# url = http://www.se.kernel.org/pub/linux/kernel/v[2.6|3.x]
#
url = http://www.kernel.org/pub/linux/kernel/v2.6
keyring = ../keyring-517D0F0E.gpg
versions = 2.6.36 2.6.39.4
tarballs = $(addsuffix .tar.bz2, $(addprefix linux-, $(versions)))
signatures = $(addsuffix .sign, $(tarballs))
sha1s = $(addsuffix .sha1sum, $(tarballs))
all: $(keyring) $(signatures) $(sha1s)
.PHONY: downloads_clean
$(keyring):
@cd .. ; $(MAKE) all
$(tarballs):
@echo -e "\n======= Downloading source tarballs =======\n"
@for tarball in $(tarballs) ; do \
wget -N $(url)/$$tarball ; \
done
$(signatures): %.tar.bz2.sign : %.tar.bz2
@for signature in $@ ; do \
echo -e "\n======= Downloading '$$signature' signature =======\n" ; \
wget -N $(url)/$$signature ; \
touch $$signature ; \
gpg --verify --keyring $(keyring) $$signature ; ret="$$?" ; \
if [ "$$ret" == "1" ]; then \
echo -e "\n======= ERROR: Bad '$$signature' Signature =======\n" ; \
exit 1 ; \
fi ; \
done
$(sha1s): %.tar.bz2.sha1sum : %.tar.bz2
@for tarball in $< ; do \
echo -e "\n======= Calculation '$$tarball' sha1sum =======\n" ; \
sha1sum --binary $$tarball > $$tarball.sha1sum ; \
done
downloads_clean:
@rm -rf $(tarballs) $(signatures) $(sha1s)
#
# url = http://www.kernel.org/pub/linux/kernel/v[2.6|3.x]
#
# mirrors:
#
# url = http://www.se.kernel.org/pub/linux/kernel/v[2.6|3.x]
#
url = http://www.kernel.org/pub/linux/kernel/v3.x
keyring = ../keyring-6092693E.gpg
versions = 3.5.4 3.8.5
tarballs = $(addsuffix .tar.bz2, $(addprefix linux-, $(versions)))
signatures = $(addsuffix .sign, $(subst .bz2,, $(tarballs)))
sha1s = $(addsuffix .sha1sum, $(tarballs))
all: $(keyring) $(signatures) $(sha1s)
.PHONY: downloads_clean
$(keyring):
@cd .. ; $(MAKE) all
$(tarballs):
@echo -e "\n======= Downloading source tarballs =======\n"
@for tarball in $(tarballs) ; do \
wget -N $(url)/$$tarball ; \
done
$(signatures): %.tar.sign : %.tar.bz2
@for signature in $@ ; do \
echo -e "\n======= Downloading '$$signature' signature =======\n" ; \
wget -N $(url)/$$signature ; \
touch $$signature ; \
echo -e "======= Unpacking '$(subst .bz2,,$<)' for verification =======\n" ; \
bunzip2 --force --keep $< ; \
echo -e "======= Verification of '$(subst .bz2,,$<)' signature =======\n" ; \
gpg --verify --keyring $(keyring) $$signature ; ret="$$?" ; \
if [ "$$ret" == "1" ]; then \
echo -e "\n======= ERROR: Bad '$$signature' Signature =======\n" ; \
exit 1 ; \
fi ; \
rm -f $(subst .bz2,,$<) ; \
done
$(sha1s): %.tar.bz2.sha1sum : %.tar.bz2
@for tarball in $< ; do \
echo -e "\n======= Calculation the '$$tarball' sha1sum =======\n" ; \
sha1sum --binary $$tarball > $$tarball.sha1sum ; \
done
downloads_clean:
@rm -rf $(tarballs) $(signatures) $(sha1s)
......@@ -14,6 +14,8 @@ SUBDIRS := GNU \
Linux/dm644x \
Linux/mips \
Linux/omap \
Linux/v2.6 \
Linux/v3.x \
newlib \
dm644x/flash-tools/IRAM-flasher \
dm644x/flash-tools/IRAM-loader \
......
......@@ -44,7 +44,7 @@ $(tarballs): $(git_repo)
$(sha1s): %.tar.bz2.sha1sum : %.tar.bz2
@for tarball in $< ; do \
echo -e "\n======= Calculate '$$tarball' sha1sum =======" ; \
echo -e "\n======= Calculation the '$$tarball' sha1sum =======" ; \
sha1sum --binary $$tarball > $$tarball.sha1sum ; \
done
......
......@@ -44,7 +44,7 @@ $(tarballs): $(git_repo)
$(sha1s): %.tar.bz2.sha1sum : %.tar.bz2
@for tarball in $< ; do \
echo -e "\n======= Calculate '$$tarball' sha1sum =======" ; \
echo -e "\n======= Calculation the '$$tarball' sha1sum =======" ; \
sha1sum --binary $$tarball > $$tarball.sha1sum ; \
done
......
......@@ -44,7 +44,7 @@ $(tarballs): $(git_repo)
$(sha1s): %.tar.bz2.sha1sum : %.tar.bz2
@for tarball in $< ; do \
echo -e "\n======= Calculate '$$tarball' sha1sum =======" ; \
echo -e "\n======= Calculation the '$$tarball' sha1sum =======" ; \
sha1sum --binary $$tarball > $$tarball.sha1sum ; \
done
......
......@@ -44,7 +44,7 @@ $(tarballs): $(git_repo)
$(sha1s): %.tar.bz2.sha1sum : %.tar.bz2
@for tarball in $< ; do \
echo -e "\n======= Calculate '$$tarball' sha1sum =======" ; \
echo -e "\n======= Calculation the '$$tarball' sha1sum =======" ; \
sha1sum --binary $$tarball > $$tarball.sha1sum ; \
done
......
......@@ -29,7 +29,7 @@ $(tarballs):
$(sha1s): %.tar.gz.sha1sum : %.tar.gz
@for tarball in $< ; do \
echo -e "\n======= Calculate '$$tarball' sha1sum =======\n" ; \
echo -e "\n======= Calculation the '$$tarball' sha1sum =======\n" ; \
sha1sum --binary $$tarball > $$tarball.sha1sum ; \
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