Skip to content

jeremy-prater/meta-swift

Repository files navigation

meta-swift

Yocto meta-layer for swift-on-arm (Swift 5.7.1)

Usage

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

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

DESCRIPTION = "My swift 5.7.1 app"
LICENSE = "CLOSED"

SRC_URI = "file://Sources/hello-world/main.swift \
           file://Package.swift \
"

inherit swift

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

  • Automatically download the x86_64 and ARMv7 swift 5.7.1 binaries and create a cross-compiling sys-root
  • Add an RDEPENDS_${PN} for swift which is the Armv7 runtime
  • Performs the required build steps

Deployment

The user of this meta-layer must provide their own do_install function.

The finished binaries are located in ${WORKDIR}/.build/release/*

About

Yocto meta-layer for building swift applications

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •