2014-06-04 02:41:34 +08:00
|
|
|
############################################################################
|
2017-05-09 21:34:59 +08:00
|
|
|
# mm/iob/Make.defs
|
2014-06-04 02:41:34 +08:00
|
|
|
#
|
2021-02-08 20:50:10 +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-06-04 02:41:34 +08:00
|
|
|
#
|
2021-02-08 20:50:10 +08:00
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
2014-06-04 02:41:34 +08:00
|
|
|
#
|
2021-02-08 20:50:10 +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-06-04 02:41:34 +08:00
|
|
|
#
|
|
|
|
############################################################################
|
|
|
|
|
2017-05-09 21:34:59 +08:00
|
|
|
ifeq ($(CONFIG_MM_IOB),y)
|
2014-06-04 02:41:34 +08:00
|
|
|
|
2014-06-29 06:41:55 +08:00
|
|
|
# Include IOB source files
|
2014-06-04 02:41:34 +08:00
|
|
|
|
2017-04-21 06:08:49 +08:00
|
|
|
CSRCS += iob_add_queue.c iob_alloc.c iob_alloc_qentry.c iob_clone.c
|
|
|
|
CSRCS += iob_concat.c iob_copyin.c iob_copyout.c iob_contig.c iob_free.c
|
|
|
|
CSRCS += iob_free_chain.c iob_free_qentry.c iob_free_queue.c
|
|
|
|
CSRCS += iob_initialize.c iob_pack.c iob_peek_queue.c iob_remove_queue.c
|
2019-08-17 06:42:25 +08:00
|
|
|
CSRCS += iob_statistics.c iob_trimhead.c iob_trimhead_queue.c iob_trimtail.c
|
2021-06-30 14:05:06 +08:00
|
|
|
CSRCS += iob_navail.c iob_free_queue_qentry.c iob_tailroom.c
|
2021-04-13 20:50:38 +08:00
|
|
|
CSRCS += iob_get_queue_size.c
|
2014-06-04 02:41:34 +08:00
|
|
|
|
2018-09-09 01:21:18 +08:00
|
|
|
ifeq ($(CONFIG_IOB_NOTIFIER),y)
|
2018-09-09 22:32:37 +08:00
|
|
|
CSRCS += iob_notifier.c
|
2018-09-09 01:21:18 +08:00
|
|
|
endif
|
|
|
|
|
2016-06-12 04:14:08 +08:00
|
|
|
ifeq ($(CONFIG_DEBUG_FEATURES),y)
|
2017-04-21 06:08:49 +08:00
|
|
|
CSRCS += iob_dump.c
|
2014-06-23 01:27:57 +08:00
|
|
|
endif
|
|
|
|
|
2022-08-22 15:51:31 +08:00
|
|
|
ifneq ($(CONFIG_IOB_SECTION),"")
|
|
|
|
CFLAGS += ${shell $(DEFINE) "$(CC)" IOB_SECTION=CONFIG_IOB_SECTION}
|
|
|
|
endif
|
|
|
|
|
2014-06-04 02:41:34 +08:00
|
|
|
# Include iob build support
|
|
|
|
|
|
|
|
DEPPATH += --dep-path iob
|
|
|
|
VPATH += :iob
|
2020-03-26 11:51:22 +08:00
|
|
|
CFLAGS += ${shell $(INCDIR) "$(CC)" $(TOPDIR)$(DELIM)mm$(DELIM)iob}
|
2014-06-04 02:41:34 +08:00
|
|
|
|
2017-05-10 01:32:44 +08:00
|
|
|
endif # CONFIG_MM_IOB
|