All of lore.kernel.org
 help / color / mirror / Atom feed
From: Antoine Tenart <antoine.tenart@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] package: add support for the wf111 WiFi driver and its utilities
Date: Wed, 28 Jan 2015 17:24:42 +0100	[thread overview]
Message-ID: <20150128162442.GD11705@kwain> (raw)
In-Reply-To: <20150128161736.67c93ab7@free-electrons.com>

Thomas,

On Wed, Jan 28, 2015 at 04:17:36PM +0100, Thomas Petazzoni wrote:
> > 
> > Finally, two options must be selected in the Linux kernel configuration:
> > CONFIG_WIRELESS_EXT and CONFIG_WEXT_PRIV.
> 
> Please explain that those options are blind options, so they cannot be
> enabled by a change in linux/linux.mk. And maybe you should explain how
> the user is supposed to enable such blind options: either patch the
> kernel to make them non-blind, or enable some other random WiFi driver
> that selects them.

Will do.

> 
> Please add:
> 
> comment "wf111 needs an (e)glibc toolchain"
> 	depends on BR2_LINUX_KERNEL
> 	depends on BR2_ARM_CPU_ARMV5 || BR2_ARM_CPU_ARMV7A || BR2_i386
> 	depends on !BR2_TOOLCHAIN_USES_GLIBC

Sure.

> 
> > +		-C $(@D) PWD=$(@D) ARCH=arm \
> 
> ARCH=arm, really ? :-)

Oops :)

> 
> Please use $(LINUX_MAKE_FLAGS) instead, which already contains ARCH=
> correctly.
> 
> > +		CC=$(TARGET_CC) LD=$(TARGET_LD) \
> 
> With $(LINUX_MAKE_FLAGS) containing CROSS_COMPILE, this should probably
> become unnecessary.

I'll update in v2.

> 
> > +		KDIR=$(LINUX_DIR) \
> > +		install_static
> > +endef
> > +
> > +define WF111_INSTALL_TARGET_CMDS
> > +	rsync -a $(@D)/output/ $(TARGET_DIR)
> 
> We typically don't use rsync for such things. What does $(@D)/output
> contains exactly? We would more typically use:
> 
> 	cp -dpfr $(@D)/output/* $(TARGET_DIR)

Utility binaries, the firmware and the kernel module, all in theirs
respective directories. `cp -dpfr` should be fine, I'll update.


I'll also fix all the typos, and I'll add a check to be sure
BR2_PACKAGE_WF111_TARBALL_PATH is correctly filled.

Thanks!

Antoine

-- 
Antoine T?nart, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

      reply	other threads:[~2015-01-28 16:24 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-28 13:54 [Buildroot] [PATCH] package: add support for the wf111 WiFi driver and its utilities Antoine Tenart
2015-01-28 15:17 ` Thomas Petazzoni
2015-01-28 16:24   ` Antoine Tenart [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=20150128162442.GD11705@kwain \
    --to=antoine.tenart@free-electrons.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.