Radix cross Linux 3pp sources

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

423 Commits   0 Branches   0 Tags
93f865d8 (kx 2023-10-28 13:19:57 +0300  1) #
93f865d8 (kx 2023-10-28 13:19:57 +0300  2) # Project Home:
93f865d8 (kx 2023-10-28 13:19:57 +0300  3) # ============
93f865d8 (kx 2023-10-28 13:19:57 +0300  4) #   https://github.com/orangepi-xunlong/linux-orangepi.git
93f865d8 (kx 2023-10-28 13:19:57 +0300  5) #
93f865d8 (kx 2023-10-28 13:19:57 +0300  6) # Git Mirror:
93f865d8 (kx 2023-10-28 13:19:57 +0300  7) # ==========
2d961901 (kx 2024-10-29 15:08:57 +0300  8) #   https://git.radix-linux.su/orangepi/linux-orangepi-5.10.y.git
93f865d8 (kx 2023-10-28 13:19:57 +0300  9) #
93f865d8 (kx 2023-10-28 13:19:57 +0300 10) 
2d961901 (kx 2024-10-29 15:08:57 +0300 11) url        = https://git.radix-linux.su/orangepi
93f865d8 (kx 2023-10-28 13:19:57 +0300 12) 
93f865d8 (kx 2023-10-28 13:19:57 +0300 13) repo_name  = linux-orangepi-5.10.y
93f865d8 (kx 2023-10-28 13:19:57 +0300 14) 
93f865d8 (kx 2023-10-28 13:19:57 +0300 15) #
93f865d8 (kx 2023-10-28 13:19:57 +0300 16) # List of tags to be extracted:
93f865d8 (kx 2023-10-28 13:19:57 +0300 17) # ============================
93f865d8 (kx 2023-10-28 13:19:57 +0300 18) #
93f865d8 (kx 2023-10-28 13:19:57 +0300 19) #                                               hash | tag
93f865d8 (kx 2023-10-28 13:19:57 +0300 20) #            ----------------------------------------+--------
84e64cb6 (kx 2023-10-28 16:31:36 +0300 21) revisions  = 555b9458002fcb47af0f95dc6c1d4fb8773d4431:5.10.110
93f865d8 (kx 2023-10-28 13:19:57 +0300 22) 
93f865d8 (kx 2023-10-28 13:19:57 +0300 23) git_repo   = .git_clone
93f865d8 (kx 2023-10-28 13:19:57 +0300 24) 
93f865d8 (kx 2023-10-28 13:19:57 +0300 25) pkgname    = linux-orangepi
93f865d8 (kx 2023-10-28 13:19:57 +0300 26) suffix     = tar.xz
93f865d8 (kx 2023-10-28 13:19:57 +0300 27) 
93f865d8 (kx 2023-10-28 13:19:57 +0300 28) versions   = $(foreach tag, $(revisions), $(shell echo $(tag) | cut -f 2 -d ':'))
93f865d8 (kx 2023-10-28 13:19:57 +0300 29) tarballs   = $(addsuffix .$(suffix), $(addprefix $(pkgname)-, $(versions)))
93f865d8 (kx 2023-10-28 13:19:57 +0300 30) sha1s      = $(addsuffix .sha1sum, $(tarballs))
93f865d8 (kx 2023-10-28 13:19:57 +0300 31) 
93f865d8 (kx 2023-10-28 13:19:57 +0300 32) TARGETS = repository_clean
93f865d8 (kx 2023-10-28 13:19:57 +0300 33) 
93f865d8 (kx 2023-10-28 13:19:57 +0300 34) all: $(TARGETS)
93f865d8 (kx 2023-10-28 13:19:57 +0300 35) 
93f865d8 (kx 2023-10-28 13:19:57 +0300 36) .PHONY: downloads_clean repository_clean
93f865d8 (kx 2023-10-28 13:19:57 +0300 37) 
93f865d8 (kx 2023-10-28 13:19:57 +0300 38) $(git_repo):
93f865d8 (kx 2023-10-28 13:19:57 +0300 39) 	@echo -e "\n======= Clone $(repo_name).git repository =======\n"
93f865d8 (kx 2023-10-28 13:19:57 +0300 40) 	@rm -rf $(repo_name)
93f865d8 (kx 2023-10-28 13:19:57 +0300 41) 	@git clone $(url)/$(repo_name).git $(repo_name)
93f865d8 (kx 2023-10-28 13:19:57 +0300 42) 	@touch $@
93f865d8 (kx 2023-10-28 13:19:57 +0300 43) 
93f865d8 (kx 2023-10-28 13:19:57 +0300 44) $(tarballs): $(git_repo)
93f865d8 (kx 2023-10-28 13:19:57 +0300 45) 	@for revision in $(revisions) ; do \
93f865d8 (kx 2023-10-28 13:19:57 +0300 46) 	  hash=`echo $$revision | cut -f 1 -d ':'` ; \
93f865d8 (kx 2023-10-28 13:19:57 +0300 47) 	  version=`echo $$revision | cut -f 2 -d ':'` ; \
93f865d8 (kx 2023-10-28 13:19:57 +0300 48) 	  if [ ! -f $(pkgname)-$$version.$(suffix) ]; then \
93f865d8 (kx 2023-10-28 13:19:57 +0300 49) 	    echo -e "\n======= Creating '$(pkgname)-$$version.$(suffix)' snapshot =======" ; \
93f865d8 (kx 2023-10-28 13:19:57 +0300 50) 	    ( cd $(repo_name) && \
93f865d8 (kx 2023-10-28 13:19:57 +0300 51) 	      git archive --format=tar --prefix=$(pkgname)-$$version/ $$hash | \
93f865d8 (kx 2023-10-28 13:19:57 +0300 52) 	      xz >../$(pkgname)-$$version.$(suffix) ) ; \
93f865d8 (kx 2023-10-28 13:19:57 +0300 53) 	  fi ; \
93f865d8 (kx 2023-10-28 13:19:57 +0300 54) 	done
93f865d8 (kx 2023-10-28 13:19:57 +0300 55) 
93f865d8 (kx 2023-10-28 13:19:57 +0300 56) $(sha1s): %.$(suffix).sha1sum : %.$(suffix)
93f865d8 (kx 2023-10-28 13:19:57 +0300 57) 	@for tarball in $< ; do \
93f865d8 (kx 2023-10-28 13:19:57 +0300 58) 	  echo -e "\n======= Calculation the '$$tarball' sha1sum =======" ; \
93f865d8 (kx 2023-10-28 13:19:57 +0300 59) 	  sha1sum --binary $$tarball > $$tarball.sha1sum ; \
93f865d8 (kx 2023-10-28 13:19:57 +0300 60) 	done
93f865d8 (kx 2023-10-28 13:19:57 +0300 61) 
93f865d8 (kx 2023-10-28 13:19:57 +0300 62) repository_clean: $(sha1s)
93f865d8 (kx 2023-10-28 13:19:57 +0300 63) 	@echo -e "\n======= Remove cloned $(repo_name).git repository =======\n"
93f865d8 (kx 2023-10-28 13:19:57 +0300 64) 	@rm -rf $(git_repo) $(repo_name)
93f865d8 (kx 2023-10-28 13:19:57 +0300 65) 
93f865d8 (kx 2023-10-28 13:19:57 +0300 66) downloads_clean:
93f865d8 (kx 2023-10-28 13:19:57 +0300 67) 	@rm -rf $(tarballs) $(sha1s)
93f865d8 (kx 2023-10-28 13:19:57 +0300 68) 	@rm -rf $(git_repo) $(repo_name)