Commit 5f2fe3b93a2583c266c67ea10ce454fc02bbd94e
Committed by
Stefano Babic
1 parent
91457597e3
Exists in
smarc_8mq_lf_v2020.04
and in
9 other branches
Kconfig: Migrate CONFIG_CSF_SIZE to Kconfig
Move CONFIG_CSF_SIZE to Kconfig and define default value as 0x4000. mx8mqevk requires 0x2000 add this configuration in imx8mq_evk_defconfig file. Signed-off-by: Breno Lima <breno.lima@nxp.com> Reviewed-by: Fabio Estevam <festevam@gmail.com>
Showing 10 changed files with 8 additions and 32 deletions Side-by-side Diff
arch/arm/mach-imx/Kconfig
... | ... | @@ -43,6 +43,13 @@ |
43 | 43 | This option enables the support for secure boot (HAB). |
44 | 44 | See doc/README.mxc_hab for more details. |
45 | 45 | |
46 | +config CSF_SIZE | |
47 | + hex "Maximum size for Command Sequence File (CSF) binary" | |
48 | + default 0x4000 | |
49 | + help | |
50 | + Define the maximum size for Command Sequence File (CSF) binary | |
51 | + this information is used to define the image boot data. | |
52 | + | |
46 | 53 | config CMD_BMODE |
47 | 54 | bool "Support the 'bmode' command" |
48 | 55 | default y |
configs/imx8mq_evk_defconfig
include/configs/cl-som-imx7.h
include/configs/imx8mq_evk.h
... | ... | @@ -9,10 +9,6 @@ |
9 | 9 | #include <linux/sizes.h> |
10 | 10 | #include <asm/arch/imx-regs.h> |
11 | 11 | |
12 | -#ifdef CONFIG_SECURE_BOOT | |
13 | -#define CONFIG_CSF_SIZE 0x2000 /* 8K region */ | |
14 | -#endif | |
15 | - | |
16 | 12 | #define CONFIG_SPL_MAX_SIZE (124 * 1024) |
17 | 13 | #define CONFIG_SYS_MONITOR_LEN (512 * 1024) |
18 | 14 | #define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR |
include/configs/mx6_common.h
include/configs/mx6sllevk.h
include/configs/mx6ullevk.h
include/configs/mx7_common.h
include/configs/mx7ulp_evk.h
... | ... | @@ -14,12 +14,6 @@ |
14 | 14 | /*Uncomment it to use secure boot*/ |
15 | 15 | /*#define CONFIG_SECURE_BOOT*/ |
16 | 16 | |
17 | -#ifdef CONFIG_SECURE_BOOT | |
18 | -#ifndef CONFIG_CSF_SIZE | |
19 | -#define CONFIG_CSF_SIZE 0x4000 | |
20 | -#endif | |
21 | -#endif | |
22 | - | |
23 | 17 | #define CONFIG_BOARD_POSTCLK_INIT |
24 | 18 | #define CONFIG_SYS_BOOTM_LEN 0x1000000 |
25 | 19 |