Skip to content

Yocto meta-later for dotnet core 7.0.100

Notifications You must be signed in to change notification settings

LoloActemium/meta-dotnet

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

meta-dotnet

Yocto meta-layer for dotnet core 7.0.100 for armv7/aarch64/x86

Compatibility

Branch Compatible Layers Supported Arch dotnet version
master Kirkstone x86_64, armv7, aarch64 7.0.100
dunfell dunfell, zeus x86_64, armv7, aarch64 7.0.100
pyro N/A x86_64, armv7 3.1.101

Usage

Add this meta layer to your project (refer to yocto user manual)

You may need to add following lines to you local.conf file (enabling access to NuGet.org in configure and compile steps):

do_configure[network] = "1"
do_compile[network] = "1"

Create a new dotnet core application and include it in your yocto build as follows...

DESCRIPTION = "My dot net core 3.1 app"
LICENSE = "CLOSED"

SRC_URI = "file://hello-world.cs \
           file://hello-world.csproj \
"

inherit dotnet

This does a few things, when you inherit dotnet meta-layer class, it will does the following...

  • Automatically download the host dotnet sdk for linux x64 as a native build tool dotnet-sdk-native (In the future this could become mac and windows compatible, but I only yocto on linux)
  • Performs the required build steps dotnet restore and dotnet build -c Release ...

Deployment

The resultant application is a self-contained, compressed, trimmed package. No dotnet runtime is required on the target rootfs

The applications will be installed at /opt/dotnet/${PN}

About

Yocto meta-later for dotnet core 7.0.100

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • BitBake 85.0%
  • C# 15.0%