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> 2024-02-15 20:44:35 +0300 committer: kx <kx@radix.pro> 2024-02-15 20:44:35 +0300 commit: 1a37f5fd82775ca99967f9c11fd0a0e19ba711c9 parent: 557bd1a67bdc1c72e83530e05a43e79227992bad
Commit Summary:
Baikal BE-M1000 VDec driver, firmware, and libraries
Diffstat:
4 files changed, 59 insertions, 1 deletion
diff --git a/hal/drivers/Baikal/M1000/Makefile b/hal/drivers/Baikal/M1000/Makefile
new file mode 100644
index 0000000..e2ac08b
--- /dev/null
+++ b/hal/drivers/Baikal/M1000/Makefile
@@ -0,0 +1,24 @@
+
+#
+# Following command helps to cheate SUBDIRS list:
+# $ tree -fid .
+#
+
+SUBDIRS := vdec
+
+
+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/hal/drivers/Baikal/M1000/vdec/Makefile b/hal/drivers/Baikal/M1000/vdec/Makefile
new file mode 100644
index 0000000..8800ada
--- /dev/null
+++ b/hal/drivers/Baikal/M1000/vdec/Makefile
@@ -0,0 +1,32 @@
+#
+# Broadcom hybrid-v35 wireless driver:
+#
+
+url         = https://ftp.radix.pro/3pp/Baikal-M1/vdec
+
+versions    = 6.4-20231227
+
+pkgname     = vdec
+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/hal/drivers/Baikal/Makefile b/hal/drivers/Baikal/Makefile
new file mode 100644
index 0000000..c1b9a87
--- /dev/null
+++ b/hal/drivers/Baikal/Makefile
@@ -0,0 +1,24 @@
+
+#
+# Following command helps to cheate SUBDIRS list:
+# $ tree -fid .
+#
+
+SUBDIRS := M1000
+
+
+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/hal/drivers/Makefile b/hal/drivers/Makefile
index a9b8265..dd030b6 100644
--- a/hal/drivers/Makefile
+++ b/hal/drivers/Makefile
@@ -4,7 +4,8 @@
 # $ tree -fid .
 #
 
-SUBDIRS := wireless
+SUBDIRS := Baikal \
+           wireless
 
 
 all-recursive downloads_clean-recursive: