All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] macOS img and pkg installers
@ 2026-03-09 23:12 Eric L. Hernes
  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
  0 siblings, 2 replies; 4+ messages in thread
From: Eric L. Hernes @ 2026-03-09 23:12 UTC (permalink / raw)
  To: yocto-patches; +Cc: Eric L. Hernes

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)



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-03-16 14:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-09 23:12 [PATCH 0/2] macOS img and pkg installers Eric L. Hernes
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

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.