diff options
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 (patch) | |
tree | f2c6698033a77e7381804218826e3a075f302385 /Linux | |
parent | 13146f55076031ffcb25c0ce71839c8a92c27291 (diff) | |
download | sources-fca57b9d9b3cde5c47f3153a1a77d68fcfed3f4b.tar.xz |
Linux kernels 6.x
Diffstat (limited to 'Linux')
-rw-r--r-- | Linux/Makefile | 24 | ||||
-rw-r--r-- | Linux/v6.x/Makefile | 38 |
2 files changed, 62 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) |