mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-14 08:57:58 +00:00
03e2ecf6b8
This makes the FAT and ext4 filesystem implementations build if CONFIG_FS_{FAT,EXT4} are defined, rather than basing the build on whether CONFIG_CMD_{FAT,EXT*} are defined. This will allow the filesystems to be built separately from the filesystem-specific commands that use them. This paves the way for the creation of filesystem-generic commands that used the filesystems, without requiring the filesystem- specific commands. Minor documentation changes are made for this change. The new config options are automatically selected by the old config options to retain backwards-compatibility. Signed-off-by: Stephen Warren <swarren@nvidia.com> Reviewed-by: Benoît Thébaudeau <benoit.thebaudeau@advansee.com>
29 lines
749 B
C
29 lines
749 B
C
/*
|
|
* Copyright 2012 Texas Instruments
|
|
*
|
|
* This file is licensed under the terms of the GNU General Public
|
|
* License Version 2. This file is licensed "as is" without any
|
|
* warranty of any kind, whether express or implied.
|
|
*/
|
|
|
|
#ifndef __CONFIG_FALLBACKS_H
|
|
#define __CONFIG_FALLBACKS_H
|
|
|
|
#ifndef CONFIG_SYS_BAUDRATE_TABLE
|
|
#define CONFIG_SYS_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200 }
|
|
#endif
|
|
|
|
#if defined(CONFIG_CMD_FAT) && !defined(CONFIG_FS_FAT)
|
|
#define CONFIG_FS_FAT
|
|
#endif
|
|
|
|
#if (defined(CONFIG_CMD_EXT4) || defined(CONFIG_CMD_EXT2)) && \
|
|
!defined(CONFIG_FS_EXT4)
|
|
#define CONFIG_FS_EXT4
|
|
#endif
|
|
|
|
#if defined(CONFIG_CMD_EXT4_WRITE) && !defined(CONFIG_EXT4_WRITE)
|
|
#define CONFIG_EXT4_WRITE
|
|
#endif
|
|
|
|
#endif /* __CONFIG_FALLBACKS_H */
|