diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2020-11-23 15:12:39 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2020-11-24 09:35:33 +0100 |
commit | 1d6ac29259c2cd77fc2d57c1a243277a41b585a4 (patch) | |
tree | 671f1f221cccc4b859e13843786bb59cf32087c0 | |
parent | e1ddb7e8580df72f0ac6350511eaf899c10e35e1 (diff) | |
download | barebox-1d6ac29259c2cd77fc2d57c1a243277a41b585a4.tar.gz barebox-1d6ac29259c2cd77fc2d57c1a243277a41b585a4.tar.xz |
boot: drop uneeded header #includes
Boot entry providers register themselves, so there is no need for the
common boot code to know about bootchooser or blspec or include their
headers. Remove them as well as other headers that aren't strictly
necessary and, if needed, include headers they include directly.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r-- | common/boot.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/common/boot.c b/common/boot.c index 90d504e3c3..586507e1ec 100644 --- a/common/boot.c +++ b/common/boot.c @@ -9,22 +9,19 @@ * General Public License for more details. */ -#include <environment.h> -#include <bootchooser.h> +#include <boot.h> #include <globalvar.h> #include <magicvar.h> #include <watchdog.h> #include <command.h> #include <readkey.h> #include <common.h> -#include <blspec.h> #include <libgen.h> -#include <malloc.h> #include <bootm.h> #include <glob.h> #include <init.h> #include <menu.h> -#include <fs.h> +#include <unistd.h> #include <linux/stat.h> |