fix.patch 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. --- a/rules.mk
  2. +++ b/rules.mk
  3. @@ -136,8 +136,12 @@ else
  4. TOOLCHAIN_DIR_NAME:=toolchain-$(GNU_TARGET_NAME)
  5. endif
  6. -ifeq ($(or $(CONFIG_EXTERNAL_TOOLCHAIN),$(CONFIG_TARGET_uml)),)
  7. - iremap = -f$(if $(CONFIG_REPRODUCIBLE_DEBUG_INFO),file,macro)-prefix-map=$(1)=$(2)
  8. +ifeq ($(or $(CONFIG_EXTERNAL_TOOLCHAIN),$(CONFIG_GCC_VERSION_4_8),$(CONFIG_TARGET_uml)),)
  9. + ifeq ($(CONFIG_GCC_USE_EMBEDDED_PATH_REMAP),y)
  10. + iremap = -fmacro-prefix-map=$(1)=$(2)
  11. + else
  12. + iremap = -iremap$(1):$(2)
  13. + endif
  14. endif
  15. PACKAGE_DIR:=$(BIN_DIR)/packages
  16. --- a/include/image.mk
  17. +++ b/include/image.mk
  18. @@ -152,21 +152,6 @@ ifdef CONFIG_TARGET_IMAGES_GZIP
  19. endef
  20. endif
  21. -
  22. -# Disable noisy checks by default as in upstream
  23. -DTC_FLAGS += \
  24. - -Wno-unit_address_vs_reg \
  25. - -Wno-simple_bus_reg \
  26. - -Wno-unit_address_format \
  27. - -Wno-pci_bridge \
  28. - -Wno-pci_device_bus_num \
  29. - -Wno-pci_device_reg \
  30. - -Wno-avoid_unnecessary_addr_size \
  31. - -Wno-alias_paths \
  32. - -Wno-graph_child_address \
  33. - -Wno-graph_port \
  34. - -Wno-unique_unit_address
  35. -
  36. define Image/pad-to
  37. dd if=$(1) of=$(1).new bs=$(2) conv=sync
  38. mv $(1).new $(1)
  39. --- a/package/network/utils/iptables/Makefile
  40. +++ b/package/network/utils/iptables/Makefile
  41. @@ -784,7 +784,6 @@ $(eval $(call BuildPlugin,iptables-mod-ulog,$(IPT_ULOG-m)))
  42. $(eval $(call BuildPlugin,iptables-mod-hashlimit,$(IPT_HASHLIMIT-m)))
  43. $(eval $(call BuildPlugin,iptables-mod-rpfilter,$(IPT_RPFILTER-m)))
  44. $(eval $(call BuildPlugin,iptables-mod-led,$(IPT_LED-m)))
  45. -$(eval $(call BuildPlugin,iptables-mod-socket,$(IPT_SOCKET-m)))
  46. $(eval $(call BuildPlugin,iptables-mod-tproxy,$(IPT_TPROXY-m)))
  47. $(eval $(call BuildPlugin,iptables-mod-tee,$(IPT_TEE-m)))
  48. $(eval $(call BuildPlugin,iptables-mod-u32,$(IPT_U32-m)))
  49. --- a/include/target.mk
  50. +++ b/include/target.mk
  51. @@ -147,10 +147,17 @@ ifneq ($(TARGET_BUILD)$(if $(DUMP),,1),)
  52. endif
  53. GENERIC_PLATFORM_DIR := $(TOPDIR)/target/linux/generic
  54. +ifeq ($(CONFIG_TARGET_ipq60xx),y)
  55. +GENERIC_BACKPORT_DIR :=
  56. +GENERIC_PATCH_DIR :=
  57. +GENERIC_HACK_DIR :=
  58. +GENERIC_FILES_DIR :=
  59. +else
  60. GENERIC_BACKPORT_DIR := $(GENERIC_PLATFORM_DIR)/backport$(if $(wildcard $(GENERIC_PLATFORM_DIR)/backport-$(KERNEL_PATCHVER)),-$(KERNEL_PATCHVER))
  61. GENERIC_PATCH_DIR := $(GENERIC_PLATFORM_DIR)/pending$(if $(wildcard $(GENERIC_PLATFORM_DIR)/pending-$(KERNEL_PATCHVER)),-$(KERNEL_PATCHVER))
  62. GENERIC_HACK_DIR := $(GENERIC_PLATFORM_DIR)/hack$(if $(wildcard $(GENERIC_PLATFORM_DIR)/hack-$(KERNEL_PATCHVER)),-$(KERNEL_PATCHVER))
  63. GENERIC_FILES_DIR := $(foreach dir,$(wildcard $(GENERIC_PLATFORM_DIR)/files $(GENERIC_PLATFORM_DIR)/files-$(KERNEL_PATCHVER)),"$(dir)")
  64. +endif
  65. __config_name_list = $(1)/config-$(KERNEL_PATCHVER) $(1)/config-default
  66. __config_list = $(firstword $(wildcard $(call __config_name_list,$(1))))
  67. --- a/package/kernel/mac80211/ath.mk
  68. +++ b/package/kernel/mac80211/ath.mk
  69. @@ -282,7 +282,7 @@ define KernelPackage/ath11k
  70. TITLE:=Atheros 802.11ax wireless cards support
  71. URL:=https://wireless.wiki.kernel.org/en/users/drivers/ath11k
  72. DEPENDS+= @TARGET_ipq60xx +kmod-ath +@DRIVER_11N_SUPPORT +@DRIVER_11AC_SUPPORT \
  73. - +@DRIVER_11AX_SUPPORT +@DRIVER_11W_SUPPORT +kmod-qca-nss-drv
  74. + +@DRIVER_11AX_SUPPORT +@DRIVER_11W_SUPPORT +kmod-qca-nss-drv +kmod-hwmon-core
  75. FILES:= \
  76. $(PKG_BUILD_DIR)/drivers/net/wireless/ath/ath11k/ath11k.ko
  77. endef
  78. --- a/target/linux/ipq60xx/Makefile
  79. +++ b/target/linux/ipq60xx/Makefile
  80. @@ -16,7 +16,7 @@ include $(INCLUDE_DIR)/target.mk
  81. DEFAULT_PACKAGES += \
  82. kmod-leds-gpio kmod-gpio-button-hotplug swconfig \
  83. kmod-qca-nss-dp kmod-qca-nss-drv kmod-qca-ssdk \
  84. - kmod-ath11k-ahb qca-ssdk-shell wpad-openssl \
  85. + kmod-ath11k-ahb qca-ssdk-shell wpad-basic-mbedtls \
  86. ath11k-firmware-ipq6018 nss-firmware-ipq6018 \
  87. kmod-qca-nss-drv-pppoe kmod-qca-nss-ecm uboot-envtools
  88. --- a/package/network/config/netifd/Makefile
  89. +++ b/package/network/config/netifd/Makefile
  90. @@ -5,7 +5,7 @@ PKG_RELEASE:=1
  91. PKG_SOURCE_PROTO:=git
  92. PKG_SOURCE_URL=$(PROJECT_GIT)/project/netifd.git
  93. -PKG_SOURCE_DATE:=2021-06-04
  94. +PKG_SOURCE_DATE:=2023-06-04
  95. PKG_SOURCE_VERSION:=50381d0a2998f6c0fc4823f0c2aa4206063d549e
  96. PKG_MIRROR_HASH:=2718df3d3538c93ac77accf55716fb341741df3d231aac59e04dd1f80f558889
  97. PKG_MAINTAINER:=Felix Fietkau <[email protected]>
  98. --- a/target/linux/ipq60xx/image/Makefile
  99. +++ b/target/linux/ipq60xx/image/Makefile
  100. @@ -104,7 +104,7 @@ define Device/qihoo_v6
  101. PAGESIZE := 2048
  102. DEVICE_DTS := qcom-ipq6018-qihoo-v6
  103. DEVICE_DTS_CONFIG := config@cp03-c1
  104. - DEVICE_TITLE := Qihoo V6
  105. + DEVICE_TITLE := Qihoo 360 V6
  106. DEVICE_PACKAGES := ath11k-wifi-qihoo-v6 kmod-usb3 kmod-usb-phy-msm
  107. endef
  108. TARGET_DEVICES += qihoo_v6
  109. --- a/target/linux/ipq60xx/files-4.4/arch/arm64/boot/dts/qcom/qcom-ipq6018-zn-m2.dts
  110. +++ b/target/linux/ipq60xx/files-4.4/arch/arm64/boot/dts/qcom/qcom-ipq6018-zn-m2.dts
  111. @@ -70,3 +70,15 @@
  112. };
  113. };
  114. };
  115. +
  116. +&qusb_phy_0 {
  117. +status = "ok";
  118. +};
  119. +
  120. +&ssphy_0 {
  121. +status = "ok";
  122. +};
  123. +
  124. +&usb3 {
  125. +status = "ok";
  126. +};