2014-08-30 18:07:39 +02:00
|
|
|
############################################################################
|
2018-05-29 20:14:55 +02:00
|
|
|
# tools/FlatLibs.mk
|
2014-08-30 18:07:39 +02:00
|
|
|
#
|
2021-02-18 13:48:10 +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-08-30 18:07:39 +02:00
|
|
|
#
|
2021-02-18 13:48:10 +01:00
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
2014-08-30 18:07:39 +02:00
|
|
|
#
|
2021-02-18 13:48:10 +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-08-30 18:07:39 +02: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-04 19:43:41 +02:00
|
|
|
# EXPORTLIBS is the list of libraries that should be exported by
|
|
|
|
# 'make export' is
|
2014-08-30 18:07:39 +02:00
|
|
|
|
2018-05-29 19:36:21 +02:00
|
|
|
NUTTXLIBS = staging$(DELIM)libsched$(LIBEXT)
|
2014-08-30 18:07:39 +02:00
|
|
|
USERLIBS =
|
|
|
|
|
2019-09-30 15:03:55 +02:00
|
|
|
# Driver support.
|
2016-06-21 00:33:20 +02:00
|
|
|
|
2018-05-29 19:36:21 +02:00
|
|
|
NUTTXLIBS += staging$(DELIM)libdrivers$(LIBEXT)
|
2016-06-21 00:33:20 +02:00
|
|
|
|
2020-09-14 21:51:31 +02:00
|
|
|
# External code support
|
|
|
|
|
|
|
|
ifeq ($(EXTERNALDIR),external)
|
|
|
|
NUTTXLIBS += staging$(DELIM)libexternal$(LIBEXT)
|
|
|
|
endif
|
|
|
|
|
2015-03-31 19:25:52 +02:00
|
|
|
# Add libraries for board support
|
|
|
|
|
2019-08-05 14:04:14 +02:00
|
|
|
NUTTXLIBS += staging$(DELIM)libboards$(LIBEXT)
|
2015-03-31 19:25:52 +02:00
|
|
|
|
2014-08-30 18:43:58 +02:00
|
|
|
# Add libraries for syscall support.
|
|
|
|
|
2018-05-29 19:36:21 +02:00
|
|
|
NUTTXLIBS += staging$(DELIM)libc$(LIBEXT) staging$(DELIM)libmm$(LIBEXT)
|
|
|
|
NUTTXLIBS += staging$(DELIM)libarch$(LIBEXT)
|
2018-08-07 16:30:17 +02:00
|
|
|
|
2014-08-30 18:07:39 +02:00
|
|
|
ifeq ($(CONFIG_LIB_SYSCALL),y)
|
2018-05-29 19:36:21 +02:00
|
|
|
NUTTXLIBS += staging$(DELIM)libstubs$(LIBEXT)
|
|
|
|
USERLIBS += staging$(DELIM)libproxies$(LIBEXT)
|
2014-08-30 18:07:39 +02:00
|
|
|
endif
|
|
|
|
|
2020-07-22 15:21:42 +02:00
|
|
|
# Add library for system call instrumentation if needed
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_SCHED_INSTRUMENTATION_SYSCALL),y)
|
|
|
|
NUTTXLIBS += staging$(DELIM)libwraps$(LIBEXT)
|
|
|
|
endif
|
|
|
|
|
2018-08-07 16:30:17 +02: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-30 18:07:39 +02: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)
|
2019-12-31 17:28:48 +01:00
|
|
|
NUTTXLIBS += staging$(DELIM)libxx$(LIBEXT)
|
2014-08-30 18:07:39 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
# Add library for application support.
|
|
|
|
|
|
|
|
ifneq ($(APPDIR),)
|
2018-05-29 19:36:21 +02:00
|
|
|
NUTTXLIBS += staging$(DELIM)libapps$(LIBEXT)
|
2014-08-30 18:07:39 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
# Add libraries for network support
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_NET),y)
|
2018-05-29 19:36:21 +02:00
|
|
|
NUTTXLIBS += staging$(DELIM)libnet$(LIBEXT)
|
2014-08-30 18:07:39 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
# Add libraries for Crypto API support
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_CRYPTO),y)
|
2018-05-29 19:36:21 +02:00
|
|
|
NUTTXLIBS += staging$(DELIM)libcrypto$(LIBEXT)
|
2014-08-30 18:07:39 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
# Add libraries for file system support
|
|
|
|
|
2018-05-29 19:36:21 +02:00
|
|
|
NUTTXLIBS += staging$(DELIM)libfs$(LIBEXT) staging$(DELIM)libbinfmt$(LIBEXT)
|
2014-08-30 18:07:39 +02:00
|
|
|
|
|
|
|
# Add libraries for the NX graphics sub-system
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_NX),y)
|
2018-05-29 19:36:21 +02:00
|
|
|
NUTTXLIBS += staging$(DELIM)libgraphics$(LIBEXT)
|
|
|
|
NUTTXLIBS += staging$(DELIM)libnx$(LIBEXT)
|
2017-11-18 17:19:34 +01:00
|
|
|
else ifeq ($(CONFIG_NXFONTS),y)
|
2018-05-29 19:36:21 +02:00
|
|
|
NUTTXLIBS += staging$(DELIM)libnx$(LIBEXT)
|
2014-08-30 18:07:39 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
# Add libraries for the Audio sub-system
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_AUDIO),y)
|
2018-05-29 19:36:21 +02:00
|
|
|
NUTTXLIBS += staging$(DELIM)libaudio$(LIBEXT)
|
2014-08-30 18:07:39 +02:00
|
|
|
endif
|
2014-09-04 19:43:41 +02:00
|
|
|
|
2019-07-08 00:40:24 +02:00
|
|
|
# Add libraries for the Video sub-system
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_VIDEO),y)
|
|
|
|
NUTTXLIBS += staging$(DELIM)libvideo$(LIBEXT)
|
|
|
|
endif
|
|
|
|
|
2016-02-27 00:07:04 +01:00
|
|
|
# Add libraries for the Wireless sub-system
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_WIRELESS),y)
|
2018-05-29 19:36:21 +02:00
|
|
|
NUTTXLIBS += staging$(DELIM)libwireless$(LIBEXT)
|
2016-02-27 00:07:04 +01:00
|
|
|
endif
|
|
|
|
|
2018-05-30 14:36:06 +02:00
|
|
|
# Add DSP library
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_LIBDSP),y)
|
|
|
|
NUTTXLIBS += staging$(DELIM)libdsp$(LIBEXT)
|
|
|
|
endif
|
|
|
|
|
2019-11-02 18:30:33 +01:00
|
|
|
ifeq ($(CONFIG_OPENAMP),y)
|
|
|
|
NUTTXLIBS += staging$(DELIM)libopenamp$(LIBEXT)
|
|
|
|
endif
|
|
|
|
|
2022-10-19 12:55:48 +02:00
|
|
|
# Add libraries for board common support
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_ARCH_BOARD_COMMON),y)
|
|
|
|
NUTTXLIBS += staging$(DELIM)libboard$(LIBEXT)
|
|
|
|
endif
|
|
|
|
|
2014-09-04 19:43:41 +02:00
|
|
|
# Export all libraries
|
|
|
|
|
|
|
|
EXPORTLIBS = $(NUTTXLIBS)
|