Skip to content

Commit

Permalink
Align more with upstream OS and other misc changes (#220)
Browse files Browse the repository at this point in the history
* Align more with upstream official OS.

Enable automatic loading of overlays for detected:
- Camera
- Display

Part of #145.

* No need to carry around the kernel source code.

Closes #138.
  • Loading branch information
samip5 authored Jan 24, 2024
1 parent 79b8d16 commit 883d557
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions parsers/packstage4/packstage4
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/bash -ex

rm "$CHROOT_DIR"/em-* || echo "no scripts to clean"
rm -rv "$CHROOT_DIR"/usr/src/kernel/* || echo "no kernel sources to clean"

tar --zstd -f $PROJECT_DIR/latest-$PROJECT.tar.zst --create --preserve-permissions --numeric-owner --xattrs --acls --directory "$CHROOT_DIR" .

6 changes: 4 additions & 2 deletions subtargets/genpi64-lite-finalize.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
{"name": "add_kernel8_p4", "deps": ["add_kernel8"], "parser": "crudini", "args": ["--set", "--inplace", "--existing=file", "boot/config.txt", "pi4", "kernel", "kernel8-p4.img"]},
{"name": "enableuart", "deps": ["add_kernel8_p4"], "parser": "crudini", "args": ["--set", "--inplace", "--existing=file", "boot/config.txt", "all", "enable_uart", "1"]},
{"name": "disableoverscan", "deps": ["enableuart"], "parser": "crudini", "args": ["--set", "--inplace", "--existing=file", "boot/config.txt", "all", "disable_overscan", "1"]},
{"name": "enable_vc4_kms_pi4", "deps": ["disableoverscan"], "parser": "crudini", "args": ["--set", "--inplace", "--existing=file", "boot/config.txt", "pi4", "dtoverlay", "vc4-fkms-v3d-pi4.dtbo"]},
{"name": "packstage4", "deps": ["enable_vc4_kms_pi4"], "parser": "packstage4", "args": [""]},
{"name": "enable_vc4_kms", "deps": ["disableoverscan"], "parser": "crudini", "args": ["--set", "--inplace", "--existing=file", "boot/config.txt", "all", "dtoverlay", "vc4-fkms-v3d"]},
{"name": "enable_camera_auto_detect", "deps": ["enable_vc4_kms"], "parser": "crudini", "args": ["--set", "--inplace", "--existing=file", "boot/config.txt", "all", "camera_auto_detect", "1"]},
{"name": "enable_display_auto_detect", "deps": ["enable_camera_auto_detect"], "parser": "crudini", "args": ["--set", "--inplace", "--existing=file", "boot/config.txt", "all", "display_auto_detect", "1"]},
{"name": "packstage4", "deps": ["enable_display_auto_detect"], "parser": "packstage4", "args": [""]},
{"name": "packgenpi", "deps": ["packstage4"], "parser": "includejson", "args": ["subtargets/pack-genpi.json"]}
]

0 comments on commit 883d557

Please sign in to comment.