2014-09-29 01:16:58 +08:00
|
|
|
############################################################################
|
|
|
|
# fs/driver/Make.defs
|
|
|
|
#
|
2021-02-03 21:47:23 +08:00
|
|
|
# Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
# contributor license agreements. See the NOTICE file distributed with
|
|
|
|
# this work for additional information regarding copyright ownership. The
|
|
|
|
# ASF licenses this file to you 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
|
2014-09-29 01:16:58 +08:00
|
|
|
#
|
2021-02-03 21:47:23 +08:00
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
2014-09-29 01:16:58 +08:00
|
|
|
#
|
2021-02-03 21:47:23 +08:00
|
|
|
# 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.
|
2014-09-29 01:16:58 +08:00
|
|
|
#
|
|
|
|
############################################################################
|
|
|
|
|
|
|
|
CSRCS += fs_registerdriver.c fs_unregisterdriver.c
|
2014-12-08 21:14:31 +08:00
|
|
|
|
2020-02-23 16:50:23 +08:00
|
|
|
# Don't built-in block driver support if there are no mountpoints
|
2014-12-08 21:14:31 +08:00
|
|
|
|
|
|
|
ifneq ($(CONFIG_DISABLE_MOUNTPOINT),y)
|
2014-09-29 01:16:58 +08:00
|
|
|
CSRCS += fs_registerblockdriver.c fs_unregisterblockdriver.c
|
|
|
|
CSRCS += fs_findblockdriver.c fs_openblockdriver.c fs_closeblockdriver.c
|
2019-10-29 22:16:27 +08:00
|
|
|
CSRCS += fs_blockpartition.c fs_findmtddriver.c
|
2017-03-04 22:25:20 +08:00
|
|
|
|
2018-09-23 04:20:18 +08:00
|
|
|
ifeq ($(CONFIG_MTD),y)
|
2019-10-29 22:16:27 +08:00
|
|
|
CSRCS += fs_registermtddriver.c fs_unregistermtddriver.c
|
2018-11-08 23:59:18 +08:00
|
|
|
CSRCS += fs_mtdproxy.c
|
2018-11-09 00:03:07 +08:00
|
|
|
ifeq ($(CONFIG_MTD_PARTITION),y)
|
|
|
|
CSRCS += fs_mtdpartition.c
|
|
|
|
endif
|
2018-09-23 04:20:18 +08:00
|
|
|
endif
|
|
|
|
|
2021-03-15 12:52:52 +08:00
|
|
|
ifeq ($(CONFIG_BCH),y)
|
2017-03-04 22:25:20 +08:00
|
|
|
ifneq ($(CONFIG_DISABLE_PSEUDOFS_OPERATIONS),y)
|
2015-11-22 00:14:01 +08:00
|
|
|
CSRCS += fs_blockproxy.c
|
|
|
|
endif
|
2021-03-15 12:52:52 +08:00
|
|
|
endif # CONFIG_BCH
|
2017-03-04 22:25:20 +08:00
|
|
|
endif # CONFIG_DISABLE_MOUNTPOINT
|
2014-09-29 01:16:58 +08:00
|
|
|
|
|
|
|
# Include driver build support
|
|
|
|
|
|
|
|
DEPPATH += --dep-path driver
|
|
|
|
VPATH += :driver
|