Remove including timestamp.h in version.h
Header file version.h does not use anything from timestamp.h. Including of timestamp.h has side effect which cause recompiling object file at every make run because timestamp.h changes at every run. So remove timestamp.h from version.h and include timestamp.h in files which needs it. This change reduce recompilation time of final U-Boot binary when U-Boot source files were not changed as less source files needs to be recompiled. Signed-off-by: Pali Rohár <pali@kernel.org> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com> [trini: Add in lib/acpi/acpi_table.c and test/dm/acpi.c, rework a few others] Signed-off-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
parent
bc21ccbaaa
commit
121a165c51
@ -16,6 +16,10 @@
|
|||||||
#include <asm/arch-rockchip/bootrom.h>
|
#include <asm/arch-rockchip/bootrom.h>
|
||||||
#include <linux/bitops.h>
|
#include <linux/bitops.h>
|
||||||
|
|
||||||
|
#if CONFIG_IS_ENABLED(BANNER_PRINT)
|
||||||
|
#include <timestamp.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#define TIMER_LOAD_COUNT_L 0x00
|
#define TIMER_LOAD_COUNT_L 0x00
|
||||||
#define TIMER_LOAD_COUNT_H 0x04
|
#define TIMER_LOAD_COUNT_H 0x04
|
||||||
#define TIMER_CONTROL_REG 0x10
|
#define TIMER_CONTROL_REG 0x10
|
||||||
|
@ -20,6 +20,7 @@
|
|||||||
#include <env.h>
|
#include <env.h>
|
||||||
#include <spi.h>
|
#include <spi.h>
|
||||||
#include <i2c.h>
|
#include <i2c.h>
|
||||||
|
#include <timestamp.h>
|
||||||
#include <version.h>
|
#include <version.h>
|
||||||
#include <vsprintf.h>
|
#include <vsprintf.h>
|
||||||
#include <linux/delay.h>
|
#include <linux/delay.h>
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
|
|
||||||
#include <common.h>
|
#include <common.h>
|
||||||
#include <command.h>
|
#include <command.h>
|
||||||
|
#include <timestamp.h>
|
||||||
#include <version.h>
|
#include <version.h>
|
||||||
#include <version_string.h>
|
#include <version_string.h>
|
||||||
#include <linux/compiler.h>
|
#include <linux/compiler.h>
|
||||||
|
@ -24,6 +24,9 @@
|
|||||||
#include <nand.h>
|
#include <nand.h>
|
||||||
#include <fat.h>
|
#include <fat.h>
|
||||||
#include <u-boot/crc.h>
|
#include <u-boot/crc.h>
|
||||||
|
#if CONFIG_IS_ENABLED(BANNER_PRINT)
|
||||||
|
#include <timestamp.h>
|
||||||
|
#endif
|
||||||
#include <version.h>
|
#include <version.h>
|
||||||
#include <image.h>
|
#include <image.h>
|
||||||
#include <malloc.h>
|
#include <malloc.h>
|
||||||
|
@ -9,8 +9,8 @@
|
|||||||
#include <div64.h>
|
#include <div64.h>
|
||||||
#include <dm.h>
|
#include <dm.h>
|
||||||
#include <env.h>
|
#include <env.h>
|
||||||
#include <generated/timestamp_autogenerated.h>
|
|
||||||
#include <rtc.h>
|
#include <rtc.h>
|
||||||
|
#include <timestamp.h>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* struct emul_rtc - private data for emulated RTC driver
|
* struct emul_rtc - private data for emulated RTC driver
|
||||||
|
@ -7,8 +7,6 @@
|
|||||||
#ifndef __VERSION_H__
|
#ifndef __VERSION_H__
|
||||||
#define __VERSION_H__
|
#define __VERSION_H__
|
||||||
|
|
||||||
#include <timestamp.h>
|
|
||||||
|
|
||||||
#ifndef DO_DEPS_ONLY
|
#ifndef DO_DEPS_ONLY
|
||||||
#include "generated/version_autogenerated.h"
|
#include "generated/version_autogenerated.h"
|
||||||
#endif
|
#endif
|
||||||
|
@ -11,6 +11,7 @@
|
|||||||
#include <log.h>
|
#include <log.h>
|
||||||
#include <mapmem.h>
|
#include <mapmem.h>
|
||||||
#include <tables_csum.h>
|
#include <tables_csum.h>
|
||||||
|
#include <timestamp.h>
|
||||||
#include <version.h>
|
#include <version.h>
|
||||||
#include <acpi/acpi_table.h>
|
#include <acpi/acpi_table.h>
|
||||||
#include <asm/global_data.h>
|
#include <asm/global_data.h>
|
||||||
|
@ -11,6 +11,7 @@
|
|||||||
#include <dm.h>
|
#include <dm.h>
|
||||||
#include <malloc.h>
|
#include <malloc.h>
|
||||||
#include <mapmem.h>
|
#include <mapmem.h>
|
||||||
|
#include <timestamp.h>
|
||||||
#include <version.h>
|
#include <version.h>
|
||||||
#include <tables_csum.h>
|
#include <tables_csum.h>
|
||||||
#include <version.h>
|
#include <version.h>
|
||||||
|
Loading…
Reference in New Issue
Block a user