Skip to content

Yocto meta-layer for building Swift applications

Notifications You must be signed in to change notification settings

MillerTechnologyPeru/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

Packages

No packages published

Languages

  • BitBake 47.3%
  • Shell 33.9%
  • C++ 8.3%
  • Swift 7.3%
  • Dockerfile 2.6%
  • CMake 0.6%