-
Notifications
You must be signed in to change notification settings - Fork 217
Conversation
Hi @hqueue, I'm your friendly neighborhood .NET Foundation Pull Request Bot (You can call me DNFBOT). Thanks for your contribution! The agreement was validated by .NET Foundation and real humans are currently evaluating your PR. TTYL, DNFBOT; |
Making this change involves bunch of pre-reqs:
|
@gkhanna79 Thank you for a quick response :) We will follow steps as you told us. |
@gkhanna79 PTAL. There are two missing parts. |
@@ -30,6 +30,8 @@ public class CompileTargets | |||
{ "osx.10.11-x64", "osx.10.10-x64" }, | |||
{ "ubuntu.14.04-x64", "ubuntu.14.04-x64" }, | |||
{ "ubuntu.16.04-x64", "ubuntu.16.04-x64" }, | |||
{ "ubuntu.14.04-arm", "ubuntu.14.04-arm" }, | |||
{ "ubuntu.16.04-arm", "ubuntu.16.04-arm" }, | |||
{ "ubuntu.16.10-x64", "ubuntu.16.10-x64" }, |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
@@ -105,7 +105,8 @@ private static List<string> RunDotnetTestOnTestProjects(BuildTargetContext c, Do | |||
bool fIsCrossArch = false; | |||
if (!String.IsNullOrEmpty(rid)) | |||
{ | |||
if ((String.Compare(rid, "win8-arm", true) == 0) || (String.Compare(rid, "win10-arm64", true) == 0)) | |||
if ((String.Compare(rid, "win8-arm", true) == 0) || (String.Compare(rid, "win10-arm64", true) == 0) |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
@hqueue The change looks fine to me.
Can you please add a TODO comment for the same in the code?
No, we will produce an archive file for Linux Arm32 that will get listed in the DailyBuilds section in Readme.md. Have you tried building for Ubuntu 14.04 and 16.04? |
@gkhanna79 PTAL. I've applied your feedback. Thank you for the feedback :) I've tested it with ubuntu 14.04 and it seems work as expected, i.e. successfully build nupkgs for corehosts and failed at later passes. Please merge this if there is no critical problem, because other developer is also working on the further packaging process. |
The change looks good to me but please see my comment at #814 (comment). |
@gkhanna79 PTAL. We merged PR #814 and this PR here with a new commit written by @jyoungyun. |
@gkhanna79 @jyoungyun I've rebased with upstream :) |
@@ -44,7 +61,10 @@ if [ "$(uname -s)" == "Darwin" ]; then | |||
__targets_param="TargetsOSX=true" | |||
else | |||
__targets_param="TargetsLinux=true" | |||
init_distro_name |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
@gkhanna79 We've tested this PR with locally built CoreCLR(ubuntu.14.04-arm) and CoreFX(ubuntu.14.04-arm) and generate tarballs for ubuntu.14.04-arm. What's the next step? One step I think is that we have to publish CoreCLR and CoreFX for ubuntu.14.04-arm to some servers for downloading from core-setup. cc: @jyoungyun |
@hqueue @jyoungyun The changes LGTM. Can you please rebase the commits to a single one and then I can merge this PR?
This will be done automatically once we enable the support for pipeline build for building Linux Arm32. To do so, we will first need to enable it for CoreCLR, publish the packages and then do the same for CoreFX and finally, Core-setup. |
@gkhanna79 PTAL. I've squashed commits. cc: @jyoungyun |
Add new rid "ubuntu.16.04-arm" Signed-off-by: Hyung-Kyu Choi <hk0110.choi@samsung.com> Add new rid "ubuntu.14.04-arm" Add new rid "ubuntu.14.04-arm", because CoreCLR and CoreFX for ARM32 use rid "ubuntu.14.04-arm" as default. Signed-off-by: Hyung-Kyu Choi <hk0110.choi@samsung.com> Add ubuntu.14.04-arm and ubuntu.16.04-arm Add new rids to *.builds and *.pkgproj files Signed-off-by: Hyung-Kyu Choi <hk0110.choi@samsung.com> Add Linux ARM32 support in PublishTargets.cs 1. Add version file name for Linux ARM32. 2. Add directory name for Linux ARM32. Signed-off-by: Hyung-Kyu Choi <hk0110.choi@samsung.com> Skip host test for Linux ARM32 We skip host test for ubuntu.14.04-arm and ubuntu.16.04-arm , because we are cross building. Signed-off-by: Hyung-Kyu Choi <hk0110.choi@samsung.com> Add ubuntu.14.04-arm instead of ubuntu.16.10-arm It was typo bug. Signed-off-by: Hyung-Kyu Choi <hk0110.choi@samsung.com> Add TODO-ARM-Crossgen comments Signed-off-by: Hyung-Kyu Choi <hk0110.choi@samsung.com> Refactoring: Introduce IsCrossArch helper function Signed-off-by: Hyung-Kyu Choi <hk0110.choi@samsung.com> Add '--rid' option to pkg/pack.sh on Linux To support cross build, the pack.sh uses '--rid' option instead of '/etc/os-release' file. Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Main issue: #725
Current approach
Old approach
I'm trying to build dotnet for rpi3 (ubuntu16.04-arm) and I've added new rid "ubuntu.16.04-arm" to dotnet-host-build as a start point. I will also update CMake rules for corehost.
Is this a right step to enable building dotnet for ARM ?
Looking for an advice and any comment is appreciated.