5 kx
5 kx COMPONENT_TARGETS = $(HARDWARE_NOARCH)
5 kx
5 kx
5 kx include ../../../build-system/constants.mk
5 kx
5 kx
5 kx url = $(DOWNLOAD_SERVER)/sources/Linux/v6.x
5 kx
164 kx versions = 6.1.53
5 kx
5 kx tarballs = $(addsuffix .tar.xz, $(addprefix linux-, $(versions)))
5 kx sha1s = $(addsuffix .sha1sum, $(tarballs))
5 kx
164 kx patches = $(CURDIR)/patches/linux-6.1.53-dwmac-rk.patch
164 kx patches += $(CURDIR)/patches/linux-6.1.53-host-limits.patch
164 kx patches += $(CURDIR)/patches/linux-6.1.53-sdhci-reset.patch
164 kx patches += $(CURDIR)/patches/linux-6.1.53-leez-p710-spi.patch
164 kx patches += $(CURDIR)/patches/linux-6.1.53-repka-pi3.patch
5 kx
5 kx .NOTPARALLEL: $(patches)
5 kx
5 kx
5 kx BUILD_TARGETS = $(tarballs) $(sha1s) $(patches)
5 kx
5 kx
5 kx include ../../../build-system/core.mk
5 kx
5 kx
5 kx .PHONY: download_clean
5 kx
5 kx
5 kx $(tarballs):
5 kx @echo -e "\n======= Downloading source tarballs =======" ; \
5 kx for tarball in $(tarballs) ; do \
5 kx echo "$(url)/$$tarball" | xargs -n 1 -P 100 wget $(WGET_OPTIONS) - & \
5 kx done ; wait
5 kx
5 kx $(sha1s): $(tarballs)
5 kx @for sha in $@ ; do \
5 kx echo -e "\n======= Downloading '$$sha' signature =======\n" ; \
5 kx echo "$(url)/$$sha" | xargs -n 1 -P 100 wget $(WGET_OPTIONS) - & wait %1 ; \
5 kx touch $$sha ; \
5 kx echo -e "\n======= Check the '$$sha' sha1sum =======\n" ; \
5 kx sha1sum --check $$sha ; ret="$$?" ; \
5 kx if [ "$$ret" == "1" ]; then \
5 kx echo -e "\n======= ERROR: Bad '$$sha' sha1sum =======\n" ; \
5 kx exit 1 ; \
5 kx fi ; \
5 kx done
5 kx
5 kx $(patches): $(sha1s)
5 kx @echo -e "\n======= Create Patches =======\n" ; \
164 kx ( cd create-6.1.53-dwmac-rk-patch ; ./create.patch.sh ) ; \
164 kx ( cd create-6.1.53-host-limits-patch ; ./create.patch.sh ) ; \
164 kx ( cd create-6.1.53-sdhci-reset-patch ; ./create.patch.sh ) ; \
164 kx ( cd create-6.1.53-leez-p710-spi-patch ; ./create.patch.sh ) ; \
164 kx ( cd create-6.1.53-repka-pi3-patch ; ./create.patch.sh ) ; \
5 kx echo -e "\n"
5 kx
5 kx download_clean:
5 kx @rm -f $(tarballs) $(sha1s) $(patches)