1 Star 0 Fork 24

李昂 / HeliosSDK

forked from QuecPython / HeliosSDK 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
plat.mk 3.83 KB
一键复制 编辑 原始数据 按行查看 历史
freddy.li 提交于 2021-11-12 19:33 . update HeliosSDK
# Copyright (c) Quectel Wireless Solution, Co., Ltd.All Rights Reserved.
#
# Licensed 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# 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.
############################
# flags and libs on Unisoc #
############################
ifeq ($(strip $(PLAT)), Unisoc)
CFLAGS_PLAT = -mcpu=cortex-a5 -mtune=generic-armv7-a -mthumb \
-mfpu=neon-vfpv4 -mfloat-abi=hard -mno-unaligned-access
include config/config.mk
ifeq ($(CONFIG_CAMERA_DECODE), y)
USE_NANO_LIB = y
endif
ifeq ($(USE_NANO_LIB), y) # use nano lib
STD_LIBS += $(COMPILER_PATH)/$(CROSS)/lib/thumb/v7-a+fp/hard/libc_nano.a
else
STD_LIBS += $(COMPILER_PATH)/$(CROSS)/lib/thumb/v7-a+fp/hard/libc.a
endif
ifneq ($(USE_NOSYS_LIB), n) # use nosys lib
STD_LIBS += $(COMPILER_PATH)/$(CROSS)/lib/thumb/v7-a+fp/hard/libnosys.a
endif
STD_LIBS += $(COMPILER_PATH)/$(CROSS)/lib/thumb/v7-a+fp/hard/libm.a \
$(COMPILER_PATH)/lib/gcc/$(CROSS)/10.2.1/thumb/v7-a+fp/hard/libgcc.a
endif
##########################
# flags and libs on ASR #
##########################
ifeq ($(strip $(PLAT)), ASR)
CFLAGS_PLAT = -mcpu=cortex-r4 -mtune=cortex-r4 -mthumb \
-mthumb-interwork -mfloat-abi=soft -mlong-calls
DFLAGS_PLAT = _SYS_SELECT_H
ifeq ($(USE_NANO_LIB), y) # use nano lib
STD_LIBS += $(COMPILER_PATH)/$(CROSS)/lib/thumb/v7/nofp/libc_nano.a
else
STD_LIBS += $(COMPILER_PATH)/$(CROSS)/lib/thumb/v7/nofp/libc.a
endif
ifneq ($(USE_NOSYS_LIB), n) # use nosys lib
STD_LIBS += $(COMPILER_PATH)/$(CROSS)/lib/thumb/v7/nofp/libnosys.a
endif
STD_LIBS += $(COMPILER_PATH)/$(CROSS)/lib/thumb/v7/nofp/libm.a \
$(COMPILER_PATH)/lib/gcc/$(CROSS)/10.2.1/thumb/v7/nofp/libgcc.a
endif
##########################
# flags and libs on RDA #
##########################
ifeq ($(strip $(PLAT)), RDA)
EL_FLAG = -EL
CFLAGS_PLAT = -march=xcpu2 -mtune=xcpu2 -mips16 -msoft-float \
-minterlink-mips16 -mexplicit-relocs -pipe $(EL_FLAG) \
-mmemcpy \
-fno-inline-small-functions \
-fno-inline-functions \
-fno-align-functions \
-fno-align-jumps \
-fno-align-loops \
-fno-align-labels \
-fno-builtin-iswspace \
-frename-registers \
-fwide-exec-charset=UTF-16LE \
-fshort-wchar \
-ffixed-t3 -ffixed-t4 -ffixed-t5 -ffixed-t6 -ffixed-t7 \
-ffixed-s2 -ffixed-s3 -ffixed-s4 -ffixed-s5 -ffixed-s6 -ffixed-s7 \
-ffixed-fp \
-fweb \
-G0
LDFLAGS_PLAT = $(EL_FLAG)
STD_LIBS += $(COMPILER_PATH)/lib/gcc/$(CROSS)/7.1.0/xcpu2/mips16/libgcc.a \
$(COMPILER_PATH)/$(CROSS)/lib/libc.a \
$(COMPILER_PATH)/$(CROSS)/lib/libm.a
endif
##########################
# flags and libs on Qual #
##########################
ifeq ($(strip $(PLAT)), Qualcomm)
CFLAGS_PLAT = -marm -target armv7m-none-musleabi -mfloat-abi=softfp -mfpu=none -mcpu=cortex-a7 \
-mno-unaligned-access -fms-extensions -fshort-enums -Wbuiltin-macro-redefined
DFLAGS_PLAT = QAPI_TXM_MODULE \
TXM_MODULE \
TX_DAM_QC_CUSTOMIZATIONS \
TX_ENABLE_PROFILING \
TX_ENABLE_EVENT_TRACE \
TX_DISABLE_NOTIFY_CALLBACKS \
FX_FILEX_PRESENT \
TX_ENABLE_IRQ_NESTING \
TX3_CHANGES
STD_LIBS += $(COMPILER_PATH)/armv7m-none-eabi/libc/lib/libc.a \
$(COMPILER_PATH)/lib/clang/4.0.3/lib/baremetal/libclang_rt.builtins-armv7m.a
endif
##########################
# export for STD_LIBS #
##########################
export STD_LIBS
C
1
https://gitee.com/Lyon1998/HeliosSDK.git
git@gitee.com:Lyon1998/HeliosSDK.git
Lyon1998
HeliosSDK
HeliosSDK
master

搜索帮助