From: Yann E. MORIN <yann.morin.1998@free.fr>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v7 1/1] rtl8821au: new package
Date: Sat, 25 Jul 2015 18:29:32 +0200 [thread overview]
Message-ID: <20150725162932.GK3662@free.fr> (raw)
In-Reply-To: <1437777122-28383-1-git-send-email-christian@paral.in>
Christian, All,
On 2015-07-24 15:32 -0700, Christian Stewart spake thusly:
> This patch adds the rtl8821au wifi driver. The driver is sourced from
> ulli-kroll's work on GitHub, which includes various fixes and better LED
> handling. Currently USB3 support is broken in this driver - it will
> only connect to the EHCI controller in a USB3 port.
>
> Signed-off-by: Christian Stewart <christian@paral.in>
One final note:
[--SNIP--]
> diff --git a/package/rtl8821au/rtl8821au.hash b/package/rtl8821au/rtl8821au.hash
> new file mode 100644
> index 0000000..d54d3c3
> --- /dev/null
> +++ b/package/rtl8821au/rtl8821au.hash
> @@ -0,0 +1 @@
> +sha256 93beaf608880ecbca03bbeb8251b91d16e17724b36158b0571d1cebb7b4e5914 rtl8821au-f58e4a7fb27551bdbb4aee9db6086dd6ad996c8d.tar.gz
> diff --git a/package/rtl8821au/rtl8821au.mk b/package/rtl8821au/rtl8821au.mk
> new file mode 100644
> index 0000000..42f4cdd
> --- /dev/null
> +++ b/package/rtl8821au/rtl8821au.mk
> @@ -0,0 +1,21 @@
> +################################################################################
> +#
> +# rtl8821au
> +#
> +################################################################################
> +
> +RTL8821AU_VERSION = f58e4a7fb27551bdbb4aee9db6086dd6ad996c8d
> +RTL8821AU_SITE = $(call github,ulli-kroll,rtl8821au,$(RTL8821AU_VERSION))
> +RTL8821AU_CFLAGS_ENDIAN = -DCONFIG_$(call qstrip,$(BR2_ENDIAN))_ENDIAN
> +
> +RTL8821AU_MODULE_MAKE_OPTS = \
> + CONFIG_RTL8812AU_8821AU=m \
> + KVER=$(LINUX_VERSION_PROBED) \
> + USER_EXTRA_CFLAGS=$(RTL8821AU_CFLAGS_ENDIAN)
> +
> +define RTL8821AU_INSTALL_TARGET_CMDS
> + $(INSTALL) -D -m 0644 $(@D)/firmware/* $(TARGET_DIR)/lib/firmware/rtlwifi/
> +endef
Although what you did is technically valid, I believe this should
probably be done using a post-install-target hook, like Luca did or his
rtl8188eu driver:
https://patchwork.ozlabs.org/patch/499980/
The reasonning behind this is that the kernel-module infra is
implemented as post-install hooks, the firmware is part of the driver,
and _INSTALL_TARGET_CMDS could be interpreted as to be used for the
userland part (i.e. not the kernel module).
This is only a semantic reason; technically it does work, but for
consistency across all packages that provide kernel modules, I'd prefer
we use one solution of the other and that we do not mix the two.
Care to fix that too before you respin, please?
Thanks! :-)
Regards,
Yann E. MORIN.
> +$(eval $(kernel-module))
> +$(eval $(generic-package))
> --
> 2.1.4
>
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
prev parent reply other threads:[~2015-07-25 16:29 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-24 22:32 [Buildroot] [PATCH v7 1/1] rtl8821au: new package Christian Stewart
2015-07-25 10:01 ` Yann E. MORIN
2015-07-25 10:16 ` Yann E. MORIN
2015-07-25 13:22 ` Luca Ceresoli
2015-07-25 14:32 ` Yann E. MORIN
2015-07-25 15:57 ` Luca Ceresoli
2015-07-25 16:29 ` Yann E. MORIN [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150725162932.GK3662@free.fr \
--to=yann.morin.1998@free.fr \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox