diff options
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 (patch) | |
tree | 349831975aedf70632018dd4f03dd9e642c829e9 /Linux | |
parent | 06fd19843ab5ddcb49c6f8741f1711778ff9f9eb (diff) | |
download | sources-13146f55076031ffcb25c0ce71839c8a92c27291.tar.xz |
Linux kernels for BaikalElectronics
Diffstat (limited to 'Linux')
-rw-r--r-- | Linux/Baikal/M1000/Makefile | 32 | ||||
-rw-r--r-- | Linux/Baikal/Makefile | 25 | ||||
-rw-r--r-- | Linux/Baikal/T1000/Makefile | 32 |
3 files changed, 89 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) diff --git a/Linux/Baikal/Makefile b/Linux/Baikal/Makefile new file mode 100644 index 0000000..d507049 --- /dev/null +++ b/Linux/Baikal/Makefile @@ -0,0 +1,25 @@ + +# +# Following command helps to cheate SUBDIRS list: +# $ tree -fid . +# + +SUBDIRS := M1000 \ + T1000 + + +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/Baikal/T1000/Makefile b/Linux/Baikal/T1000/Makefile new file mode 100644 index 0000000..9af39ae --- /dev/null +++ b/Linux/Baikal/T1000/Makefile @@ -0,0 +1,32 @@ +# +# Linux kernel for BFK board (TK-T1): +# + +url = https://ftp.radix.pro/3pp/Baikal-T1/linux + +versions = 5.15.61-5.9.31 + +pkgname = linux-t1 +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) |