From dc7685e2c59d8f11b9347302dd34d73b7d9c3981 Mon Sep 17 00:00:00 2001 From: Thomas Fitzsimmons Date: Thu, 26 Jul 2018 22:55:37 -0400 Subject: [PATCH] arm: bcm7445: Fix parallel make race condition Move the contents of prior_stage.h into bcmstb.h to prevent a build failure when bcmstb.h is #include'ed before the asm/arch symbolic link is present. Signed-off-by: Thomas Fitzsimmons --- .../mach-bcmstb/include/mach/prior_stage.h | 30 ------------------- include/configs/bcmstb.h | 20 ++++++++++++- 2 files changed, 19 insertions(+), 31 deletions(-) delete mode 100644 arch/arm/mach-bcmstb/include/mach/prior_stage.h diff --git a/arch/arm/mach-bcmstb/include/mach/prior_stage.h b/arch/arm/mach-bcmstb/include/mach/prior_stage.h deleted file mode 100644 index 6c36c6810a..0000000000 --- a/arch/arm/mach-bcmstb/include/mach/prior_stage.h +++ /dev/null @@ -1,30 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0+ */ -/* - * (C) Copyright 2018 Cisco Systems, Inc. - * - * Author: Thomas Fitzsimmons - */ - -#ifndef _BCMSTB_PRIOR_STAGE_H -#define _BCMSTB_PRIOR_STAGE_H - -#ifndef __ASSEMBLY__ - -#include - -struct bcmstb_boot_parameters { - u32 r0; - u32 r1; - u32 r2; - u32 r3; - u32 sp; - u32 lr; -}; - -extern struct bcmstb_boot_parameters bcmstb_boot_parameters; - -extern phys_addr_t prior_stage_fdt_address; - -#endif /* __ASSEMBLY__ */ - -#endif /* _BCMSTB_PRIOR_STAGE_H */ diff --git a/include/configs/bcmstb.h b/include/configs/bcmstb.h index 8c6178042e..262ef54638 100644 --- a/include/configs/bcmstb.h +++ b/include/configs/bcmstb.h @@ -12,7 +12,25 @@ #include "version.h" #include -#include + +#ifndef __ASSEMBLY__ + +#include + +struct bcmstb_boot_parameters { + u32 r0; + u32 r1; + u32 r2; + u32 r3; + u32 sp; + u32 lr; +}; + +extern struct bcmstb_boot_parameters bcmstb_boot_parameters; + +extern phys_addr_t prior_stage_fdt_address; + +#endif /* __ASSEMBLY__ */ /* * Generic board configuration. -- 2.25.1