RDunkley / meta-dotnet-core

BitBake recipes to use the pre-built binaries provided by Microsoft for .Net Core and their remote debugger.
MIT License
34 stars 28 forks source link

x86-64 target architecture does not fetch runtime tarball #19

Closed phatina closed 2 years ago

phatina commented 4 years ago

I am building an image for Up Squared board, which is 64-bit Intel and I fail to build dotnet-core package.

The fix which works for me is following:

diff --git a/recipes-runtime/dotnet-core/dotnet-core_3.1.3.inc b/recipes-runtime/dotnet-core/dotnet-core_3.1.3.inc
index efecb38..17f7493 100644
--- a/recipes-runtime/dotnet-core/dotnet-core_3.1.3.inc
+++ b/recipes-runtime/dotnet-core/dotnet-core_3.1.3.inc
@@ -7,7 +7,7 @@ HOMEPAGE = "https://dotnet.microsoft.com/download/dotnet-core/3.1"

 DOTNET_RUNTIME_ARCH = "none"
 DOTNET_RUNTIME_ARCH_arm = "arm"
-DOTNET_RUNTIME_ARCH_x86_64 = "x64"
+DOTNET_RUNTIME_ARCH_x86-64 = "x64"
 DOTNET_RUNTIME_ARCH_aarch64 = "arm64"

 # This is here because it doesn't seem like bitbake likes ${PV} used in require statements.

Am I doing something wrong? Is this a typo (- vs _)?

Thank a lot.

RDunkley commented 4 years ago

I keyed off the TARGETARCH in Yocto Reference manual to get these. Looks like older reference manuals have the '-' while newer have the ''. If you are using an older version of poky then you may have other build issues, but I don't see anything wrong with adding them both so that either architecture string works.

On Sat, Jun 13, 2020, 4:25 AM Peter Hatina notifications@github.com wrote:

I am building an image for Up Squared board, which is 64-bit Intel and I fail to build dotnet-core package.

The fix which works for me is following:

diff --git a/recipes-runtime/dotnet-core/dotnet-core_3.1.3.inc b/recipes-runtime/dotnet-core/dotnet-core_3.1.3.inc index efecb38..17f7493 100644--- a/recipes-runtime/dotnet-core/dotnet-core_3.1.3.inc+++ b/recipes-runtime/dotnet-core/dotnet-core_3.1.3.inc@@ -7,7 +7,7 @@ HOMEPAGE = "https://dotnet.microsoft.com/download/dotnet-core/3.1"

DOTNET_RUNTIME_ARCH = "none" DOTNET_RUNTIME_ARCH_arm = "arm"-DOTNET_RUNTIME_ARCH_x86_64 = "x64"+DOTNET_RUNTIME_ARCH_x86-64 = "x64" DOTNET_RUNTIME_ARCH_aarch64 = "arm64"

This is here because it doesn't seem like bitbake likes ${PV} used in require statements.

Am I doing something wrong? Is this a typo (- vs _)?

Thank a lot.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/RDunkley/meta-dotnet-core/issues/19, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB5SOIP6E6SZ5FLQVPKNQXLRWNH2XANCNFSM4N45XUKQ .

RDunkley commented 2 years ago

Added this in 5.0.12 and will add for future versions.