Skip to content

macOS img and pkg installers

Eric L. Hernes yocto-patches 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2Add IMG and PKG SDK installersREADME conf/files/darwin-toolchain-shar-extract.sh conf/files/finalize-sdk.sh +6 more+742 -20 replies
2/2convert libdispatch to native-only reciperecipes-devtools/libdispatch/libdispatch-native_git.bb+2 -31 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] macOS img and pkg installers

This patch adds support for building the SDK as .img and .pkg installers.

The .img can be mounted and used without having to install all the files for the SDK - this is similar to how Xcode deals with the var
ious macOS, iOS, tvOS, visionOS SDKs with versioning. The main downside is that we don't have a way to automatically run the post install script; so that is left to the user after opening the .img file.

The .pkg is the older way for macOS to install applications and data. It does allow running of the post install script at install time, so in this sense it's more automated. The downside is that it does put the files in the filesystem individually. We have to pick the location at build time - currently though the local.conf file.

In either case, there is a new mac-specific post install script (finalize-img and finalize-pkg) that will run the sed path changing commands and codesign the executables.

Eric L. Hernes (2):
Add IMG and PKG SDK installers
convert libdispatch to native-only recipe

 README                                        |  19 ++
 conf/files/darwin-toolchain-shar-extract.sh   | 316 ++++++++++++++++++
 conf/files/finalize-sdk.sh                    |  48 +++
 conf/files/mk-macos-img.sh                    |  49 +++
 conf/files/mk-macos-pkg.sh                    | 161 +++++++++
 conf/files/post-install.in                    |   9 +
 conf/files/pre-install.in                     |  84 +++++
 conf/layer.conf                               |   3 +
 conf/machine-sdk/darwin-common.inc            |  55 ++-
 ...patch_git.bb => libdispatch-native_git.bb} |   5 +-
 10 files changed, 744 insertions(+), 5 deletions(-)
 create mode 100644 conf/files/darwin-toolchain-shar-extract.sh
 create mode 100644 conf/files/finalize-sdk.sh
 create mode 100755 conf/files/mk-macos-img.sh
 create mode 100755 conf/files/mk-macos-pkg.sh
 create mode 100644 conf/files/post-install.in
 create mode 100644 conf/files/pre-install.in
 rename recipes-devtools/libdispatch/{libdispatch_git.bb => libdispatch-native_git.bb} (94%)
Signature · 1 line
2.50.1 (Apple Git-155)