All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Eric L. Hernes" <dev@qinc.tv>
To: yocto-patches@lists.yoctoproject.org
Cc: "Eric L. Hernes" <dev@qinc.tv>
Subject: [PATCH 0/2] macOS img and pkg installers
Date: Mon,  9 Mar 2026 18:12:49 -0500	[thread overview]
Message-ID: <20260309231251.99347-1-dev@qinc.tv> (raw)

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%)

-- 
2.50.1 (Apple Git-155)



             reply	other threads:[~2026-03-09 23:13 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-09 23:12 Eric L. Hernes [this message]
2026-03-09 23:12 ` [PATCH 1/2] Add IMG and PKG SDK installers Eric L. Hernes
2026-03-09 23:12 ` [PATCH 2/2] convert libdispatch to native-only recipe Eric L. Hernes
2026-03-16 14:16   ` [yocto-patches] " Etienne Cordonnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260309231251.99347-1-dev@qinc.tv \
    --to=dev@qinc.tv \
    --cc=yocto-patches@lists.yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.