Skip to content

Commit 585b504

Browse files
committed
chore: add 15.6 (missing KDK)
1 parent 091b98a commit 585b504

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

.github/workflows/c-cpp.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
runs-on: macos-latest
2020
strategy:
2121
matrix:
22-
macos-version: [ '15.5' ]
22+
macos-version: [ '15.6' ]
2323
steps:
2424
- name: Checkout
2525
uses: actions/checkout@v5

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,10 @@
3434
| macOS 15.3 || [DB](https://github.com/blacktop/darwin-xnu-build/releases/download/v15.3/xnu-codeql.zip) | ❔ / ❔ |
3535
| macOS 15.4 || [DB](https://github.com/blacktop/darwin-xnu-build/releases/download/v15.4/xnu-codeql.zip) | ❔ / ❔ |
3636
| macOS 15.5 || [DB](https://github.com/blacktop/darwin-xnu-build/releases/download/v15.5/xnu-codeql.zip) | ❔ / ❔ |
37+
| macOS 15.6 | 🚧 | [DB](https://github.com/blacktop/darwin-xnu-build/releases/download/v15.6/xnu-codeql.zip) | ❔ / ❔ |
3738

3839
> [!NOTE]
39-
> CodeQL DBs built with `MACHINE_CONFIG=VMAPPLE`
40+
> CodeQL DBs built with `MACHINE_CONFIG=VMAPPLE`
4041
> MacOS `14.3` booted:
4142
> - via Virtualization.framework with `MACHINE_CONFIG=VMAPPLE`
4243
> - via qemu with `ARCH_CONFIG=x86_64`
@@ -49,7 +50,7 @@ Currently `MACHINE_CONFIG=T8103` is not correctly building for at least `14.3`
4950
> [!NOTE]
5051
> When attempting to boot try adding the boot-arg: `sudo nvram boot-args="-unsafe_kernel_text"`
5152
52-
> [!WARNING]
53+
> [!WARNING]
5354
> Booting VMAPPLE kernels in VMs only works on Apple M1s [see issue](https://github.com/blacktop/darwin-xnu-build/issues/22)
5455
5556
## Why? 🤔

build.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ install_ipsw() {
132132
choose_xnu() {
133133
if [ -z "$MACOS_VERSION" ]; then
134134
gum style --border normal --margin "1" --padding "1 2" --border-foreground 212 "Choose $(gum style --foreground 212 'macOS') version to build:"
135-
MACOS_VERSION=$(gum choose "12.5" "13.0" "13.1" "13.2" "13.3" "13.4" "13.5" "14.0" "14.1" "14.2" "14.3" "14.4" "14.5" "14.6" "15.0" "15.1" "15.2" "15.3" "15.4" "15.5")
135+
MACOS_VERSION=$(gum choose "12.5" "13.0" "13.1" "13.2" "13.3" "13.4" "13.5" "14.0" "14.1" "14.2" "14.3" "14.4" "14.5" "14.6" "15.0" "15.1" "15.2" "15.3" "15.4" "15.5" "15.6")
136136
fi
137137
TIGHTBEAMC="tightbeamc-not-supported"
138138
case ${MACOS_VERSION} in
@@ -256,6 +256,12 @@ choose_xnu() {
256256
KDKROOT='/Library/Developer/KDKs/KDK_15.5_24F74.kdk'
257257
RC_DARWIN_KERNEL_VERSION='24.5.0'
258258
;;
259+
'15.6')
260+
RELEASE_URL='https://raw.githubusercontent.com/apple-oss-distributions/distribution-macOS/macos-156/release.json'
261+
KDK_NAME='Kernel Debug Kit 15.6 build 24G84'
262+
KDKROOT='/Library/Developer/KDKs/KDK_15.6_24G84.kdk'
263+
RC_DARWIN_KERNEL_VERSION='24.6.0'
264+
;;
259265
*)
260266
error "Invalid xnu version"
261267
exit 1
@@ -321,7 +327,7 @@ patches() {
321327
'14.4' | '14.5')
322328
PATCH_DIR="${WORK_DIR}/patches/14.4"
323329
;;
324-
'14.6' | '15.0' | '15.1' | '15.2' | '15.3' | '15.4' | '15.5')
330+
'14.6' | '15.0' | '15.1' | '15.2' | '15.3' | '15.4' | '15.5' | '15.6')
325331
PATCH_DIR="${WORK_DIR}/patches/15.0"
326332
;;
327333
*)

0 commit comments

Comments
 (0)