2014-08-31 00:07:39 +08:00
|
|
|
############################################################################
|
2018-05-30 02:14:55 +08:00
|
|
|
# tools/FlatLibs.mk
|
2014-08-31 00:07:39 +08:00
|
|
|
#
|
2021-02-18 20:48: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-08-31 00:07:39 +08:00
|
|
|
#
|
2021-02-18 20:48:10 +08:00
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
2014-08-31 00:07:39 +08:00
|
|
|
#
|
2021-02-18 20:48: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-08-31 00:07:39 +08:00
|
|
|
#
|
|
|
|
############################################################################
|
|
|
|
|
|
|
|
# NUTTXLIBS is the list of NuttX libraries that is passed to the
|
|
|
|
# processor-specific Makefile to build the final NuttX target.
|
|
|
|
# USERLIBS is the list of libraries used to build the final user-space
|
|
|
|
# application
|
2014-09-05 01:43:41 +08:00
|
|
|
# EXPORTLIBS is the list of libraries that should be exported by
|
|
|
|
# 'make export' is
|
2014-08-31 00:07:39 +08:00
|
|
|
|
2018-05-30 01:36:21 +08:00
|
|
|
NUTTXLIBS = staging$(DELIM)libsched$(LIBEXT)
|
2014-08-31 00:07:39 +08:00
|
|
|
USERLIBS =
|
|
|
|
|
2019-09-30 21:03:55 +08:00
|
|
|
# Driver support.
|
2016-06-21 06:33:20 +08:00
|
|
|
|
2018-05-30 01:36:21 +08:00
|
|
|
NUTTXLIBS += staging$(DELIM)libdrivers$(LIBEXT)
|
2016-06-21 06:33:20 +08:00
|
|
|
|
2020-09-15 03:51:31 +08:00
|
|
|
# External code support
|
|
|
|
|
|
|
|
ifeq ($(EXTERNALDIR),external)
|
|
|
|
NUTTXLIBS += staging$(DELIM)libexternal$(LIBEXT)
|
|
|
|
endif
|
|
|
|
|
2015-04-01 01:25:52 +08:00
|
|
|
# Add libraries for board support
|
|
|
|
|
2019-08-05 20:04:14 +08:00
|
|
|
NUTTXLIBS += staging$(DELIM)libboards$(LIBEXT)
|
2015-04-01 01:25:52 +08:00
|
|
|
|
2014-08-31 00:43:58 +08:00
|
|
|
# Add libraries for syscall support.
|
|
|
|
|
2018-05-30 01:36:21 +08:00
|
|
|
NUTTXLIBS += staging$(DELIM)libc$(LIBEXT) staging$(DELIM)libmm$(LIBEXT)
|
|
|
|
NUTTXLIBS += staging$(DELIM)libarch$(LIBEXT)
|
2018-08-07 22:30:17 +08:00
|
|
|
|
2014-08-31 00:07:39 +08:00
|
|
|
ifeq ($(CONFIG_LIB_SYSCALL),y)
|
2018-05-30 01:36:21 +08:00
|
|
|
NUTTXLIBS += staging$(DELIM)libstubs$(LIBEXT)
|
|
|
|
USERLIBS += staging$(DELIM)libproxies$(LIBEXT)
|
2014-08-31 00:07:39 +08:00
|
|
|
endif
|
|
|
|
|
2020-07-22 21:21:42 +08:00
|
|
|
# Add library for system call instrumentation if needed
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_SCHED_INSTRUMENTATION_SYSCALL),y)
|
|
|
|
NUTTXLIBS += staging$(DELIM)libwraps$(LIBEXT)
|
|
|
|
endif
|
|
|
|
|
2018-08-07 22:30:17 +08:00
|
|
|
# Add libraries for two pass build support. The special directory pass1
|
|
|
|
# may be populated so that application generated logic can be included into
|
|
|
|
# the kernel build
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_BUILD_2PASS),y)
|
|
|
|
NUTTXLIBS += staging$(DELIM)libpass1$(LIBEXT)
|
|
|
|
endif
|
|
|
|
|
2014-08-31 00:07:39 +08:00
|
|
|
# Add libraries for C++ support. CXX, CXXFLAGS, and COMPILEXX must
|
|
|
|
# be defined in Make.defs for this to work!
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_HAVE_CXX),y)
|
2020-01-01 00:28:48 +08:00
|
|
|
NUTTXLIBS += staging$(DELIM)libxx$(LIBEXT)
|
2014-08-31 00:07:39 +08:00
|
|
|
endif
|
|
|
|
|
|
|
|
# Add library for application support.
|
|
|
|
|
|
|
|
ifneq ($(APPDIR),)
|
2018-05-30 01:36:21 +08:00
|
|
|
NUTTXLIBS += staging$(DELIM)libapps$(LIBEXT)
|
2014-08-31 00:07:39 +08:00
|
|
|
endif
|
|
|
|
|
|
|
|
# Add libraries for network support
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_NET),y)
|
2018-05-30 01:36:21 +08:00
|
|
|
NUTTXLIBS += staging$(DELIM)libnet$(LIBEXT)
|
2014-08-31 00:07:39 +08:00
|
|
|
endif
|
|
|
|
|
|
|
|
# Add libraries for Crypto API support
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_CRYPTO),y)
|
2018-05-30 01:36:21 +08:00
|
|
|
NUTTXLIBS += staging$(DELIM)libcrypto$(LIBEXT)
|
2014-08-31 00:07:39 +08:00
|
|
|
endif
|
|
|
|
|
|
|
|
# Add libraries for file system support
|
|
|
|
|
2018-05-30 01:36:21 +08:00
|
|
|
NUTTXLIBS += staging$(DELIM)libfs$(LIBEXT) staging$(DELIM)libbinfmt$(LIBEXT)
|
2014-08-31 00:07:39 +08:00
|
|
|
|
|
|
|
# Add libraries for the NX graphics sub-system
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_NX),y)
|
2018-05-30 01:36:21 +08:00
|
|
|
NUTTXLIBS += staging$(DELIM)libgraphics$(LIBEXT)
|
|
|
|
NUTTXLIBS += staging$(DELIM)libnx$(LIBEXT)
|
2017-11-19 00:19:34 +08:00
|
|
|
else ifeq ($(CONFIG_NXFONTS),y)
|
2018-05-30 01:36:21 +08:00
|
|
|
NUTTXLIBS += staging$(DELIM)libnx$(LIBEXT)
|
2014-08-31 00:07:39 +08:00
|
|
|
endif
|
|
|
|
|
|
|
|
# Add libraries for the Audio sub-system
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_AUDIO),y)
|
2018-05-30 01:36:21 +08:00
|
|
|
NUTTXLIBS += staging$(DELIM)libaudio$(LIBEXT)
|
2014-08-31 00:07:39 +08:00
|
|
|
endif
|
2014-09-05 01:43:41 +08:00
|
|
|
|
2019-07-08 06:40:24 +08:00
|
|
|
# Add libraries for the Video sub-system
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_VIDEO),y)
|
|
|
|
NUTTXLIBS += staging$(DELIM)libvideo$(LIBEXT)
|
|
|
|
endif
|
|
|
|
|
2016-02-27 07:07:04 +08:00
|
|
|
# Add libraries for the Wireless sub-system
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_WIRELESS),y)
|
2018-05-30 01:36:21 +08:00
|
|
|
NUTTXLIBS += staging$(DELIM)libwireless$(LIBEXT)
|
2016-02-27 07:07:04 +08:00
|
|
|
endif
|
|
|
|
|
2018-05-30 20:36:06 +08:00
|
|
|
# Add DSP library
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_LIBDSP),y)
|
|
|
|
NUTTXLIBS += staging$(DELIM)libdsp$(LIBEXT)
|
|
|
|
endif
|
|
|
|
|
2019-11-03 01:30:33 +08:00
|
|
|
ifeq ($(CONFIG_OPENAMP),y)
|
|
|
|
NUTTXLIBS += staging$(DELIM)libopenamp$(LIBEXT)
|
|
|
|
endif
|
|
|
|
|
2014-09-05 01:43:41 +08:00
|
|
|
# Export all libraries
|
|
|
|
|
|
|
|
EXPORTLIBS = $(NUTTXLIBS)
|