1e656c62eSopenharmony_ci# Copyright (C) 2022 Huawei Technologies Co., Ltd. 2e656c62eSopenharmony_ci# Licensed under the Mulan PSL v2. 3e656c62eSopenharmony_ci# You can use this software according to the terms and conditions of the Mulan PSL v2. 4e656c62eSopenharmony_ci# You may obtain a copy of Mulan PSL v2 at: 5e656c62eSopenharmony_ci# http://license.coscl.org.cn/MulanPSL2 6e656c62eSopenharmony_ci# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR 7e656c62eSopenharmony_ci# IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR 8e656c62eSopenharmony_ci# PURPOSE. 9e656c62eSopenharmony_ci# See the Mulan PSL v2 for more details. 10e656c62eSopenharmony_ci 11e656c62eSopenharmony_ciROOT_DIR := ../../../ 12e656c62eSopenharmony_ciTOOLCHAIN_DIR := ${ROOT_DIR}/gcc-linaro-7.5.0-2019.12-x86_64_aarch64-linux-gnu/bin 13e656c62eSopenharmony_ciCC := ${TOOLCHAIN_DIR}/aarch64-linux-gnu-gcc 14e656c62eSopenharmony_ciAR := ${TOOLCHAIN_DIR}/aarch64-linux-gnu-ar 15e656c62eSopenharmony_ciCFLAGS := -Wall -Werror 16e656c62eSopenharmony_ci 17e656c62eSopenharmony_ciDEBUG ?= 0 18e656c62eSopenharmony_ciifeq ($(DEBUG), 1) 19e656c62eSopenharmony_ciCFLAGS += -O0 -g 20e656c62eSopenharmony_ciCFLAGS += -DDEBUG 21e656c62eSopenharmony_ciendif 22e656c62eSopenharmony_ci 23e656c62eSopenharmony_ciRM := rm -f 24e656c62eSopenharmony_ci 25e656c62eSopenharmony_cidefine rm_dirs 26e656c62eSopenharmony_ciif [ -d "$(1)" ] ; then rmdir --ignore-fail-on-non-empty $(1) ; fi 27e656c62eSopenharmony_ciendef 28