fs: driver: Make configurable BCH driver
authorEunBong Song <eunb.song@samsung.com>
Fri, 14 Jul 2017 08:40:24 +0000 (01:40 -0700)
committerEunBong Song <eunb.song@samsung.com>
Wed, 30 Aug 2017 04:15:44 +0000 (21:15 -0700)
BCH driver is always compiled. This patch makes BCH driver is
configurable.

Change-Id: I918e90d154f7fe2d361b2cd3d74915291b8ea449
Signed-off-by: EunBong Song <eunb.song@samsung.com>
12 files changed:
build/configs/artik053/extra/defconfig
build/configs/artik053/minimal/defconfig
build/configs/artik053/nettest/defconfig
build/configs/artik053/tash/defconfig
build/configs/artik053/typical/defconfig
build/configs/sidk_s5jt200/hello_with_tash/defconfig
build/configs/sidk_s5jt200/kernel_sample/defconfig
build/configs/sidk_s5jt200/sidk_tash_wlan/defconfig
build/configs/sidk_s5jt200/tc/defconfig
os/drivers/Kconfig
os/drivers/bch/Make.defs
os/fs/vfs/fs_open.c

index 1c69c1c..3b79e1f 100644 (file)
@@ -462,7 +462,7 @@ CONFIG_SPI=y
 # CONFIG_SPI_BITBANG is not set
 CONFIG_GPIO=y
 CONFIG_I2S=y
-# CONFIG_BCH is not set
+CONFIG_BCH=y
 CONFIG_RTC=y
 CONFIG_RTC_DATETIME=y
 # CONFIG_RTC_ALARM is not set
index a8bc087..97741b0 100644 (file)
@@ -416,7 +416,7 @@ CONFIG_SPI=y
 # CONFIG_SPI_BITBANG is not set
 CONFIG_GPIO=y
 # CONFIG_I2S is not set
-# CONFIG_BCH is not set
+CONFIG_BCH=y
 CONFIG_RTC=y
 CONFIG_RTC_DATETIME=y
 # CONFIG_RTC_ALARM is not set
index d8fd9a3..d327eb3 100644 (file)
@@ -481,7 +481,7 @@ CONFIG_SPI=y
 # CONFIG_SPI_BITBANG is not set
 CONFIG_GPIO=y
 # CONFIG_I2S is not set
-# CONFIG_BCH is not set
+CONFIG_BCH=y
 CONFIG_RTC=y
 CONFIG_RTC_DATETIME=y
 # CONFIG_RTC_ALARM is not set
index b7492f8..52653dc 100644 (file)
@@ -441,7 +441,7 @@ CONFIG_SPI=y
 # CONFIG_SPI_BITBANG is not set
 CONFIG_GPIO=y
 # CONFIG_I2S is not set
-# CONFIG_BCH is not set
+CONFIG_BCH=y
 CONFIG_RTC=y
 CONFIG_RTC_DATETIME=y
 # CONFIG_RTC_ALARM is not set
index 46d62c6..be5b1be 100644 (file)
@@ -462,7 +462,7 @@ CONFIG_SPI=y
 # CONFIG_SPI_BITBANG is not set
 CONFIG_GPIO=y
 # CONFIG_I2S is not set
-# CONFIG_BCH is not set
+CONFIG_BCH=y
 CONFIG_RTC=y
 CONFIG_RTC_DATETIME=y
 # CONFIG_RTC_ALARM is not set
index efb7b94..bbc3789 100644 (file)
@@ -446,7 +446,7 @@ CONFIG_SPI=y
 # CONFIG_SPI_BITBANG is not set
 CONFIG_GPIO=y
 # CONFIG_I2S is not set
-# CONFIG_BCH is not set
+CONFIG_BCH=y
 CONFIG_RTC=y
 CONFIG_RTC_DATETIME=y
 # CONFIG_RTC_ALARM is not set
index 11248b4..83dec57 100644 (file)
@@ -447,7 +447,7 @@ CONFIG_SPI=y
 # CONFIG_SPI_BITBANG is not set
 CONFIG_GPIO=y
 # CONFIG_I2S is not set
-# CONFIG_BCH is not set
+CONFIG_BCH=y
 CONFIG_RTC=y
 CONFIG_RTC_DATETIME=y
 # CONFIG_RTC_ALARM is not set
index 6444e8b..b08db8f 100644 (file)
@@ -461,7 +461,7 @@ CONFIG_SPI=y
 # CONFIG_SPI_BITBANG is not set
 CONFIG_GPIO=y
 # CONFIG_I2S is not set
-# CONFIG_BCH is not set
+CONFIG_BCH=y
 CONFIG_RTC=y
 CONFIG_RTC_DATETIME=y
 # CONFIG_RTC_ALARM is not set
index 6dd21d9..52fc904 100644 (file)
@@ -451,7 +451,7 @@ CONFIG_SPI=y
 # CONFIG_SPI_BITBANG is not set
 CONFIG_GPIO=y
 # CONFIG_I2S is not set
-# CONFIG_BCH is not set
+CONFIG_BCH=y
 CONFIG_RTC=y
 CONFIG_RTC_DATETIME=y
 # CONFIG_RTC_ALARM is not set
index e0e1dc5..b35154e 100644 (file)
@@ -219,9 +219,6 @@ menuconfig BCH
                that performed by loop.c. See include/tinyara/fs/fs.h for
                registration information.
 
-if BCH
-endif # BCH
-
 menuconfig RTC
        bool "RTC Driver Support"
        default n
index 35c2470..704c20f 100644 (file)
@@ -55,6 +55,7 @@ ifneq ($(CONFIG_DISABLE_MOUNTPOINT),y)
 
 # Include BCH driver
 
+ifeq ($(CONFIG_BCH),y)
 CSRCS += bchlib_setup.c bchlib_teardown.c bchlib_read.c bchlib_write.c \
                 bchlib_cache.c bchlib_sem.c bchdev_register.c bchdev_unregister.c \
                 bchdev_driver.c
@@ -67,3 +68,4 @@ CFLAGS += ${shell $(INCDIR) $(INCDIROPT) "$(CC)" $(TOPDIR)$(DELIM)drivers$(DELIM
 
 endif
 endif
+endif
index 39700a6..820a416 100644 (file)
@@ -146,7 +146,7 @@ int open(const char *path, int oflags, ...)
        }
 
 #if !defined(CONFIG_DISABLE_MOUNTPOINT) && \
-       !defined(CONFIG_DISABLE_PSEUDOFS_OPERATIONS)
+       !defined(CONFIG_DISABLE_PSEUDOFS_OPERATIONS) && defined(CONFIG_BCH)
        /*
         * If the inode is block driver, then we may return a character driver
         * proxy for the block driver. block_proxy() will instantiate a BCH