author: kx <kx@radix.pro> 2023-04-06 09:44:25 +0300
committer: kx <kx@radix.pro> 2023-04-06 09:44:25 +0300
commit: 13146f55076031ffcb25c0ce71839c8a92c27291
parent: 06fd19843ab5ddcb49c6f8741f1711778ff9f9eb
Commit Summary:
Diffstat:
1 file changed, 23 insertions, 0 deletions
diff --git a/Linux/Baikal/M1000/Makefile b/Linux/Baikal/M1000/Makefile
new file mode 100644
index 0000000..5767b4d
--- /dev/null
+++ b/Linux/Baikal/M1000/Makefile
@@ -0,0 +1,32 @@
+#
+# Linux kernel for BFK board (TK-T1):
+#
+
+url = https://ftp.radix.pro/3pp/Baikal-M1/linux
+
+versions = 5.4.211-5.7.226
+
+pkgname = linux-m1
+suffix = tar.xz
+
+tarballs = $(addsuffix .$(suffix), $(addprefix $(pkgname)-, $(versions)))
+sha1s = $(addsuffix .sha1sum, $(tarballs))
+
+all: $(tarballs) $(sha1s)
+
+.PHONY: downloads_clean
+
+$(tarballs):
+ @echo -e "\n======= Downloading source tarballs =======\n"
+ @for tarball in $(tarballs) ; do \
+ wget -N $(url)/$$tarball ; \
+ done
+
+$(sha1s): %.$(suffix).sha1sum : %.$(suffix)
+ @for tarball in $< ; do \
+ echo -e "\n======= Calculation the '$$tarball' sha1sum =======\n" ; \
+ sha1sum --binary $$tarball > $$tarball.sha1sum ; \
+ done
+
+downloads_clean:
+ @rm -rf $(tarballs) $(sha1s)