diff --git a/config.gradle b/config.gradle index 1ac9119c03..9ed83b4e8a 100644 --- a/config.gradle +++ b/config.gradle @@ -175,34 +175,17 @@ if (!project.hasProperty('onlyAthena')) { compilerFamily = 'Clang' detectPlatform = mac64PlatformDetect } - raspbian(CrossBuildConfig) { - architecture = 'raspbian' + } + } +} + +if (project.hasProperty('linuxCross')) { + model { + buildConfigs { + linuxArm(CrossBuildConfig) { + architecture = 'nativearm' operatingSystem = 'linux' - toolChainPrefix = 'arm-linux-gnueabihf-' - compilerArgs = linuxCompilerArgs - linkerArgs = linuxLinkerArgs - debugCompilerArgs = linuxDebugCompilerArgs - releaseCompilerArgs = linuxReleaseCompilerArgs - skipByDefault = true - compilerFamily = 'Gcc' - exclude << 'gmock' - } - armhf(CrossBuildConfig) { - architecture = 'armhf' - operatingSystem = 'linux' - toolChainPrefix = 'arm-linux-gnueabihf-' - compilerArgs = linuxCompilerArgs - linkerArgs = linuxLinkerArgs - debugCompilerArgs = linuxDebugCompilerArgs - releaseCompilerArgs = linuxReleaseCompilerArgs - skipByDefault = true - compilerFamily = 'Gcc' - exclude << 'gmock' - } - aarch(CrossBuildConfig) { - architecture = 'aarch' - operatingSystem = 'linux' - toolChainPrefix = 'aarch-linux-gnu-' + toolChainPrefix = 'PLEASE_PROVIDE_A_COMPILER_NAME' compilerArgs = linuxCompilerArgs linkerArgs = linuxLinkerArgs debugCompilerArgs = linuxDebugCompilerArgs @@ -211,8 +194,13 @@ if (!project.hasProperty('onlyAthena')) { compilerFamily = 'Gcc' exclude << 'gmock' } + } + } +} else { + model { + buildConfigs { linuxArm(BuildConfig) { - architecture = 'arm' + architecture = 'nativearm' operatingSystem = 'linux' compilerArgs = linuxCompilerArgs linkerArgs = linuxLinkerArgs