diff mbox series

[73/74] patches: add build system workaround for pre 5.17

Message ID 20240524190908.b8ed0e43b711.I3fcefff149575b91306ca59617d6979dca20898b@changeid (mailing list archive)
State New, archived
Headers show
Series backport updates from Intel | expand

Commit Message

Johannes Berg May 24, 2024, 5:08 p.m. UTC
From: Johannes Berg <johannes.berg@intel.com>

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
---
 patches/0111-wireless-build-unquote.patch | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 patches/0111-wireless-build-unquote.patch
diff mbox series

Patch

diff --git a/patches/0111-wireless-build-unquote.patch b/patches/0111-wireless-build-unquote.patch
new file mode 100644
index 000000000000..ce4db030aa48
--- /dev/null
+++ b/patches/0111-wireless-build-unquote.patch
@@ -0,0 +1,17 @@ 
+This is needed because on earlier kernels the build system still quotes it.
+commit 129ab0d2d9f3 ("kbuild: do not quote string values in include/config/auto.conf")
+in 5.17 changed it.
+
+--- a/net/wireless/Makefile
++++ b/net/wireless/Makefile
+@@ -34,8 +34,8 @@ $(obj)/shipped-certs.c: $(sort $(wildcard $(src)/certs/*.hex))
+ 	  echo 'unsigned int shipped_regdb_certs_len = sizeof(shipped_regdb_certs);'; \
+ 	 ) > $@
+ 
+-$(obj)/extra-certs.c: $(CONFIG_CFG80211_EXTRA_REGDB_KEYDIR) \
+-		      $(sort $(wildcard $(CONFIG_CFG80211_EXTRA_REGDB_KEYDIR)/*.x509))
++$(obj)/extra-certs.c: $(CONFIG_CFG80211_EXTRA_REGDB_KEYDIR:"%"=%) \
++		      $(sort $(wildcard $(CONFIG_CFG80211_EXTRA_REGDB_KEYDIR:"%"=%)/*.x509))
+ 	@$(kecho) "  GEN     $@"
+ 	$(Q)(set -e; \
+ 	  allf=""; \