diff options
Diffstat (limited to 'recipes-bsp/imx-atf/imx-atf/0001-imx-Fix-missing-inclusion-of-cdefs.h.patch')
-rw-r--r-- | recipes-bsp/imx-atf/imx-atf/0001-imx-Fix-missing-inclusion-of-cdefs.h.patch | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/recipes-bsp/imx-atf/imx-atf/0001-imx-Fix-missing-inclusion-of-cdefs.h.patch b/recipes-bsp/imx-atf/imx-atf/0001-imx-Fix-missing-inclusion-of-cdefs.h.patch new file mode 100644 index 00000000..209098d6 --- /dev/null +++ b/recipes-bsp/imx-atf/imx-atf/0001-imx-Fix-missing-inclusion-of-cdefs.h.patch | |||
@@ -0,0 +1,62 @@ | |||
1 | From e8bb1c2caa19fa224090eca0793586857199af9e Mon Sep 17 00:00:00 2001 | ||
2 | From: Samuel Holland <samuel@sholland.org> | ||
3 | Date: Wed, 4 Dec 2019 02:48:37 -0600 | ||
4 | Subject: [PATCH] imx: Fix missing inclusion of cdefs.h | ||
5 | |||
6 | This was found by compiling with -fno-common: | ||
7 | |||
8 | ./build/picopi/release/bl2/imx_snvs.o:(.bss.__packed+0x0): multiple definition of `__packed'; | ||
9 | ./build/picopi/release/bl2/imx_caam.o:(.bss.__packed+0x0): first defined here | ||
10 | |||
11 | __packed was intended to be the attribute macro from cdefs.h, not an | ||
12 | object of the structure type. | ||
13 | |||
14 | Upstream-Status: Backport | ||
15 | |||
16 | Signed-off-by: Samuel Holland <samuel@sholland.org> | ||
17 | Change-Id: Id02fac3f098be2d71c35c6b4a18012515532f32a | ||
18 | --- | ||
19 | plat/imx/common/include/imx_caam.h | 3 ++- | ||
20 | plat/imx/common/include/imx_snvs.h | 3 ++- | ||
21 | 2 files changed, 4 insertions(+), 2 deletions(-) | ||
22 | |||
23 | diff --git a/plat/imx/common/include/imx_caam.h b/plat/imx/common/include/imx_caam.h | ||
24 | index 335bd0f8b..61005b51c 100644 | ||
25 | --- a/plat/imx/common/include/imx_caam.h | ||
26 | +++ b/plat/imx/common/include/imx_caam.h | ||
27 | @@ -1,5 +1,5 @@ | ||
28 | /* | ||
29 | - * Copyright (c) 2018, ARM Limited and Contributors. All rights reserved. | ||
30 | + * Copyright (c) 2018-2019, ARM Limited and Contributors. All rights reserved. | ||
31 | * | ||
32 | * SPDX-License-Identifier: BSD-3-Clause | ||
33 | */ | ||
34 | @@ -7,6 +7,7 @@ | ||
35 | #ifndef IMX_CAAM_H | ||
36 | #define IMX_CAAM_H | ||
37 | |||
38 | +#include <cdefs.h> | ||
39 | #include <stdint.h> | ||
40 | #include <arch.h> | ||
41 | #include <imx_regs.h> | ||
42 | diff --git a/plat/imx/common/include/imx_snvs.h b/plat/imx/common/include/imx_snvs.h | ||
43 | index 0b3d1085f..565c451dd 100644 | ||
44 | --- a/plat/imx/common/include/imx_snvs.h | ||
45 | +++ b/plat/imx/common/include/imx_snvs.h | ||
46 | @@ -1,11 +1,12 @@ | ||
47 | /* | ||
48 | - * Copyright (C) 2018, ARM Limited and Contributors. All rights reserved. | ||
49 | + * Copyright (C) 2018-2019, ARM Limited and Contributors. All rights reserved. | ||
50 | * | ||
51 | * SPDX-License-Identifier: BSD-3-Clause | ||
52 | */ | ||
53 | #ifndef IMX_SNVS_H | ||
54 | #define IMX_SNVS_H | ||
55 | |||
56 | +#include <cdefs.h> | ||
57 | #include <stdint.h> | ||
58 | |||
59 | #include <arch.h> | ||
60 | -- | ||
61 | 2.28.0 | ||
62 | |||