Переглянути джерело

build: add support for choosing a different url filename part than the output file

Backport of r47591 and r48427
Matthias Schiffer 8 роки тому
батько
коміт
9a10ad688d
37 змінених файлів з 68 додано та 0 видалено
  1. 68 0
      patches/openwrt/0006-build-add-support-for-choosing-a-different-url-filename-part-than-the-output-file.patch
  2. 0 0
      patches/openwrt/0007-mac80211-backport-from-trunk-r47249.patch
  3. 0 0
      patches/openwrt/0008-mac80211-ath10k-allow-simultaneous-AP-IBSS.patch
  4. 0 0
      patches/openwrt/0009-iwinfo-update-NanoStation-Loco-txpower-offsets.patch
  5. 0 0
      patches/openwrt/0010-ar71xx-add-support-for-tp-link-wr740n-v5.0-EU.patch
  6. 0 0
      patches/openwrt/0011-ar71xx-add-support-for-TL-WR741ND-v5.patch
  7. 0 0
      patches/openwrt/0012-sunxi-fix-uboot-install-location.patch
  8. 0 0
      patches/openwrt/0013-sunxi-respect-CONFIG_TARGET_IMAGES_GZIP.patch
  9. 0 0
      patches/openwrt/0014-odhcp6c-add-option-sourcefilter-to-disable-source-filter.patch
  10. 0 0
      patches/openwrt/0015-mac80211-set-mcast-rate-for-mesh-point-interfaces.patch
  11. 0 0
      patches/openwrt/0016-hostapd-prevent-channel-switch-for-5GHz.patch
  12. 0 0
      patches/openwrt/0017-ar71xx-fix-ethernet-initialization-on-QCA953x-based-boards-TP-Link-TL-WR841N-ND-v9-Compex-WPJ531.patch
  13. 0 0
      patches/openwrt/0018-ar71xx-rework-patch-for-qca953x-956x.patch
  14. 0 0
      patches/openwrt/0019-base-files-default_postinst-propagate-the-real-postinst-return-code.patch
  15. 0 0
      patches/openwrt/0020-opkg-work-around-unconditional-libopenssl-build-dependency.patch
  16. 0 0
      patches/openwrt/0021-hostapd-work-around-unconditional-libopenssl-build-dependency.patch
  17. 0 0
      patches/openwrt/0022-odhcp6c-minor-fixes.patch
  18. 0 0
      patches/openwrt/0023-ath9k-add-HSR-tuner-support-for-UniFi-Outdoor-Plus.patch
  19. 0 0
      patches/openwrt/0024-base-files-add-etc-profile.d-support.patch
  20. 0 0
      patches/openwrt/0025-Kernel-Realtek-8150-and-Realtek-8152-based-USB-to-Ethernet-converters.patch
  21. 0 0
      patches/openwrt/0026-tools-firmware-utils-tplink-safeloader-clean-up-code.patch
  22. 0 0
      patches/openwrt/0027-tools-firmware-utils-tplink-safeloader-fix-support-list-format-clean-up-vendor-information.patch
  23. 0 0
      patches/openwrt/0028-tools-firmware-utils-tplink-safeloader-add-version-1.1-support-to-CPE210-220-510-520.patch
  24. 0 0
      patches/openwrt/0029-ipv6-fix-crash-on-ICMPv6-redirects-with-prohibited-blackholed-source.patch
  25. 0 0
      patches/openwrt/0030-mac80211-fix-crash-when-using-mesh-11s-VIF-together-with-another-VIF.patch
  26. 0 0
      patches/openwrt/0031-ath10k-add-Candelatech-community-firmware-as-an-additional-choice.patch
  27. 0 0
      patches/openwrt/0032-mac80211-ath9k-add-correct-MAC-BB-name-for-ar9561.patch
  28. 0 0
      patches/openwrt/0033-ar71xx-add-support-for-TP-LINK-TL-WR941ND-v6-international-version.patch
  29. 0 0
      patches/openwrt/0034-ar71xx-add-support-for-TP-Link-TL-WR1043ND-v3.patch
  30. 0 0
      patches/openwrt/0035-ar71xx-backport-ath10k-calibration-data-load-changes.patch
  31. 0 0
      patches/openwrt/0036-ar71xx-fix-AR71XX_MODEL-on-TP-Link-TL-WR703N.patch
  32. 0 0
      patches/openwrt/0037-acx-mac80211-mark-as-BROKEN-to-avoid-compile-failure-on-mipsel-targets.patch
  33. 0 0
      patches/openwrt/0038-OpenSSL-Added-source-old-to-PKG_SOURCE_URL.patch
  34. 0 0
      patches/openwrt/0039-lua-fix-installation-of-headers-for-host-build.patch
  35. 0 0
      patches/openwrt/0040-kernel-fs-seq_file-fallback-to-vmalloc-instead-of-oom-kill-processes.patch
  36. 0 0
      patches/openwrt/0041-x86-generic-refresh-kernel-config.patch
  37. 0 0
      patches/openwrt/0042-x86-generic-enable-pata_atiixp-driver.patch

