summaryrefslogtreecommitdiff
path: root/netci.groovy
diff options
context:
space:
mode:
authorPrajwal A N <an.prajwal@samsung.com>2016-06-23 08:21:54 +0900
committerPrajwal A N <an.prajwal@samsung.com>2016-06-23 08:39:44 +0900
commit56fa3e782cb00a1be54ffe8250be009584090018 (patch)
treea64d6d38468a3a065dc11f4f3668004dc5815848 /netci.groovy
parent0c7f5b415c2106a5c261c9b918bbd6e736b01ebc (diff)
downloadcoreclr-56fa3e782cb00a1be54ffe8250be009584090018.tar.gz
coreclr-56fa3e782cb00a1be54ffe8250be009584090018.tar.bz2
coreclr-56fa3e782cb00a1be54ffe8250be009584090018.zip
ARM-CI: Use CI cross build script in emulator
Previous PRs added the build commands to the groovy script. But this did not work for various reasons. The current patch makes the CI system execute the bash script that does the cross build. The bash script is already supplied with the emulator Signed-off-by: Prajwal A N <an.prajwal@samsung.com>
Diffstat (limited to 'netci.groovy')
-rwxr-xr-xnetci.groovy19
1 files changed, 2 insertions, 17 deletions
diff --git a/netci.groovy b/netci.groovy
index ef8bf4f1be..372ae87bbf 100755
--- a/netci.groovy
+++ b/netci.groovy
@@ -1763,24 +1763,9 @@ combinedScenarios.each { scenario ->
// Setup variables to hold emulator folder path and the rootfs mount path
def armemul_path = '/opt/linux-arm-emulator'
def armrootfs_mountpath = '/opt/linux-arm-emulator-root'
- // Create the mount path directory if not present already
- buildCommands += "if [ ! -d ${armrootfs_mountpath} ]; then sudo mkdir ${armrootfs_mountpath}; fi;"
- // Unmount previously mounted rootfs and mount the Linux ARM emulator rootfs at /opt/linux-arm-emulator-root/
- buildCommands += "if grep -qs ${armrootfs_mountpath} /proc/mounts; then sudo umount ${armrootfs_mountpath}; fi ; sudo mount ${armemul_path}/platform/rootfs-t30.ext4 ${armrootfs_mountpath}"
-
- // Export LINUX_ARM_INCPATH to hold the include paths to be used by CPLUS_INCLUDE_PATH environment variable
- // Apply the changes needed to the library search paths to build for the emulator rootfs
- buildCommands += """echo \"Exporting LINUX_ARM_INCPATH environment variable\"
- source ${armrootfs_mountpath}/dotnet/setenv/setenv_incpath.sh ${armrootfs_mountpath}
-
- echo \"Applying cross build patch to suit Linux ARM emulator rootfs\"
- git am < ${armrootfs_mountpath}/dotnet/setenv/coreclr_cross.patch
-
- ROOTFS_DIR=${armrootfs_mountpath} CPLUS_INCLUDE_PATH=\$LINUX_ARM_INCPATH CXXFLAGS=\$LINUX_ARM_CXXFLAGS ./build.sh arm-softfp clean cross verbose skipmscorlib clang3.5 ${lowerConfiguration}
-
- echo \"Rewinding HEAD to master code\"
- git reset --hard HEAD^"""
+ // Call the ARM emulator build script to cross build using the ARM emulator rootfs
+ buildCommands += "./tests/scripts/arm32_ci_script.sh ${armemul_path} ${armrootfs_mountpath} ${lowerConfiguration}"
// Basic archiving of the build, no pal tests
Utilities.addArchival(newJob, "/opt/linux-arm-emulator-root/home/coreclr/bin/Product/**")