2014-09-28 19:16:58 +02:00
|
|
|
############################################################################
|
|
|
|
# fs/driver/Make.defs
|
|
|
|
#
|
2021-02-03 14:47:23 +01: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-28 19:16:58 +02:00
|
|
|
#
|
2021-02-03 14:47:23 +01:00
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
2014-09-28 19:16:58 +02:00
|
|
|
#
|
2021-02-03 14:47:23 +01: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-28 19:16:58 +02:00
|
|
|
#
|
|
|
|
############################################################################
|
|
|
|
|
|
|
|
CSRCS += fs_registerdriver.c fs_unregisterdriver.c
|
2014-12-08 14:14:31 +01:00
|
|
|
|
2020-02-23 09:50:23 +01:00
|
|
|
# Don't built-in block driver support if there are no mountpoints
|
2014-12-08 14:14:31 +01:00
|
|
|
|
|
|
|
ifneq ($(CONFIG_DISABLE_MOUNTPOINT),y)
|
2014-09-28 19:16:58 +02:00
|
|
|
CSRCS += fs_registerblockdriver.c fs_unregisterblockdriver.c
|
|
|
|
CSRCS += fs_findblockdriver.c fs_openblockdriver.c fs_closeblockdriver.c
|
2019-10-29 15:16:27 +01:00
|
|
|
CSRCS += fs_blockpartition.c fs_findmtddriver.c
|
2017-03-04 15:25:20 +01:00
|
|
|
|
2018-09-22 22:20:18 +02:00
|
|
|
ifeq ($(CONFIG_MTD),y)
|
2019-10-29 15:16:27 +01:00
|
|
|
CSRCS += fs_registermtddriver.c fs_unregistermtddriver.c
|
2018-11-08 16:59:18 +01:00
|
|
|
CSRCS += fs_mtdproxy.c
|
2018-11-08 17:03:07 +01:00
|
|
|
ifeq ($(CONFIG_MTD_PARTITION),y)
|
|
|
|
CSRCS += fs_mtdpartition.c
|
|
|
|
endif
|
2018-09-22 22:20:18 +02:00
|
|
|
endif
|
|
|
|
|
2021-03-15 05:52:52 +01:00
|
|
|
ifeq ($(CONFIG_BCH),y)
|
2017-03-04 15:25:20 +01:00
|
|
|
ifneq ($(CONFIG_DISABLE_PSEUDOFS_OPERATIONS),y)
|
2015-11-21 17:14:01 +01:00
|
|
|
CSRCS += fs_blockproxy.c
|
|
|
|
endif
|
2021-03-15 05:52:52 +01:00
|
|
|
endif # CONFIG_BCH
|
2017-03-04 15:25:20 +01:00
|
|
|
endif # CONFIG_DISABLE_MOUNTPOINT
|
2014-09-28 19:16:58 +02:00
|
|
|
|
|
|
|
# Include driver build support
|
|
|
|
|
|
|
|
DEPPATH += --dep-path driver
|
|
|
|
VPATH += :driver
|