• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (C) 2022 Huawei Technologies Co., Ltd.
2# Licensed under the Mulan PSL v2.
3# You can use this software according to the terms and conditions of the Mulan PSL v2.
4# You may obtain a copy of Mulan PSL v2 at:
5#     http://license.coscl.org.cn/MulanPSL2
6# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR
7# IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR
8# PURPOSE.
9# See the Mulan PSL v2 for more details.
10
11# setup toolchain
12TARGET_IS_SYS := y
13include $(BUILD_CONFIG)/var.mk
14include $(BUILD_CONFIG)/cfg.mk
15include $(BUILD_CONFIG)/toolchain.mk
16include $(BUILD_OPERATION)/common.mk
17
18inc-flags += $(INCLUDE_PATH:%=-I%)
19
20flags += -fdata-sections -ffunction-sections
21
22ifeq ($(CONFIG_TRNG_ENABLE), true)
23flags += -DTRNG_ENABLE
24endif
25
26# cpp flags:
27cxx-flags += -nostdinc++ -static-libstdc++
28cxx-flags += -I$(LLVM_INC)
29flags += $(INCLUDES)
30
31include $(BUILD_CFI)/llvm-apps-cfi.mk
32