* [Buildroot] [PATCH v2 1/1] rtl8821au: new package
@ 2015-07-20 22:32 Christian Stewart
2015-07-22 9:41 ` Luca Ceresoli
0 siblings, 1 reply; 2+ messages in thread
From: Christian Stewart @ 2015-07-20 22:32 UTC (permalink / raw)
To: buildroot
Adding a kernel module based USB wifi driver. There is no official
version of this driver that works properly on ARM and with newer USB
WiFi cards. This driver version builds module 8821au and is based on a
kernel module release from ASUS with various fixes integrated in.
[Thomas, Yann:
- Using the new kernel-module setup]
Signed-off-by: Christian Stewart <christian@paral.in>
---
package/Config.in | 1 +
package/rtl8821au/Config.in | 7 +++++++
package/rtl8821au/rtl8821au.hash | 1 +
package/rtl8821au/rtl8821au.mk | 25 +++++++++++++++++++++++++
4 files changed, 34 insertions(+)
create mode 100644 package/rtl8821au/Config.in
create mode 100644 package/rtl8821au/rtl8821au.hash
create mode 100644 package/rtl8821au/rtl8821au.mk
diff --git a/package/Config.in b/package/Config.in
index 20ecd38..7207bc6 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -403,6 +403,7 @@ endif
source "package/read-edid/Config.in"
source "package/rng-tools/Config.in"
source "package/rpi-userland/Config.in"
+ source "package/rtl8821au/Config.in"
source "package/sane-backends/Config.in"
source "package/sdparm/Config.in"
source "package/setserial/Config.in"
diff --git a/package/rtl8821au/Config.in b/package/rtl8821au/Config.in
new file mode 100644
index 0000000..0a8cd74
--- /dev/null
+++ b/package/rtl8821au/Config.in
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_RTL8821AU
+ bool "rtl8821au"
+ depends on BR2_LINUX_KERNEL
+ help
+ rtl8821au wifi driver
+
+ https://github.com/paralin/rtl8821au
diff --git a/package/rtl8821au/rtl8821au.hash b/package/rtl8821au/rtl8821au.hash
new file mode 100644
index 0000000..21f47a2
--- /dev/null
+++ b/package/rtl8821au/rtl8821au.hash
@@ -0,0 +1 @@
+sha256 7ab9aae237ff562d5c40675115ffb9e36a4774490df0a6a8a4c7746dfd567e14 rtl8821au-4.3.14.tar.gz
diff --git a/package/rtl8821au/rtl8821au.mk b/package/rtl8821au/rtl8821au.mk
new file mode 100644
index 0000000..61cce23
--- /dev/null
+++ b/package/rtl8821au/rtl8821au.mk
@@ -0,0 +1,25 @@
+################################################################################
+#
+# rtl8821au
+#
+################################################################################
+
+RTL8821AU_VERSION = 4.3.14
+RTL8821AU_SITE = $(call github,paralin,rtl8821au,v$(RTL8821AU_VERSION))
+ifeq ($(call qstrip,$(BR2_ENDAIN)),BIG)
+RTL8821AU_CFLAGS_ENDIAN = -DCONFIG_BIG_ENDIAN
+else
+RTL8821AU_CFLAGS_ENDIAN = -DCONFIG_LITTLE_ENDIAN
+endif
+
+define RTL8821AU_CONFIGURE_CMDS
+ $(SED) "s/CONFIG_PLATFORM_I386_PC = y/CONFIG_PLATFORM_I386_PC = n/g" $(@D)/Makefile
+endef
+
+RTL8821AU_MODULE_MAKE_OPTS = \
+ CONFIG_RTL8821AU=m \
+ KVER=$(LINUX_VERSION_PROBED) \
+ USER_EXTRA_CFLAGS=$(RTL8821AU_CFLAGS_ENDIAN)
+
+$(eval $(kernel-module))
+$(eval $(generic-package))
--
2.1.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH v2 1/1] rtl8821au: new package
2015-07-20 22:32 [Buildroot] [PATCH v2 1/1] rtl8821au: new package Christian Stewart
@ 2015-07-22 9:41 ` Luca Ceresoli
0 siblings, 0 replies; 2+ messages in thread
From: Luca Ceresoli @ 2015-07-22 9:41 UTC (permalink / raw)
To: buildroot
Dear Christian,
Christian Stewart wrote:
> Adding a kernel module based USB wifi driver. There is no official
> version of this driver that works properly on ARM and with newer USB
> WiFi cards. This driver version builds module 8821au and is based on a
> kernel module release from ASUS with various fixes integrated in.
>
> [Thomas, Yann:
> - Using the new kernel-module setup]
>
> Signed-off-by: Christian Stewart <christian@paral.in>
> ---
[...]
> --- /dev/null
> +++ b/package/rtl8821au/rtl8821au.mk
> @@ -0,0 +1,25 @@
> +################################################################################
> +#
> +# rtl8821au
> +#
> +################################################################################
> +
> +RTL8821AU_VERSION = 4.3.14
> +RTL8821AU_SITE = $(call github,paralin,rtl8821au,v$(RTL8821AU_VERSION))
> +ifeq ($(call qstrip,$(BR2_ENDAIN)),BIG)
> +RTL8821AU_CFLAGS_ENDIAN = -DCONFIG_BIG_ENDIAN
> +else
> +RTL8821AU_CFLAGS_ENDIAN = -DCONFIG_LITTLE_ENDIAN
> +endif
s/ENDAIN/ENDIAN/
Besides, since BR2_ENDIAN is an uppercase string, why not replacing
these 5 lines with (untested):
RTL8821AU_CFLAGS_ENDIAN = -DCONFIG_$(call qstrip,$(BR2_ENDIAN))_ENDIAN
--
Luca
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-07-22 9:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-20 22:32 [Buildroot] [PATCH v2 1/1] rtl8821au: new package Christian Stewart
2015-07-22 9:41 ` Luca Ceresoli
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox