Radix cross Linux 3pp sources

RcL sources – is a tree of Third Party and Radix source tarballs

343 Commits   0 Branches   0 Tags
author: kx <kx@radix.pro> 2023-04-06 09:51:16 +0300 committer: kx <kx@radix.pro> 2023-04-06 09:51:16 +0300 commit: fca57b9d9b3cde5c47f3153a1a77d68fcfed3f4b parent: 13146f55076031ffcb25c0ce71839c8a92c27291
Commit Summary:
Linux kernels 6.x
Diffstat:
2 files changed, 47 insertions, 0 deletions
diff --git a/Linux/Makefile b/Linux/Makefile
new file mode 100644
index 0000000..57d52b1
--- /dev/null
+++ b/Linux/Makefile
@@ -0,0 +1,24 @@
+
+#
+# Following command helps to cheate SUBDIRS list:
+# $ tree -fid .
+#
+
+SUBDIRS := Baikal            \
+           v6.x
+
+all-recursive downloads_clean-recursive:
+	@set fnord $(MAKEFLAGS); amf=$$2; \
+	target=`echo $@ | sed s/-recursive//`; \
+	list='$(SUBDIRS)'; for subdir in $$list; do \
+	  echo "Making $$target in $$subdir"; \
+	  local_target="$$target"; \
+	  (cd $$subdir && $(MAKE) $$fnord $$local_target) \
+	   || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
+	done; test -z "$$fail"
+
+all: all-recursive
+
+downloads_clean: downloads_clean-recursive
+
+.PHONY: all-recursive downloads_clean-recursive all downloads_clean
diff --git a/Linux/v6.x/Makefile b/Linux/v6.x/Makefile
new file mode 100644
index 0000000..d966246
--- /dev/null
+++ b/Linux/v6.x/Makefile
@@ -0,0 +1,38 @@
+#
+# url = https://www.kernel.org/pub/linux/kernel/v[2.6|3.x|4.x|5.x]
+#
+# mirrors:
+#
+# url = https://www.se.kernel.org/pub/linux/kernel/v[2.6|3.x|4.x|5.x]
+#
+
+url         = https://www.kernel.org/pub/linux/kernel/v6.x
+
+versions    = 6.0.7
+versions   += 6.1.20 6.1.22
+versions   += 6.2.9
+
+pkgname     = linux
+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)