+ 68 - 0
patches/openwrt/0006-build-add-support-for-choosing-a-different-url-filename-part-than-the-output-file.patch

@@ -0,0 +1,68 @@
+From: Matthias Schiffer <mschiffer@universe-factory.net>
+Date: Tue, 9 Feb 2016 13:49:01 +0100
+Subject: build: add support for choosing a different url filename part than the output file
+
+Signed-off-by: Felix Fietkau <nbd@openwrt.org>
+
+Backport of r47591 and r48427
+
+diff --git a/include/download.mk b/include/download.mk
+index 937b5d3..e518cce 100644
+--- a/include/download.mk
++++ b/include/download.mk
+@@ -44,11 +44,11 @@ define DownloadMethod/unknown
+ endef
+ 
+ define DownloadMethod/default
+-	$(SCRIPT_DIR)/download.pl "$(DL_DIR)" "$(FILE)" "$(MD5SUM)" $(foreach url,$(URL),"$(url)")
++	$(SCRIPT_DIR)/download.pl "$(DL_DIR)" "$(FILE)" "$(MD5SUM)" "$(URL_FILE)" $(foreach url,$(URL),"$(url)")
+ endef
+ 
+ define wrap_mirror
+-	$(if $(if $(MIRROR),$(filter-out x,$(MIRROR_MD5SUM))),@$(SCRIPT_DIR)/download.pl "$(DL_DIR)" "$(FILE)" "$(MIRROR_MD5SUM)" || ( $(1) ),$(1))
++	$(if $(if $(MIRROR),$(filter-out x,$(MIRROR_MD5SUM))),@$(SCRIPT_DIR)/download.pl "$(DL_DIR)" "$(FILE)" "$(MIRROR_MD5SUM)" "" || ( $(1) ),$(1))
+ endef
+ 
+ define DownloadMethod/cvs
+@@ -157,6 +157,7 @@ Validate/darcs=VERSION SUBDIR
+ define Download/Defaults
+   URL:=
+   FILE:=
++  URL_FILE:=
+   PROTO:=
+   MD5SUM:=
+   SUBDIR:=
+diff --git a/scripts/download.pl b/scripts/download.pl
+index cd68a7b..111d03c 100755
+--- a/scripts/download.pl
++++ b/scripts/download.pl
+@@ -11,15 +11,19 @@ use warnings;
+ use File::Basename;
+ use File::Copy;
+ 
+-@ARGV > 2 or die "Syntax: $0 <target dir> <filename> <md5sum> [<mirror> ...]\n";
++@ARGV > 2 or die "Syntax: $0 <target dir> <filename> <md5sum> <url filename> [<mirror> ...]\n";
+ 
++my $url_filename;
+ my $target = shift @ARGV;
+ my $filename = shift @ARGV;
+ my $md5sum = shift @ARGV;
++$url_filename = shift @ARGV unless $ARGV[0] =~ /:\/\//;
+ my $scriptdir = dirname($0);
+ my @mirrors;
+ my $ok;
+ 
++$url_filename or $url_filename = $filename;
++
+ sub localmirrors {
+ 	my @mlist;
+ 	open LM, "$scriptdir/localmirrors" and do {
+@@ -106,7 +110,7 @@ sub download
+ 			return;
+ 		}
+ 	} else {
+-		open WGET, "wget -t5 --timeout=20 --no-check-certificate $options -O- '$mirror/$filename' |" or die "Cannot launch wget.\n";
++		open WGET, "wget -t5 --timeout=20 --no-check-certificate $options -O- '$mirror/$url_filename' |" or die "Cannot launch wget.\n";
+ 		open MD5SUM, "| $md5cmd > '$target/$filename.md5sum'" or die "Cannot launch md5sum.\n";
+ 		open OUTPUT, "> $target/$filename.dl" or die "Cannot create file $target/$filename.dl: $!\n";
+ 		my $buffer;

+ 0 - 0
patches/openwrt/0006-mac80211-backport-from-trunk-r47249.patch → patches/openwrt/0007-mac80211-backport-from-trunk-r47249.patch


+ 0 - 0
patches/openwrt/0007-mac80211-ath10k-allow-simultaneous-AP-IBSS.patch → patches/openwrt/0008-mac80211-ath10k-allow-simultaneous-AP-IBSS.patch


+ 0 - 0
patches/openwrt/0008-iwinfo-update-NanoStation-Loco-txpower-offsets.patch → patches/openwrt/0009-iwinfo-update-NanoStation-Loco-txpower-offsets.patch


+ 0 - 0
patches/openwrt/0009-ar71xx-add-support-for-tp-link-wr740n-v5.0-EU.patch → patches/openwrt/0010-ar71xx-add-support-for-tp-link-wr740n-v5.0-EU.patch


+ 0 - 0
patches/openwrt/0010-ar71xx-add-support-for-TL-WR741ND-v5.patch → patches/openwrt/0011-ar71xx-add-support-for-TL-WR741ND-v5.patch


+ 0 - 0
patches/openwrt/0011-sunxi-fix-uboot-install-location.patch → patches/openwrt/0012-sunxi-fix-uboot-install-location.patch


+ 0 - 0
patches/openwrt/0012-sunxi-respect-CONFIG_TARGET_IMAGES_GZIP.patch → patches/openwrt/0013-sunxi-respect-CONFIG_TARGET_IMAGES_GZIP.patch


+ 0 - 0
patches/openwrt/0013-odhcp6c-add-option-sourcefilter-to-disable-source-filter.patch → patches/openwrt/0014-odhcp6c-add-option-sourcefilter-to-disable-source-filter.patch


+ 0 - 0
patches/openwrt/0014-mac80211-set-mcast-rate-for-mesh-point-interfaces.patch → patches/openwrt/0015-mac80211-set-mcast-rate-for-mesh-point-interfaces.patch


+ 0 - 0
patches/openwrt/0015-hostapd-prevent-channel-switch-for-5GHz.patch → patches/openwrt/0016-hostapd-prevent-channel-switch-for-5GHz.patch


+ 0 - 0
patches/openwrt/0016-ar71xx-fix-ethernet-initialization-on-QCA953x-based-boards-TP-Link-TL-WR841N-ND-v9-Compex-WPJ531.patch → patches/openwrt/0017-ar71xx-fix-ethernet-initialization-on-QCA953x-based-boards-TP-Link-TL-WR841N-ND-v9-Compex-WPJ531.patch


+ 0 - 0
patches/openwrt/0017-ar71xx-rework-patch-for-qca953x-956x.patch → patches/openwrt/0018-ar71xx-rework-patch-for-qca953x-956x.patch


+ 0 - 0
patches/openwrt/0018-base-files-default_postinst-propagate-the-real-postinst-return-code.patch → patches/openwrt/0019-base-files-default_postinst-propagate-the-real-postinst-return-code.patch


+ 0 - 0
patches/openwrt/0019-opkg-work-around-unconditional-libopenssl-build-dependency.patch → patches/openwrt/0020-opkg-work-around-unconditional-libopenssl-build-dependency.patch


+ 0 - 0
patches/openwrt/0020-hostapd-work-around-unconditional-libopenssl-build-dependency.patch → patches/openwrt/0021-hostapd-work-around-unconditional-libopenssl-build-dependency.patch


+ 0 - 0
patches/openwrt/0021-odhcp6c-minor-fixes.patch → patches/openwrt/0022-odhcp6c-minor-fixes.patch


+ 0 - 0
patches/openwrt/0022-ath9k-add-HSR-tuner-support-for-UniFi-Outdoor-Plus.patch → patches/openwrt/0023-ath9k-add-HSR-tuner-support-for-UniFi-Outdoor-Plus.patch


+ 0 - 0
patches/openwrt/0023-base-files-add-etc-profile.d-support.patch → patches/openwrt/0024-base-files-add-etc-profile.d-support.patch


+ 0 - 0
patches/openwrt/0024-Kernel-Realtek-8150-and-Realtek-8152-based-USB-to-Ethernet-converters.patch → patches/openwrt/0025-Kernel-Realtek-8150-and-Realtek-8152-based-USB-to-Ethernet-converters.patch


+ 0 - 0
patches/openwrt/0025-tools-firmware-utils-tplink-safeloader-clean-up-code.patch → patches/openwrt/0026-tools-firmware-utils-tplink-safeloader-clean-up-code.patch


+ 0 - 0
patches/openwrt/0026-tools-firmware-utils-tplink-safeloader-fix-support-list-format-clean-up-vendor-information.patch → patches/openwrt/0027-tools-firmware-utils-tplink-safeloader-fix-support-list-format-clean-up-vendor-information.patch


+ 0 - 0
patches/openwrt/0027-tools-firmware-utils-tplink-safeloader-add-version-1.1-support-to-CPE210-220-510-520.patch → patches/openwrt/0028-tools-firmware-utils-tplink-safeloader-add-version-1.1-support-to-CPE210-220-510-520.patch


+ 0 - 0
patches/openwrt/0028-ipv6-fix-crash-on-ICMPv6-redirects-with-prohibited-blackholed-source.patch → patches/openwrt/0029-ipv6-fix-crash-on-ICMPv6-redirects-with-prohibited-blackholed-source.patch


+ 0 - 0
patches/openwrt/0029-mac80211-fix-crash-when-using-mesh-11s-VIF-together-with-another-VIF.patch → patches/openwrt/0030-mac80211-fix-crash-when-using-mesh-11s-VIF-together-with-another-VIF.patch


+ 0 - 0
patches/openwrt/0030-ath10k-add-Candelatech-community-firmware-as-an-additional-choice.patch → patches/openwrt/0031-ath10k-add-Candelatech-community-firmware-as-an-additional-choice.patch


+ 0 - 0
patches/openwrt/0031-mac80211-ath9k-add-correct-MAC-BB-name-for-ar9561.patch → patches/openwrt/0032-mac80211-ath9k-add-correct-MAC-BB-name-for-ar9561.patch


+ 0 - 0
patches/openwrt/0032-ar71xx-add-support-for-TP-LINK-TL-WR941ND-v6-international-version.patch → patches/openwrt/0033-ar71xx-add-support-for-TP-LINK-TL-WR941ND-v6-international-version.patch


+ 0 - 0
patches/openwrt/0033-ar71xx-add-support-for-TP-Link-TL-WR1043ND-v3.patch → patches/openwrt/0034-ar71xx-add-support-for-TP-Link-TL-WR1043ND-v3.patch


+ 0 - 0
patches/openwrt/0034-ar71xx-backport-ath10k-calibration-data-load-changes.patch → patches/openwrt/0035-ar71xx-backport-ath10k-calibration-data-load-changes.patch


+ 0 - 0
patches/openwrt/0035-ar71xx-fix-AR71XX_MODEL-on-TP-Link-TL-WR703N.patch → patches/openwrt/0036-ar71xx-fix-AR71XX_MODEL-on-TP-Link-TL-WR703N.patch


+ 0 - 0
patches/openwrt/0036-acx-mac80211-mark-as-BROKEN-to-avoid-compile-failure-on-mipsel-targets.patch → patches/openwrt/0037-acx-mac80211-mark-as-BROKEN-to-avoid-compile-failure-on-mipsel-targets.patch


+ 0 - 0
patches/openwrt/0037-OpenSSL-Added-source-old-to-PKG_SOURCE_URL.patch → patches/openwrt/0038-OpenSSL-Added-source-old-to-PKG_SOURCE_URL.patch


+ 0 - 0
patches/openwrt/0038-lua-fix-installation-of-headers-for-host-build.patch → patches/openwrt/0039-lua-fix-installation-of-headers-for-host-build.patch


+ 0 - 0
patches/openwrt/0039-kernel-fs-seq_file-fallback-to-vmalloc-instead-of-oom-kill-processes.patch → patches/openwrt/0040-kernel-fs-seq_file-fallback-to-vmalloc-instead-of-oom-kill-processes.patch


+ 0 - 0
patches/openwrt/0040-x86-generic-refresh-kernel-config.patch → patches/openwrt/0041-x86-generic-refresh-kernel-config.patch


+ 0 - 0
patches/openwrt/0041-x86-generic-enable-pata_atiixp-driver.patch → patches/openwrt/0042-x86-generic-enable-pata_atiixp-driver.patch