Commit a6a4c542d316b3401f0840ac5378743191bca851

Authored by Pavel Machek
Committed by Tom Rini
1 parent 1d2f74690c

break build if it would produce broken binary

Add an error in known-bad case so that we don't produce broken and
hard to debug binaries.

Signed-off-by: Pavel Machek <pavel@denx.de>

Showing 1 changed file with 4 additions and 0 deletions Inline Diff

arch/arm/include/asm/u-boot.h
1 /* 1 /*
2 * (C) Copyright 2002 2 * (C) Copyright 2002
3 * Sysgo Real-Time Solutions, GmbH <www.elinos.com> 3 * Sysgo Real-Time Solutions, GmbH <www.elinos.com>
4 * Marius Groeger <mgroeger@sysgo.de> 4 * Marius Groeger <mgroeger@sysgo.de>
5 * 5 *
6 * (C) Copyright 2002 6 * (C) Copyright 2002
7 * Sysgo Real-Time Solutions, GmbH <www.elinos.com> 7 * Sysgo Real-Time Solutions, GmbH <www.elinos.com>
8 * Alex Zuepke <azu@sysgo.de> 8 * Alex Zuepke <azu@sysgo.de>
9 * 9 *
10 * SPDX-License-Identifier: GPL-2.0+ 10 * SPDX-License-Identifier: GPL-2.0+
11 * 11 *
12 ******************************************************************** 12 ********************************************************************
13 * NOTE: This header file defines an interface to U-Boot. Including 13 * NOTE: This header file defines an interface to U-Boot. Including
14 * this (unmodified) header file in another file is considered normal 14 * this (unmodified) header file in another file is considered normal
15 * use of U-Boot, and does *not* fall under the heading of "derived 15 * use of U-Boot, and does *not* fall under the heading of "derived
16 * work". 16 * work".
17 ******************************************************************** 17 ********************************************************************
18 */ 18 */
19 19
20 #ifndef _U_BOOT_H_ 20 #ifndef _U_BOOT_H_
21 #define _U_BOOT_H_ 1 21 #define _U_BOOT_H_ 1
22 22
23 #ifdef CONFIG_SYS_GENERIC_BOARD 23 #ifdef CONFIG_SYS_GENERIC_BOARD
24 /* Use the generic board which requires a unified bd_info */ 24 /* Use the generic board which requires a unified bd_info */
25 #include <asm-generic/u-boot.h> 25 #include <asm-generic/u-boot.h>
26 #else 26 #else
27 27
28 #ifndef __ASSEMBLY__ 28 #ifndef __ASSEMBLY__
29 typedef struct bd_info { 29 typedef struct bd_info {
30 ulong bi_arch_number; /* unique id for this board */ 30 ulong bi_arch_number; /* unique id for this board */
31 ulong bi_boot_params; /* where this board expects params */ 31 ulong bi_boot_params; /* where this board expects params */
32 unsigned long bi_arm_freq; /* arm frequency */ 32 unsigned long bi_arm_freq; /* arm frequency */
33 unsigned long bi_dsp_freq; /* dsp core frequency */ 33 unsigned long bi_dsp_freq; /* dsp core frequency */
34 unsigned long bi_ddr_freq; /* ddr frequency */ 34 unsigned long bi_ddr_freq; /* ddr frequency */
35 struct /* RAM configuration */ 35 struct /* RAM configuration */
36 { 36 {
37 ulong start; 37 ulong start;
38 ulong size; 38 ulong size;
39 } bi_dram[CONFIG_NR_DRAM_BANKS]; 39 } bi_dram[CONFIG_NR_DRAM_BANKS];
40 } bd_t; 40 } bd_t;
41 #endif 41 #endif
42 42
43 #endif /* !CONFIG_SYS_GENERIC_BOARD */ 43 #endif /* !CONFIG_SYS_GENERIC_BOARD */
44 44
45 /* For image.h:image_check_target_arch() */ 45 /* For image.h:image_check_target_arch() */
46 #ifndef CONFIG_ARM64 46 #ifndef CONFIG_ARM64
47 #define IH_ARCH_DEFAULT IH_ARCH_ARM 47 #define IH_ARCH_DEFAULT IH_ARCH_ARM
48 #else 48 #else
49 #define IH_ARCH_DEFAULT IH_ARCH_ARM64 49 #define IH_ARCH_DEFAULT IH_ARCH_ARM64
50 #endif 50 #endif
51 51
52 #if defined(CONFIG_USE_PRIVATE_LIBGCC) && defined(CONFIG_SYS_THUMB_BUILD)
53 #error Thumb build does not work with private libgcc.
54 #endif
55
52 #endif /* _U_BOOT_H_ */ 56 #endif /* _U_BOOT_H_ */
53 57