mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-24 06:24:17 +00:00
boot: Remove <common.h> and add needed includes
Remove <common.h> from all "boot/" files and when needed add missing include files directly. Signed-off-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
parent
c93cc8ed41
commit
c4b646d436
43 changed files with 6 additions and 43 deletions
|
@ -2,7 +2,6 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2017 The Android Open Source Project
|
* Copyright (C) 2017 The Android Open Source Project
|
||||||
*/
|
*/
|
||||||
#include <common.h>
|
|
||||||
#include <android_ab.h>
|
#include <android_ab.h>
|
||||||
#include <android_bootloader_message.h>
|
#include <android_bootloader_message.h>
|
||||||
#include <blk.h>
|
#include <blk.h>
|
||||||
|
|
|
@ -7,7 +7,6 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <boot_fit.h>
|
#include <boot_fit.h>
|
||||||
#include <common.h>
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <image.h>
|
#include <image.h>
|
||||||
#include <log.h>
|
#include <log.h>
|
||||||
|
|
|
@ -6,7 +6,6 @@
|
||||||
|
|
||||||
#define LOG_CATEGORY UCLASS_BOOTSTD
|
#define LOG_CATEGORY UCLASS_BOOTSTD
|
||||||
|
|
||||||
#include <common.h>
|
|
||||||
#include <dm.h>
|
#include <dm.h>
|
||||||
#include <bootdev.h>
|
#include <bootdev.h>
|
||||||
#include <bootflow.h>
|
#include <bootflow.h>
|
||||||
|
|
|
@ -6,7 +6,6 @@
|
||||||
|
|
||||||
#define LOG_CATEGORY UCLASS_BOOTSTD
|
#define LOG_CATEGORY UCLASS_BOOTSTD
|
||||||
|
|
||||||
#include <common.h>
|
|
||||||
#include <bootdev.h>
|
#include <bootdev.h>
|
||||||
#include <bootflow.h>
|
#include <bootflow.h>
|
||||||
#include <bootmeth.h>
|
#include <bootmeth.h>
|
||||||
|
|
|
@ -8,7 +8,6 @@
|
||||||
|
|
||||||
#define LOG_CATEGORY UCLASS_BOOTSTD
|
#define LOG_CATEGORY UCLASS_BOOTSTD
|
||||||
|
|
||||||
#include <common.h>
|
|
||||||
#include <bootflow.h>
|
#include <bootflow.h>
|
||||||
#include <bootstd.h>
|
#include <bootstd.h>
|
||||||
#include <cli.h>
|
#include <cli.h>
|
||||||
|
|
|
@ -5,7 +5,6 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef USE_HOSTCC
|
#ifndef USE_HOSTCC
|
||||||
#include <common.h>
|
|
||||||
#include <bootm.h>
|
#include <bootm.h>
|
||||||
#include <bootstage.h>
|
#include <bootstage.h>
|
||||||
#include <cli.h>
|
#include <cli.h>
|
||||||
|
|
|
@ -4,7 +4,6 @@
|
||||||
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <common.h>
|
|
||||||
#include <bootm.h>
|
#include <bootm.h>
|
||||||
#include <bootstage.h>
|
#include <bootstage.h>
|
||||||
#include <cpu_func.h>
|
#include <cpu_func.h>
|
||||||
|
|
|
@ -6,7 +6,6 @@
|
||||||
|
|
||||||
#define LOG_CATEGORY UCLASS_BOOTSTD
|
#define LOG_CATEGORY UCLASS_BOOTSTD
|
||||||
|
|
||||||
#include <common.h>
|
|
||||||
#include <blk.h>
|
#include <blk.h>
|
||||||
#include <bootflow.h>
|
#include <bootflow.h>
|
||||||
#include <bootmeth.h>
|
#include <bootmeth.h>
|
||||||
|
|
|
@ -8,7 +8,6 @@
|
||||||
|
|
||||||
#define LOG_CATEGORY UCLASS_BOOTSTD
|
#define LOG_CATEGORY UCLASS_BOOTSTD
|
||||||
|
|
||||||
#include <common.h>
|
|
||||||
#include <blk.h>
|
#include <blk.h>
|
||||||
#include <bootdev.h>
|
#include <bootdev.h>
|
||||||
#include <bootflow.h>
|
#include <bootflow.h>
|
||||||
|
|
|
@ -8,7 +8,6 @@
|
||||||
|
|
||||||
#define LOG_CATEGORY UCLASS_BOOTSTD
|
#define LOG_CATEGORY UCLASS_BOOTSTD
|
||||||
|
|
||||||
#include <common.h>
|
|
||||||
#include <bootdev.h>
|
#include <bootdev.h>
|
||||||
#include <bootflow.h>
|
#include <bootflow.h>
|
||||||
#include <bootmeth.h>
|
#include <bootmeth.h>
|
||||||
|
|
|
@ -8,7 +8,6 @@
|
||||||
|
|
||||||
#define LOG_CATEGORY UCLASS_BOOTSTD
|
#define LOG_CATEGORY UCLASS_BOOTSTD
|
||||||
|
|
||||||
#include <common.h>
|
|
||||||
#include <bootdev.h>
|
#include <bootdev.h>
|
||||||
#include <bootflow.h>
|
#include <bootflow.h>
|
||||||
#include <bootmeth.h>
|
#include <bootmeth.h>
|
||||||
|
|
|
@ -8,7 +8,6 @@
|
||||||
|
|
||||||
#define LOG_CATEGORY UCLASS_BOOTSTD
|
#define LOG_CATEGORY UCLASS_BOOTSTD
|
||||||
|
|
||||||
#include <common.h>
|
|
||||||
#include <bootdev.h>
|
#include <bootdev.h>
|
||||||
#include <bootflow.h>
|
#include <bootflow.h>
|
||||||
#include <bootmeth.h>
|
#include <bootmeth.h>
|
||||||
|
|
|
@ -8,7 +8,6 @@
|
||||||
|
|
||||||
#define LOG_CATEGORY UCLASS_BOOTSTD
|
#define LOG_CATEGORY UCLASS_BOOTSTD
|
||||||
|
|
||||||
#include <common.h>
|
|
||||||
#include <bootdev.h>
|
#include <bootdev.h>
|
||||||
#include <bootflow.h>
|
#include <bootflow.h>
|
||||||
#include <bootmeth.h>
|
#include <bootmeth.h>
|
||||||
|
|
|
@ -8,7 +8,6 @@
|
||||||
|
|
||||||
#define LOG_CATEGORY UCLASS_BOOTSTD
|
#define LOG_CATEGORY UCLASS_BOOTSTD
|
||||||
|
|
||||||
#include <common.h>
|
|
||||||
#include <command.h>
|
#include <command.h>
|
||||||
#include <bootdev.h>
|
#include <bootdev.h>
|
||||||
#include <bootflow.h>
|
#include <bootflow.h>
|
||||||
|
|
|
@ -8,7 +8,6 @@
|
||||||
|
|
||||||
#define LOG_CATEGORY UCLASS_BOOTSTD
|
#define LOG_CATEGORY UCLASS_BOOTSTD
|
||||||
|
|
||||||
#include <common.h>
|
|
||||||
#include <bootdev.h>
|
#include <bootdev.h>
|
||||||
#include <bootflow.h>
|
#include <bootflow.h>
|
||||||
#include <bootmeth.h>
|
#include <bootmeth.h>
|
||||||
|
|
|
@ -8,7 +8,6 @@
|
||||||
|
|
||||||
#define LOG_CATEGORY UCLASS_BOOTSTD
|
#define LOG_CATEGORY UCLASS_BOOTSTD
|
||||||
|
|
||||||
#include <common.h>
|
|
||||||
#include <blk.h>
|
#include <blk.h>
|
||||||
#include <bootflow.h>
|
#include <bootflow.h>
|
||||||
#include <bootmeth.h>
|
#include <bootmeth.h>
|
||||||
|
|
|
@ -4,12 +4,13 @@
|
||||||
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <common.h>
|
#include <stdio.h>
|
||||||
#include <bootretry.h>
|
#include <bootretry.h>
|
||||||
#include <cli.h>
|
#include <cli.h>
|
||||||
#include <env.h>
|
#include <env.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
#include <vsprintf.h>
|
||||||
#include <watchdog.h>
|
#include <watchdog.h>
|
||||||
|
|
||||||
static uint64_t endtime; /* must be set, default is instant timeout */
|
static uint64_t endtime; /* must be set, default is instant timeout */
|
||||||
|
|
|
@ -6,7 +6,6 @@
|
||||||
* Written by Simon Glass <sjg@chromium.org>
|
* Written by Simon Glass <sjg@chromium.org>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <common.h>
|
|
||||||
#include <bootflow.h>
|
#include <bootflow.h>
|
||||||
#include <bootstd.h>
|
#include <bootstd.h>
|
||||||
#include <dm.h>
|
#include <dm.h>
|
||||||
|
|
|
@ -8,7 +8,6 @@
|
||||||
|
|
||||||
#define LOG_CATEGORY LOGC_EXPO
|
#define LOG_CATEGORY LOGC_EXPO
|
||||||
|
|
||||||
#include <common.h>
|
|
||||||
#include <abuf.h>
|
#include <abuf.h>
|
||||||
#include <cedit.h>
|
#include <cedit.h>
|
||||||
#include <cli.h>
|
#include <cli.h>
|
||||||
|
|
|
@ -4,7 +4,6 @@
|
||||||
* Written by Simon Glass <sjg@chromium.org>
|
* Written by Simon Glass <sjg@chromium.org>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <common.h>
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <image.h>
|
#include <image.h>
|
||||||
#include <log.h>
|
#include <log.h>
|
||||||
|
|
|
@ -8,7 +8,6 @@
|
||||||
|
|
||||||
#define LOG_CATEGORY LOGC_EXPO
|
#define LOG_CATEGORY LOGC_EXPO
|
||||||
|
|
||||||
#include <common.h>
|
|
||||||
#include <dm.h>
|
#include <dm.h>
|
||||||
#include <expo.h>
|
#include <expo.h>
|
||||||
#include <malloc.h>
|
#include <malloc.h>
|
||||||
|
|
|
@ -8,7 +8,6 @@
|
||||||
|
|
||||||
#define LOG_CATEGORY LOGC_EXPO
|
#define LOG_CATEGORY LOGC_EXPO
|
||||||
|
|
||||||
#include <common.h>
|
|
||||||
#include <expo.h>
|
#include <expo.h>
|
||||||
#include <fdtdec.h>
|
#include <fdtdec.h>
|
||||||
#include <log.h>
|
#include <log.h>
|
||||||
|
|
|
@ -6,7 +6,6 @@
|
||||||
* Stephen Warren <swarren@wwwdotorg.org>
|
* Stephen Warren <swarren@wwwdotorg.org>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <common.h>
|
|
||||||
#include <dm.h>
|
#include <dm.h>
|
||||||
#include <fdt_support.h>
|
#include <fdt_support.h>
|
||||||
#include <asm/global_data.h>
|
#include <asm/global_data.h>
|
||||||
|
|
|
@ -6,7 +6,6 @@
|
||||||
* Copyright 2010-2011 Freescale Semiconductor, Inc.
|
* Copyright 2010-2011 Freescale Semiconductor, Inc.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <common.h>
|
|
||||||
#include <abuf.h>
|
#include <abuf.h>
|
||||||
#include <env.h>
|
#include <env.h>
|
||||||
#include <log.h>
|
#include <log.h>
|
||||||
|
|
|
@ -6,7 +6,6 @@
|
||||||
|
|
||||||
#include <image-android-dt.h>
|
#include <image-android-dt.h>
|
||||||
#include <dt_table.h>
|
#include <dt_table.h>
|
||||||
#include <common.h>
|
|
||||||
#include <linux/libfdt.h>
|
#include <linux/libfdt.h>
|
||||||
#include <mapmem.h>
|
#include <mapmem.h>
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
* Copyright (c) 2011 Sebastian Andrzej Siewior <bigeasy@linutronix.de>
|
* Copyright (c) 2011 Sebastian Andrzej Siewior <bigeasy@linutronix.de>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <common.h>
|
|
||||||
#include <env.h>
|
#include <env.h>
|
||||||
#include <image.h>
|
#include <image.h>
|
||||||
#include <image-android-dt.h>
|
#include <image-android-dt.h>
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <common.h>
|
#include <config.h>
|
||||||
#include <bootstage.h>
|
#include <bootstage.h>
|
||||||
#include <cpu_func.h>
|
#include <cpu_func.h>
|
||||||
#include <display_options.h>
|
#include <display_options.h>
|
||||||
|
|
|
@ -7,7 +7,6 @@
|
||||||
#include "mkimage.h"
|
#include "mkimage.h"
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#else
|
#else
|
||||||
#include <common.h>
|
|
||||||
#include <malloc.h>
|
#include <malloc.h>
|
||||||
#include <asm/global_data.h>
|
#include <asm/global_data.h>
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
DECLARE_GLOBAL_DATA_PTR;
|
||||||
|
|
|
@ -8,7 +8,6 @@
|
||||||
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <common.h>
|
|
||||||
#include <command.h>
|
#include <command.h>
|
||||||
#include <fdt_support.h>
|
#include <fdt_support.h>
|
||||||
#include <fdtdec.h>
|
#include <fdtdec.h>
|
||||||
|
|
|
@ -7,7 +7,6 @@
|
||||||
#include "mkimage.h"
|
#include "mkimage.h"
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#else
|
#else
|
||||||
#include <common.h>
|
|
||||||
#include <log.h>
|
#include <log.h>
|
||||||
#include <malloc.h>
|
#include <malloc.h>
|
||||||
#include <asm/global_data.h>
|
#include <asm/global_data.h>
|
||||||
|
|
|
@ -19,7 +19,6 @@
|
||||||
#else
|
#else
|
||||||
#include <linux/compiler.h>
|
#include <linux/compiler.h>
|
||||||
#include <linux/sizes.h>
|
#include <linux/sizes.h>
|
||||||
#include <common.h>
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <log.h>
|
#include <log.h>
|
||||||
#include <mapmem.h>
|
#include <mapmem.h>
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
* Copyright (C) 2021 Philippe Reynes <philippe.reynes@softathome.com>
|
* Copyright (C) 2021 Philippe Reynes <philippe.reynes@softathome.com>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <common.h>
|
|
||||||
#include <asm/global_data.h>
|
#include <asm/global_data.h>
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
DECLARE_GLOBAL_DATA_PTR;
|
||||||
#include <image.h>
|
#include <image.h>
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
* Copyright (c) 2013, Google Inc.
|
* Copyright (c) 2013, Google Inc.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <common.h>
|
|
||||||
#include <log.h>
|
#include <log.h>
|
||||||
#include <malloc.h>
|
#include <malloc.h>
|
||||||
#include <asm/global_data.h>
|
#include <asm/global_data.h>
|
||||||
|
|
|
@ -7,7 +7,6 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef USE_HOSTCC
|
#ifndef USE_HOSTCC
|
||||||
#include <common.h>
|
|
||||||
#include <env.h>
|
#include <env.h>
|
||||||
#include <display_options.h>
|
#include <display_options.h>
|
||||||
#include <init.h>
|
#include <init.h>
|
||||||
|
|
|
@ -4,7 +4,6 @@
|
||||||
* Copyright (c) 2014, NVIDIA CORPORATION. All rights reserved.
|
* Copyright (c) 2014, NVIDIA CORPORATION. All rights reserved.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <common.h>
|
|
||||||
#include <command.h>
|
#include <command.h>
|
||||||
#include <dm.h>
|
#include <dm.h>
|
||||||
#include <env.h>
|
#include <env.h>
|
||||||
|
|
|
@ -8,7 +8,6 @@
|
||||||
|
|
||||||
#define LOG_CATEGORY LOGC_EXPO
|
#define LOG_CATEGORY LOGC_EXPO
|
||||||
|
|
||||||
#include <common.h>
|
|
||||||
#include <dm.h>
|
#include <dm.h>
|
||||||
#include <expo.h>
|
#include <expo.h>
|
||||||
#include <malloc.h>
|
#include <malloc.h>
|
||||||
|
|
|
@ -8,7 +8,6 @@
|
||||||
|
|
||||||
#define LOG_CATEGORY LOGC_EXPO
|
#define LOG_CATEGORY LOGC_EXPO
|
||||||
|
|
||||||
#include <common.h>
|
|
||||||
#include <dm.h>
|
#include <dm.h>
|
||||||
#include <expo.h>
|
#include <expo.h>
|
||||||
#include <malloc.h>
|
#include <malloc.h>
|
||||||
|
|
|
@ -8,10 +8,12 @@
|
||||||
|
|
||||||
#define LOG_CATEGORY LOGC_EXPO
|
#define LOG_CATEGORY LOGC_EXPO
|
||||||
|
|
||||||
#include <common.h>
|
|
||||||
#include <expo.h>
|
#include <expo.h>
|
||||||
#include <menu.h>
|
#include <menu.h>
|
||||||
|
#include <log.h>
|
||||||
#include <video_console.h>
|
#include <video_console.h>
|
||||||
|
#include <linux/errno.h>
|
||||||
|
#include <linux/string.h>
|
||||||
#include "scene_internal.h"
|
#include "scene_internal.h"
|
||||||
|
|
||||||
int scene_textline(struct scene *scn, const char *name, uint id, uint max_chars,
|
int scene_textline(struct scene *scn, const char *name, uint id, uint max_chars,
|
||||||
|
|
|
@ -6,7 +6,6 @@
|
||||||
* Written by Simon Glass <sjg@chromium.org>
|
* Written by Simon Glass <sjg@chromium.org>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <common.h>
|
|
||||||
#include <bootmeth.h>
|
#include <bootmeth.h>
|
||||||
#include <bootstd.h>
|
#include <bootstd.h>
|
||||||
#include <dm.h>
|
#include <dm.h>
|
||||||
|
|
|
@ -8,7 +8,6 @@
|
||||||
|
|
||||||
#define LOG_CATEGORY LOGC_BOOT
|
#define LOG_CATEGORY LOGC_BOOT
|
||||||
|
|
||||||
#include <common.h>
|
|
||||||
#include <dm.h>
|
#include <dm.h>
|
||||||
#include <event.h>
|
#include <event.h>
|
||||||
#include <image.h>
|
#include <image.h>
|
||||||
|
|
|
@ -8,7 +8,6 @@
|
||||||
|
|
||||||
#define LOG_CATEGORY LOGC_BOOT
|
#define LOG_CATEGORY LOGC_BOOT
|
||||||
|
|
||||||
#include <common.h>
|
|
||||||
#include <bootdev.h>
|
#include <bootdev.h>
|
||||||
#include <bootflow.h>
|
#include <bootflow.h>
|
||||||
#include <bootmeth.h>
|
#include <bootmeth.h>
|
||||||
|
|
|
@ -8,7 +8,6 @@
|
||||||
|
|
||||||
#define LOG_CATEGORY LOGC_BOOT
|
#define LOG_CATEGORY LOGC_BOOT
|
||||||
|
|
||||||
#include <common.h>
|
|
||||||
#include <bloblist.h>
|
#include <bloblist.h>
|
||||||
#include <bootdev.h>
|
#include <bootdev.h>
|
||||||
#include <bootflow.h>
|
#include <bootflow.h>
|
||||||
|
|
|
@ -8,7 +8,6 @@
|
||||||
|
|
||||||
#define LOG_CATEGORY LOGC_BOOT
|
#define LOG_CATEGORY LOGC_BOOT
|
||||||
|
|
||||||
#include <common.h>
|
|
||||||
#include <dm.h>
|
#include <dm.h>
|
||||||
#include <bootflow.h>
|
#include <bootflow.h>
|
||||||
#include <vbe.h>
|
#include <vbe.h>
|
||||||
|
|
Loading…
Add table
Reference in a new issue