Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor recipe cleanup #83

Merged
merged 2 commits into from
Oct 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions base-rootfs-rpi4.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
{{- $firmware_version := or .firmware_version "master" -}}
{{- $kernel_version := or .kernel_version "5.15.92-gecko+" -}}
{{ $suite := or .suite "bookworm" }}
{{- $image := or .image "ostree-base-image-rpi4" -}}
{{- $build_cores := or .build_cores 4 -}}

architecture: {{ $architecture }}
Expand All @@ -14,15 +13,12 @@ actions:
architecture: {{ $architecture }}
firmware_version: {{ $firmware_version }}
suite: {{ $suite }}
image: {{ $image }}

- action: recipe
recipe: recipes/02-rpi4.yml
variables:
architecture: {{ $architecture }}
firmware_version: {{ $firmware_version }}
suite: {{ $suite }}
image: {{ $image }}
kernel_version: {{ $kernel_version }}

- action: recipe
Expand All @@ -31,7 +27,6 @@ actions:
architecture: {{ $architecture }}
firmware_version: {{ $firmware_version }}
suite: {{ $suite }}
image: {{ $image }}

- action: recipe
recipe: recipes/03-get-raspi-packages.yml
Expand All @@ -42,7 +37,6 @@ actions:
architecture: {{ $architecture }}
firmware_version: {{ $firmware_version }}
suite: {{ $suite }}
image: {{ $image }}

- action: recipe
recipe: recipes/05-setup-networking.yml
Expand All @@ -58,7 +52,6 @@ actions:
architecture: {{ $architecture }}
firmware_version: {{ $firmware_version }}
suite: {{ $suite }}
image: {{ $image }}

- action: recipe
recipe: recipes/07-splash-screen.yml
Expand All @@ -71,7 +64,6 @@ actions:
architecture: {{ $architecture }}
firmware_version: {{ $firmware_version }}
suite: {{ $suite }}
image: {{ $image }}

- action: recipe
recipe: recipes/09-swap.yml
Expand All @@ -82,17 +74,13 @@ actions:
recipe: recipes/11-ovos-font.yml
variables:
architecture: {{ $architecture }}
firmware_version: {{ $firmware_version }}
suite: {{ $suite }}
image: {{ $image }}

- action: recipe
recipe: recipes/13-audio-devices.yml
variables:
architecture: {{ $architecture }}
firmware_version: {{ $firmware_version }}
suite: {{ $suite }}
image: {{ $image }}

- action: recipe
recipe: recipes/14-mount-firmware.yml
Expand Down
2 changes: 1 addition & 1 deletion kernel_build/rpi4/build_kernel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ for file in *.deb; do
done
cp "${kernel_dir}/"*.deb "${ROOT_PATH}/../../overlays/02-rpi4/var/tmp/" && echo "Copied deb installers to overlay"
echo "Compressing ${kernel_dir}"
zip -j1 -r "${kernel_dir}.zip" "${kernel_dir}" || exit 2
zip -j -r "${kernel_dir}.zip" "${kernel_dir}" || exit 2
rm -r "${kernel_dir}"
rm linux-upstream_*
rm ./*.deb
10 changes: 0 additions & 10 deletions recipes/02-rpi4.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,16 +69,6 @@ actions:
# chroot: true
# script: ../scripts/02-set_root_fs.sh

- action: run
description: Define Default Groups
chroot: true
command: |
groupadd gpio
groupadd pulse
groupadd pulse-access
groupadd i2c
groupadd ssl-cert

- action: run
description: Set hostname
chroot: true
Expand Down
28 changes: 19 additions & 9 deletions recipes/03-base-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,16 @@
architecture: {{ $architecture }}

actions:
- action: run
description: Define Default Groups
chroot: true
command: |
groupadd gpio
groupadd pulse
groupadd pulse-access
groupadd i2c
groupadd ssl-cert

- action: apt
description: Basic packages
packages:
Expand Down Expand Up @@ -52,12 +62,12 @@ actions:
- plasma-pa
- plasma-nm

- action: apt
description: GStreamer packages
packages:
- gstreamer1.0-plugins-base
- gstreamer1.0-plugins-good
- gstreamer1.0-plugins-bad
- gstreamer1.0-plugins-ugly
- gstreamer1.0-libav
- libqt5multimedia5-plugins
# - action: apt
# description: GStreamer packages
# packages:
# - gstreamer1.0-plugins-base
# - gstreamer1.0-plugins-good
# - gstreamer1.0-plugins-bad
# - gstreamer1.0-plugins-ugly
# - gstreamer1.0-libav
# - libqt5multimedia5-plugins
4 changes: 0 additions & 4 deletions recipes/06-libcamera.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,24 +14,20 @@ actions:
- libtiff5-dev
- python3-yaml
- python3-ply
# - python3-jinja2
- libglib2.0-dev
- libssl-dev
- meson
# - ninja-build
- pkg-config
- qtbase5-dev
- libqt5core5a
- libqt5gui5
- libqt5widgets5
# - cmake
- libboost-program-options-dev
- libdrm-dev
- libexif-dev
- libpng-dev
- libegl1-mesa-dev
- v4l-utils
# - apt-transport-https
- software-properties-common
- libcamera-dev
- libepoxy-dev
Expand Down
5 changes: 0 additions & 5 deletions recipes/10-mycroft.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@
architecture: {{ $architecture }}

actions:
- action: overlay
description: Mycroft helper commands overlay
source: ../overlays/10-helper-commands
destination: /opt/mycroft/

- action: overlay
description: OVOS specific overlay
source: ../overlays/10-mycroft
Expand Down
4 changes: 1 addition & 3 deletions recipes/11-ovos-font.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
{{- $architecture := or .architecture "arm64" -}}
{{- $firmware_version := or .firmware_version "master" -}}
{{ $suite := or .suite "focal" }}

architecture: {{ $architecture }}

Expand Down Expand Up @@ -28,4 +26,4 @@ actions:
- action: run
description: Update font cache
chroot: true
command: fc-cache -f -v
command: fc-cache -f
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ architecture: {{ $architecture }}
actions:
- action: overlay
description: OVOS Dash Overlay
source: ../overlays/42-ovos-dashboard
source: ../overlays/999-ovos-dashboard
destination: /
- action: run
description: Install OVOS Dashboard
chroot: true
script: ../scripts/42-ovos-dashboard.sh
script: ../scripts/999-ovos-dashboard.sh
# TODO: Refactor script and overlay to handle a configured username
1 change: 0 additions & 1 deletion scripts/29-build-ovos-shell.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,5 @@ rm /usr/share/OVOS/ColorSchemes/sunset_scheme.json

# Permission overlay files and enable gui service
chmod -R ugo+x /usr/bin
chown -R neon:neon /home/neon
systemctl enable gui-shell
echo "GUI Embedded Shell Configured"
File renamed without changes.