# Configuration flags
include("cmake/CfgOptionFlags.cmake")
# and besides CfgOptionFlags.cmake that can be given outside
-# OBS_BUILD: build boolean flag that tizen in OBS build
# COVERAGE_BUILD: build boolean flag that enables converage test
-# ROOTFS_ARM: arm rootfs path for cross building
-# ROOTFS_ARM64: arm 64bit rootfs path for cross building, linux,tizen,android
+# ROOTFS_DIR: rootfs path for cross building
# TARGET_ARCH: target architecture string for cross building
# TARGET_OS: target os string for cross building
ifeq ($(CROSS_BUILD),1)
TOOLCHAIN_FILE=cmake/buildtool/cross/toolchain_$(TARGET_ARCH_LC)-$(TARGET_OS).cmake
OPTIONS+= -DCMAKE_TOOLCHAIN_FILE=$(TOOLCHAIN_FILE)
- OPTIONS+= -DCROSS_BUILD=ON
endif
ifeq ($(COVERAGE_BUILD),1)
message(FATAL_ERROR "'${HOST_ARCH}' architecture is not supported")
endif()
-# TARGET_IS_ARMARCH: for workaround arm-related build option setting
-# TODO Remove TARGET_IS_ARMARCH
-set(TARGET_IS_ARMARCH TRUE)
if("${TARGET_ARCH}" STREQUAL "x86_64")
set(TARGET_ARCH_BASE ${TARGET_ARCH})
- set(TARGET_IS_ARMARCH FALSE)
elseif("${TARGET_ARCH}" STREQUAL "armv7l")
set(TARGET_ARCH_BASE "arm")
elseif("${TARGET_ARCH}" STREQUAL "arm64")
message(FATAL_ERROR "'${TARGET_ARCH}' architecture is not supported")
endif()
-if(NOT CROSS_BUILD)
- set(BUILD_IS_NATIVE True)
-else()
- set(BUILD_IS_NATIVE False)
-endif()
-
# host & target platform name
set(HOST_PLATFORM "${HOST_ARCH}-${HOST_OS}")
set(TARGET_PLATFORM "${TARGET_ARCH}-${TARGET_OS}")