carl9170: remove carlu

The userspace utility will be become a separate project.

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
kconfig: Add error handling to KCONFIG_ALLCONFIG

- Only try to read the file specified if KCONFIG_ALL_CONFIG is set to
  something other than the empty string or "1".

- Don't use stat to check the name passed to conf_read_simple so that
  zconf_fopen can find the file in the current directory or in SRCTREE
  removing a extremely source of confusing failure, where KCONFIG_ALL_CONFIG
  was not interpreted with respect to the directory make was called in.

- If conf_read_simple fails complain clearly and stop processing.
  Allowing the simple debugging of typos.

- Clearly document the behavior so it is clear to users which
  values are treated as flags and which values are treated as
  filenames.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: Michal Marek <mmarek@suse.cz>
Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
kbuild: all{no,yes,mod,def,rand}config only read files when instructed to.

Prevent subtle surprises to both people working on the kconfig code
and people using make allnoconfig allyesconfig allmoconfig and
randconfig by only attempting to read a config file if
KCONFIG_ALLCONFIG is set.

Common sense suggests attempting to read the extra config files does
not make sense unless requested.  The documentation says the code
won't attempt to read the extra config files unless requested.
Current usage does not appear to include people depending on the code
reading the config files without the variable being set So do the
simple thing and stop reading config files when passed
all{no,yes,mod,def,rand}config unless KCONFIG_ALLCONFIG environment
variable is set.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Michal Marek <mmarek@suse.cz>
Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
carl9170 toolchain: update toolchain disk space requirements

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
carl9170: link time optimization build

Enabling LTO will hopefully lead to smaller
firmware binaries and maybe even slightly
better performance.

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
carl9170: remove eeprom_fix utility

The carl9170 driver in the kernel doesn't
have the capability anymore. Hence, this
tool is no longer needed.

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
Merge branch 'master' into radar

Conflicts:
	tools/src/CMakeLists.txt
carl9170 firmware: only compile radar generator if selected

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
carl9170 firmware: set radar pattern and tx mode setup

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
carl9170 firmware: refactor timer functions

Thanks to LTO, the timer routines can be moved into
a proper context without added overhead at runtime.

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
carl9170 firmware: move cmd.c into hostif.c

The command handler is part of the host
application interface too, so it will fit
there nicely.

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
carl9170 firmware: remove CONFIG_CARL9170FW_CAB_QUEUE

The software supported cab queue is now a standard
feature and will always be available.

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
carl9170 firmware: extract tx and rx code from wlan.c into separate files

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
Revert "kconfig: fix __enabled_ macros definition for invisible and un-selected symbols"

Dumping two lines into autoconf.h for all existing Kconfig options
results in a giant file (~16k lines) we have to process each time we
compile something.  We've weaned IS_ENABLED() and similar off of
requiring the __enabled_ definitions so now we can revert the change
which caused all the extra lines.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
kconfig: delete last traces of __enabled_ from autoconf.h

We've now fixed IS_ENABLED() and friends to not require any special
"__enabled_" prefixed versions of the normal Kconfig options, so delete
the last traces of them being generated.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
kconfig: allow long lines in config file

For some config options (CONFIG_EXTRA_FIRMWARE, for example), the length
of a config file line can exceed the 1024 byte buffer.

Switch from fgets to compat_getline to fix. compat_getline is an
internally implimented getline work-alike for portability purposes.

Signed-off-by: Cody Schafer <cody@linux.vnet.ibm.com>
Signed-off-by: Michal Marek <mmarek@suse.cz>
Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
Merge branch 'master' into radar