package/rtl8192eu: fix build failure on Big Endian architectures
PATCH v2 1/1 package/rtl8192eu: fix build failure on Big Endian architectures
Let's disable the CONFIG_PLATFORM_I386_PC that is set to y by default involving the endianness to be set to little. This way we can set the CFLAGS according to architecture with some default define like:
-DCONFIG_IOCTL_CFG80211
-DRTW_USE_CFG80211_STA_EVENT
-Wno-error
--- package/rtl8192eu/rtl8192eu.mk | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-)
package/rtl8192eu/rtl8192eu.mk +8 -1
@@ -7,9 +7,16 @@ RTL8192EU_VERSION = 94bce7798bbb18de6d8b1646dedb2511f24867d3 RTL8192EU_SITE = $(call github,clnhub,rtl8192eu-linux,$(RTL8192EU_VERSION)) RTL8192EU_LICENSE = GPL-2.0 + +RTL8192EU_USER_EXTRA_CFLAGS = -DCONFIG_$(call qstrip,$(BR2_ENDIAN))_ENDIAN \ + -DCONFIG_IOCTL_CFG80211 \ + -DRTW_USE_CFG80211_STA_EVENT \ + -Wno-error + RTL8192EU_MODULE_MAKE_OPTS = \ + CONFIG_PLATFORM_I386_PC=n \ CONFIG_RTL8192EU=m \ - USER_EXTRA_CFLAGS="-Wno-error" + USER_EXTRA_CFLAGS="$(RTL8192EU_USER_EXTRA_CFLAGS)" define RTL8192EU_LINUX_CONFIG_FIXUPS $(call KCONFIG_ENABLE_OPT,CONFIG_NET)
Signature · 6 lines
2.34.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Review
Quoted 6 lines · Giulio Benetti
Let's disable the
CONFIG_PLATFORM_I386_PCthat is set to y by default involving the endianness to be set to little. This way we can set the CFLAGS according to architecture with some default define like:(quoted diff) +0
-3-DCONFIG_IOCTL_CFG80211 -DRTW_USE_CFG80211_STA_EVENT -Wno-error
Fixes:
http://autobuild.buildroot.net/results/13a/13a809570423ead33628663033db4c3c4001a79b/
Quoted 28 lines
Suggested-by Arnout Vandecappelle <[email protected]>Signed-off-by Giulio Benetti <[email protected]>--- package/rtl8192eu/rtl8192eu.mk | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-)package/rtl8192eu/rtl8192eu.mk +8
-1@@ -7,9 +7,16 @@ RTL8192EU_VERSION = 94bce7798bbb18de6d8b1646dedb2511f24867d3 RTL8192EU_SITE = $(call github,clnhub,rtl8192eu-linux,$(RTL8192EU_VERSION)) RTL8192EU_LICENSE = GPL-2.0 + +RTL8192EU_USER_EXTRA_CFLAGS = -DCONFIG_$(call qstrip,$(BR2_ENDIAN))_ENDIAN \ + -DCONFIG_IOCTL_CFG80211 \ + -DRTW_USE_CFG80211_STA_EVENT \ + -Wno-error + RTL8192EU_MODULE_MAKE_OPTS = \ + CONFIG_PLATFORM_I386_PC=n \ CONFIG_RTL8192EU=m \ - USER_EXTRA_CFLAGS="-Wno-error" + USER_EXTRA_CFLAGS="$(RTL8192EU_USER_EXTRA_CFLAGS)" define RTL8192EU_LINUX_CONFIG_FIXUPS $(call KCONFIG_ENABLE_OPT,CONFIG_NET)
Signature · 6 lines
Giulio Benetti Benetti Engineering sas _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 11 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Giulio" == Giulio Benetti <[email protected]> writes:
Let's disable the
CONFIG_PLATFORM_I386_PCthat is set to y by default involving the endianness to be set to little. This way we can set the CFLAGS according to architecture with some default define like:(quoted diff) +0
-3-DCONFIG_IOCTL_CFG80211 -DRTW_USE_CFG80211_STA_EVENT -Wno-errorSuggested-by Arnout Vandecappelle <[email protected]>Signed-off-by Giulio Benetti <[email protected]>
Committed, thanks.
Signature · 5 lines
Bye, Peter Korsgaard _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 11 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Giulio" == Giulio Benetti <[email protected]> writes:
Let's disable the
CONFIG_PLATFORM_I386_PCthat is set to y by default involving the endianness to be set to little. This way we can set the CFLAGS according to architecture with some default define like:(quoted diff) +0
-3-DCONFIG_IOCTL_CFG80211 -DRTW_USE_CFG80211_STA_EVENT -Wno-errorSuggested-by Arnout Vandecappelle <[email protected]>Signed-off-by Giulio Benetti <[email protected]>
Committed to 2022.11.x, thanks.
Signature · 5 lines
Bye, Peter Korsgaard _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot