diff mbox series

[U-Boot] imx8mq_evk_defconfig: Move file system options to Kconfig

Message ID 20181227191420.17160-1-festevam@gmail.com
State Superseded
Delegated to: Stefano Babic
Headers show
Series [U-Boot] imx8mq_evk_defconfig: Move file system options to Kconfig | expand

Commit Message

Fabio Estevam Dec. 27, 2018, 7:14 p.m. UTC
Chris Spencer reports that when enabling ext4 read support without
also enabling write support the following error is seen:

fs/fs.c:198:12: error: 'ext4_write_file' undeclared here (not in a
function); did you mean 'ext4_read_file'?
   .write = ext4_write_file,
            ^~~~~~~~~~~~~~~
Fix this problem by moving these options to Kconfig.

Reported-by: Chris Spencer <spencercw@gmail.com>
Signed-off-by: Fabio Estevam <festevam@gmail.com>
---
 configs/imx8mq_evk_defconfig | 5 +++++
 include/configs/imx8mq_evk.h | 6 ------
 2 files changed, 5 insertions(+), 6 deletions(-)

Comments

Peng Fan Dec. 29, 2018, 4:58 a.m. UTC | #1
> -----Original Message-----
> From: Fabio Estevam [mailto:festevam@gmail.com]
> Sent: 2018年12月28日 3:14
> To: sbabic@denx.de
> Cc: dl-uboot-imx <uboot-imx@nxp.com>; u-boot@lists.denx.de;
> spencercw@gmail.com; Fabio Estevam <festevam@gmail.com>
> Subject: [PATCH] imx8mq_evk_defconfig: Move file system options to Kconfig
> 
> Chris Spencer reports that when enabling ext4 read support without also
> enabling write support the following error is seen:
> 
> fs/fs.c:198:12: error: 'ext4_write_file' undeclared here (not in a function); did
> you mean 'ext4_read_file'?
>    .write = ext4_write_file,
>             ^~~~~~~~~~~~~~~
> Fix this problem by moving these options to Kconfig.
> 
> Reported-by: Chris Spencer <spencercw@gmail.com>
> Signed-off-by: Fabio Estevam <festevam@gmail.com>

Acked-by: Peng Fan <peng.fan@nxp.com>

> ---
>  configs/imx8mq_evk_defconfig | 5 +++++
>  include/configs/imx8mq_evk.h | 6 ------
>  2 files changed, 5 insertions(+), 6 deletions(-)
> 
> diff --git a/configs/imx8mq_evk_defconfig b/configs/imx8mq_evk_defconfig
> index f216d46a8f..b473fcd61b 100644
> --- a/configs/imx8mq_evk_defconfig
> +++ b/configs/imx8mq_evk_defconfig
> @@ -15,6 +15,11 @@ CONFIG_SPL_LOAD_FIT=y  CONFIG_SPL=y
> CONFIG_SPL_BOARD_INIT=y  CONFIG_HUSH_PARSER=y
> +CONFIG_DOS_PARTITION=y
> +CONFIG_CMD_EXT2=y
> +CONFIG_CMD_EXT4=y
> +CONFIG_CMD_EXT4_WRITE=y
> +CONFIG_CMD_FAT=
>  CONFIG_CMD_GPIO=y
>  CONFIG_CMD_I2C=y
>  CONFIG_CMD_CACHE=y
> diff --git a/include/configs/imx8mq_evk.h b/include/configs/imx8mq_evk.h
> index 35f81152f2..f0430224cb 100644
> --- a/include/configs/imx8mq_evk.h
> +++ b/include/configs/imx8mq_evk.h
> @@ -226,12 +226,6 @@
>  #define CONFIG_SYS_FSL_USDHC_NUM	2
>  #define CONFIG_SYS_FSL_ESDHC_ADDR       0
> 
> -#define CONFIG_DOS_PARTITION
> -#define CONFIG_CMD_EXT2
> -#define CONFIG_CMD_EXT4
> -#define CONFIG_CMD_EXT4_WRITE
> -#define CONFIG_CMD_FAT
> -
>  #define CONFIG_SUPPORT_EMMC_BOOT	/* eMMC specific */
>  #define CONFIG_SYS_MMC_IMG_LOAD_PART	1
> 
> --
> 2.17.1
Joris OFFOUGA Dec. 29, 2018, 5:59 a.m. UTC | #2
Hi Fabio, 

Joris Offouga

Le 29 déc. 2018 à 05:58, Peng Fan <peng.fan@nxp.com> a écrit :

>> -----Original Message-----
>> From: Fabio Estevam [mailto:festevam@gmail.com]
>> Sent: 2018年12月28日 3:14
>> To: sbabic@denx.de
>> Cc: dl-uboot-imx <uboot-imx@nxp.com>; u-boot@lists.denx.de;
>> spencercw@gmail.com; Fabio Estevam <festevam@gmail.com>
>> Subject: [PATCH] imx8mq_evk_defconfig: Move file system options to Kconfig
>> 
>> Chris Spencer reports that when enabling ext4 read support without also
>> enabling write support the following error is seen:
>> 
>> fs/fs.c:198:12: error: 'ext4_write_file' undeclared here (not in a function); did
>> you mean 'ext4_read_file'?
>>   .write = ext4_write_file,
>>            ^~~~~~~~~~~~~~~
>> Fix this problem by moving these options to Kconfig.
>> 
>> Reported-by: Chris Spencer <spencercw@gmail.com>
>> Signed-off-by: Fabio Estevam <festevam@gmail.com>
> 
> Acked-by: Peng Fan <peng.fan@nxp.com>
> 
>> ---
>> configs/imx8mq_evk_defconfig | 5 +++++
>> include/configs/imx8mq_evk.h | 6 ------
>> 2 files changed, 5 insertions(+), 6 deletions(-)
>> 
>> diff --git a/configs/imx8mq_evk_defconfig b/configs/imx8mq_evk_defconfig
>> index f216d46a8f..b473fcd61b 100644
>> --- a/configs/imx8mq_evk_defconfig
>> +++ b/configs/imx8mq_evk_defconfig
>> @@ -15,6 +15,11 @@ CONFIG_SPL_LOAD_FIT=y  CONFIG_SPL=y
>> CONFIG_SPL_BOARD_INIT=y  CONFIG_HUSH_PARSER=y
>> +CONFIG_DOS_PARTITION=y
>> +CONFIG_CMD_EXT2=y
>> +CONFIG_CMD_EXT4=y
>> +CONFIG_CMD_EXT4_WRITE=y
>> +CONFIG_CMD_FAT=
You forgot "y" to this line, correct this in CONFIG_CMD_FAT=y 
>> CONFIG_CMD_GPIO=y
>> CONFIG_CMD_I2C=y
>> CONFIG_CMD_CACHE=y
>> diff --git a/include/configs/imx8mq_evk.h b/include/configs/imx8mq_evk.h
>> index 35f81152f2..f0430224cb 100644
>> --- a/include/configs/imx8mq_evk.h
>> +++ b/include/configs/imx8mq_evk.h
>> @@ -226,12 +226,6 @@
>> #define CONFIG_SYS_FSL_USDHC_NUM    2
>> #define CONFIG_SYS_FSL_ESDHC_ADDR       0
>> 
>> -#define CONFIG_DOS_PARTITION
>> -#define CONFIG_CMD_EXT2
>> -#define CONFIG_CMD_EXT4
>> -#define CONFIG_CMD_EXT4_WRITE
>> -#define CONFIG_CMD_FAT
>> -
>> #define CONFIG_SUPPORT_EMMC_BOOT    /* eMMC specific */
>> #define CONFIG_SYS_MMC_IMG_LOAD_PART    1
>> 
>> --
>> 2.17.1
> 
> _______________________________________________
> U-Boot mailing list
> U-Boot@lists.denx.de
> https://lists.denx.de/listinfo/u-boot
Fabio Estevam Dec. 29, 2018, 12:03 p.m. UTC | #3
Hi Joris,

On Sat, Dec 29, 2018 at 3:59 AM Offouga Joris <offougajoris@gmail.com> wrote:

> You forgot "y" to this line, correct this in CONFIG_CMD_FAT=y

Thanks! I have just sent a corrected v2.
diff mbox series

Patch

diff --git a/configs/imx8mq_evk_defconfig b/configs/imx8mq_evk_defconfig
index f216d46a8f..b473fcd61b 100644
--- a/configs/imx8mq_evk_defconfig
+++ b/configs/imx8mq_evk_defconfig
@@ -15,6 +15,11 @@  CONFIG_SPL_LOAD_FIT=y
 CONFIG_SPL=y
 CONFIG_SPL_BOARD_INIT=y
 CONFIG_HUSH_PARSER=y
+CONFIG_DOS_PARTITION=y
+CONFIG_CMD_EXT2=y
+CONFIG_CMD_EXT4=y
+CONFIG_CMD_EXT4_WRITE=y
+CONFIG_CMD_FAT=
 CONFIG_CMD_GPIO=y
 CONFIG_CMD_I2C=y
 CONFIG_CMD_CACHE=y
diff --git a/include/configs/imx8mq_evk.h b/include/configs/imx8mq_evk.h
index 35f81152f2..f0430224cb 100644
--- a/include/configs/imx8mq_evk.h
+++ b/include/configs/imx8mq_evk.h
@@ -226,12 +226,6 @@ 
 #define CONFIG_SYS_FSL_USDHC_NUM	2
 #define CONFIG_SYS_FSL_ESDHC_ADDR       0
 
-#define CONFIG_DOS_PARTITION
-#define CONFIG_CMD_EXT2
-#define CONFIG_CMD_EXT4
-#define CONFIG_CMD_EXT4_WRITE
-#define CONFIG_CMD_FAT
-
 #define CONFIG_SUPPORT_EMMC_BOOT	/* eMMC specific */
 #define CONFIG_SYS_MMC_IMG_LOAD_PART	1