From e354ad2a3618e074d6cec5eba923986902fe2b05 Mon Sep 17 00:00:00 2001 From: Ramesh Thomas Date: Sat, 29 Oct 2016 04:10:36 -0700 Subject: [PATCH] fs: Move file system code to subsys/ Subsystems code will reside in subsys/ folder. This patch creates the folder and moves FS code there. Jira: ZEP-1120 Change-Id: If3b1bcb996c5fbd4056cd5d1920d41d29810d6b2 Signed-off-by: Ramesh Thomas --- Kconfig.zephyr | 2 +- MAINTAINERS | 2 +- Makefile | 4 ++-- subsys/Kconfig | 18 ++++++++++++++++++ subsys/Makefile | 1 + {fs => subsys/fs}/Kconfig | 0 {fs => subsys/fs}/Makefile | 0 {fs => subsys/fs}/fat_flash_diskio.c | 0 {fs => subsys/fs}/fat_fs.c | 0 {fs => subsys/fs}/fat_ram_diskio.c | 0 10 files changed, 23 insertions(+), 4 deletions(-) create mode 100644 subsys/Kconfig create mode 100644 subsys/Makefile rename {fs => subsys/fs}/Kconfig (100%) rename {fs => subsys/fs}/Makefile (100%) rename {fs => subsys/fs}/fat_flash_diskio.c (100%) rename {fs => subsys/fs}/fat_fs.c (100%) rename {fs => subsys/fs}/fat_ram_diskio.c (100%) diff --git a/Kconfig.zephyr b/Kconfig.zephyr index 6d513a64100..2f33a2ae309 100644 --- a/Kconfig.zephyr +++ b/Kconfig.zephyr @@ -32,7 +32,7 @@ source "misc/Kconfig" source "lib/Kconfig" -source "fs/Kconfig" +source "subsys/Kconfig" source "ext/Kconfig" diff --git a/MAINTAINERS b/MAINTAINERS index c0ca58eb07d..18ebc141d0c 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -188,7 +188,7 @@ M: Ramesh Thomas M: Kuo-Lang Tseng S: Supported F: ext/fs/ -F: fs/ +F: subsys/fs/ F: include/fs/ F: include/fs.h F: samples/fs/ diff --git a/Makefile b/Makefile index 64bcf816a6c..4899cdca98b 100644 --- a/Makefile +++ b/Makefile @@ -579,9 +579,9 @@ endif # $(dot-config) # Unified kernel objects are built as a static library ifeq ($(CONFIG_KERNEL_V2),y) libs-y := kernel/unified/ -core-y := lib/ misc/ net/ boards/ ext/ usb/ fs/ tests/ arch/ +core-y := lib/ misc/ net/ boards/ ext/ usb/ subsys/ tests/ arch/ else -core-y := lib/ kernel/ misc/ net/ boards/ ext/ usb/ fs/ tests/ arch/ +core-y := lib/ kernel/ misc/ net/ boards/ ext/ usb/ subsys/ tests/ arch/ endif drivers-y := drivers/ diff --git a/subsys/Kconfig b/subsys/Kconfig new file mode 100644 index 00000000000..91556627623 --- /dev/null +++ b/subsys/Kconfig @@ -0,0 +1,18 @@ +# Kconfig - Subsystem configuration options +# +# Copyright (c) 2016 Intel Corporation +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +source "subsys/fs/Kconfig" diff --git a/subsys/Makefile b/subsys/Makefile new file mode 100644 index 00000000000..dbce7610836 --- /dev/null +++ b/subsys/Makefile @@ -0,0 +1 @@ +obj-$(CONFIG_FILE_SYSTEM) += fs/ diff --git a/fs/Kconfig b/subsys/fs/Kconfig similarity index 100% rename from fs/Kconfig rename to subsys/fs/Kconfig diff --git a/fs/Makefile b/subsys/fs/Makefile similarity index 100% rename from fs/Makefile rename to subsys/fs/Makefile diff --git a/fs/fat_flash_diskio.c b/subsys/fs/fat_flash_diskio.c similarity index 100% rename from fs/fat_flash_diskio.c rename to subsys/fs/fat_flash_diskio.c diff --git a/fs/fat_fs.c b/subsys/fs/fat_fs.c similarity index 100% rename from fs/fat_fs.c rename to subsys/fs/fat_fs.c diff --git a/fs/fat_ram_diskio.c b/subsys/fs/fat_ram_diskio.c similarity index 100% rename from fs/fat_ram_diskio.c rename to subsys/fs/fat_ram_diskio.c