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 4# PSL v2. 5# You may obtain a copy of Mulan PSL v2 at: 6# http://license.coscl.org.cn/MulanPSL2 7# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY 8# KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO 9# NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. 10# See the Mulan PSL v2 for more details. 11 12set(CMAKE_SYSTEM_NAME Linux) 13set(CMAKE_SYSTEM_PROCESSOR arm) 14 15set(CMAKE_C_COMPILER arm-linux-gnueabi-gcc CACHE PATH "GCC C32 compiler") 16set(CMAKE_CXX_COMPILER arm-linux-gnueabi-g++ CACHE PATH "GCC CXX32 compiler") 17set(CMAKE_LINKER arm-linux-gnueabi-ld CACHE PATH "GCC C32 LD") 18set(CMAKE_READELF arm-linux-gnueabi-readelf CACHE PATH "GCC C32 READELF") 19 20set(CMAKE_SKIP_BUILD_RPATH TRUE CACHE BOOL "" FORCE) 21set(CMAKE_C_CREATE_SHARED_LIBRARY "<CMAKE_LINKER> <LANGUAGE_COMPILE_FLAGS> <LINK_FLAGS> -o <TARGET> <OBJECTS> <LINK_LIBRARIES>") 22