]> git.dujemihanovic.xyz Git - u-boot.git/commit
Allow command code to compile to nothing
authorSimon Glass <sjg@chromium.org>
Mon, 14 Mar 2016 01:07:33 +0000 (19:07 -0600)
committerTom Rini <trini@konsulko.com>
Tue, 22 Mar 2016 16:16:10 +0000 (12:16 -0400)
commitfb24112c19f1544129af938bb415b04241482f07
tree9d59cc93977fabeeecf28cb6deda24b4cc1006a0
parent045e6f0d4f49c83375cd30b35fb7f02d7a79478e
Allow command code to compile to nothing

When CONFIG_CMDLINE is disabled we need to remove all the command-line
code. Most can be removed by dropping the appropriate linker lists from the
images, but sub-commands must be dealt with specially.

A simple mechanism is used to avoid 'unused static function' errors.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
include/command.h