Commit Graph

1822 Commits

Author SHA1 Message Date
Jan Čermák d2059c5531 Add script for checking resulting kernel config (#3006)
There is bunch of kernel config options that are not propagated
correctly to the kernel configuration after fragments are merged
and processed by Kconfig. Current Buildroot tools are not good at
discovering these - while we cleaned up most inconsistencies by using
linux-diff-config and output from the merge_config.sh script, there
are still options that were removed or get a different value than
intended because of dependencies, etc.

This commit adds a Python script that is using Kconfiglib to parse
current kernel's Kconfig files and the generated .config and compare
the requested values from individual kernel config fragments. The
script can be used manually by running `make linux-check-dotconfig`
from the buildroot directory (with path to BR2_EXTERNAL directory set)
and it's called also from the CI, where it generates Github Workflow
warning annotations when some of the values are not present or when set
incorrectly.

The kconfiglib.py is checked-in to the repo as well, because the library
is currently abandoned on PyPI and packaged version has a bug that causes
errors parsing Kconfigs in newer Linux versions, fixed in outstanding
pull request ulfalizer/Kconfiglib#119 - so version from this PR is used
here.

If pypi/support#2526 is ever resolved, we could remove it from our repo
and use pip for installing the package as a requirement during build
of the build container.
2024-02-08 09:20:36 +00:00
j1nx 379e94dad3 [RPI] (WIP) Switch to kernel 6.6 VocalFusion drivers 2024-02-07 22:19:43 +00:00
j1nx f8e7a135e4 [All] Add --security-opt label=disable to the quadlet files 2024-02-07 18:24:19 +00:00
j1nx feb7a214ac [All] Hopefully the last dumb ass mistake to fix. 2024-02-07 18:23:29 +00:00
j1nx c8617076da [All] Fix another stupid mistake of wrong mycroft.conf location 2024-02-06 20:28:41 +00:00
j1nx ce81526d60 [All] Fix stupid mistake by disabling the wrong service at boot 2024-02-06 20:23:48 +00:00
j1nx 6bb37c4e82 [All] Changes to the quadlet files (again) 2024-02-06 19:12:26 +00:00
j1nx 455f11d7a6 [All] Mount host /etc/mycroft.conf into containers by default.
Shipping with OS release configuration while allowing to use the
user mycroft.conf to overwrite those settings again if wanted
2024-02-06 15:51:25 +00:00
j1nx 49d12c56bc [All] Remove fallback Mimic1 configuration 2024-02-06 11:42:37 +00:00
j1nx 141995d991 [RPI] Fixes and changes for respeaker / kernel 6.6 2024-02-06 10:55:56 +00:00
j1nx fffa51ff5f [All] (testing) Bumpe kernel to 6.6.14 2024-02-05 16:41:40 +00:00
j1nx 2cf3fb2d91 [x86] (Fix) No longer needed to install the kernel to the vfat esp partition. 2024-02-05 11:34:16 +00:00
j1nx e999e64152 [All] Disable libcamera-apps 2024-02-05 11:31:53 +00:00
j1nx 19b7e80788 [All] Add messagebus and phal-admin to prefetch containers 2024-02-04 21:34:06 +00:00
j1nx 0af4122eab [All] Switch back to old quadlet image system
Need to think this through
2024-02-04 17:18:36 +00:00
j1nx 5787cae2c9 [All] Remove healthy sdnotify system
The structure changed, need to figure out the best way forward.
2024-02-04 12:50:23 +00:00
j1nx 262bb73b52 [All] Add support for ovos_local_state
According 7df24e8ea8 (diff-b093d34eec92adf6e0cc6e445edb7147ea45d25fb0c98f2f84a60f5aae6f34f7)
2024-02-04 11:19:36 +00:00
j1nx 7aea4f0c5f [All] Switch over to / make use of podman .image files.
Also fix a filename error for tts-server and
do not pull in new containers automatically when newer are available
2024-02-04 11:03:14 +00:00
j1nx e8187814a3 [x86] Fix overseen little post-build script issues for x86 2024-02-04 11:03:14 +00:00
j1nx 5c7734b453 [All] Add a minimal phal.list to the main rootfs overlay 2024-02-04 11:03:14 +00:00
Peter Steenbergen 23bc8fb5ca
Merge pull request #212 from BohdanBuinich/fix-services
[ALL] Fix Service Failures during Boot
2024-02-04 11:02:30 +01:00
j1nx 5fb25536c7 [All] Revert certain pipewire tweaks (let's start over) 2024-02-03 19:27:41 +00:00
Bohdan Buinich 05e88781f6 [ALL] Fix Service Failures during Boot 2024-02-03 20:13:39 +02:00
j1nx 9116521d1e [All] Move the kernel RT PREEMPT settings to the main kernel config fragment file 2024-02-03 14:09:11 +00:00
j1nx 1ee4419270 [All] Pull in the main chat gpt skill as teh PR is merged 2024-02-03 12:37:30 +00:00
j1nx 2f8e165506 [x86] Use the SOF open firmware for Intel HDA soundcards 2024-02-03 12:36:46 +00:00
j1nx 46e0ebdded [All] Add ALSA UCM2 profiles 2024-02-03 12:36:14 +00:00
j1nx c3a0370a4b [All] Enable alsa-plugins 2024-02-03 12:34:51 +00:00
Bohdan Buinich 8342760419 align 0x86_64 2024-01-27 02:42:38 +02:00
Bohdan Buinich f7fc7caa0f oops 2 2024-01-27 02:40:10 +02:00
Bohdan Buinich 4b092feb65 fix after merge 2024-01-27 02:33:31 +02:00
Bohdan Buinich d1ac3d4be1 Merge remote-tracking branch 'origin/develop' into refactor-buildroot-scripts 2024-01-27 02:28:15 +02:00
j1nx c704499d22 Merge branch 'develop' of github.com:OpenVoiceOS/ovos-buildroot into develop 2024-01-26 14:45:01 +00:00
j1nx 4b2daa4980 [OVA] Defconfig clean up 2024-01-26 14:44:25 +00:00
j1nx 5a327ef218 [X86] Defconfig clean up 2024-01-26 14:43:39 +00:00
j1nx cee0325418 [OVA] Get defconfig inline with the rest 2024-01-26 13:06:58 +00:00
j1nx 29a4ad1690 Merge branch 'develop' of github.com:OpenVoiceOS/ovos-buildroot into develop 2024-01-26 11:56:39 +00:00
j1nx 5e7fd2e185 [X86] Get the X86 defconfig inline.
Build completes, however needs extensive testing.
2024-01-26 11:51:18 +00:00
j1nx 4ce75256d3 [RPI] Get the Raspberry Pi3 and 4 back in sync again.
With a possible fix for the RT kernel not booting on the rpi3
2024-01-24 15:43:33 +00:00
j1nx d38345a507 Merge branch 'develop' of github.com:OpenVoiceOS/ovos-buildroot into develop 2024-01-22 16:58:53 +00:00
j1nx e306bcd9bc [All] Real messy commit with switch to NetworkManager, kernel bump and countless fixes that came up 2024-01-22 16:57:19 +00:00
Bohdan Buinich d0dcab2864 Moved post-build and post-images on top level (not fully tested) 2024-01-12 14:52:02 +02:00
Bohdan Buinich 080cfad2bf [RPI] Refactor Image Generation Script for Clarity and Modularization
- Reorganized variable definitions for clarity and consistency.
- Encapsulated SWU file creation logic into 'create_swu_file' function for better modularity and readability.
- Implemented 'cleanup' function to handle temporary file cleanup, enhancing script robustness.
- Utilized bash array for 'SWUPDATE_FILES' to improve handling of multiple file entries.
- Simplified error handling with 'set -e' and streamlined script exit using 'trap' for cleanup operations.
- Cleaned up directory changing commands by redirecting 'pushd' and 'popd' output to '/dev/null'.
2024-01-12 14:50:44 +02:00
Bohdan Buinich 736bfebe31 [RPI] Refactor Raspberry Pi Setup Script for Improved Structure and Readability
- Encapsulated functionality into functions for better script organization.
- Introduced 'write_os_release' and 'write_machine_info' functions for creating os-release and machine-info files.
- Streamlined Raspberry Pi specific file handling with 'handle_raspberry_pi' function.
- Consolidated script execution within a 'main' function for clearer flow and execution order.
- Improved readability with consistent formatting and added inline comments for clarity.
- Enhanced robustness with comprehensive error checking and streamlined command execution.
- RPI5 not supported yet.
2024-01-12 14:50:44 +02:00
Bohdan Buinich 3851ed9fab [ALL] Enhance Docker Image Fetching Script for Clarity and Robustness
- Streamlined variable declarations for improved readability.
- Added error checking to ensure successful retrieval of the image digest.
- Encapsulated core functionality into 'fetch_and_copy_image' function for better script structure.
- Introduced a 'lock_file' variable to clarify the file locking mechanism.
- Combined 'set' options into a single line and added 'pipefail' for robust error handling.
- Refined comments and structured the script into clearly defined sections.
2024-01-12 14:50:44 +02:00
Peter Steenbergen 3c29193f3f
Merge pull request #206 from BohdanBuinich/update-rpi-eeprom-script
[RPI] rpi-eeprom: Future support for RPI5
2024-01-12 12:23:10 +01:00
j1nx fb20b65f17 [All] Temporarily pulling the news and youtube skills from NeonJarbas for testing 2024-01-11 17:52:04 +00:00
j1nx a77f6542e9 [All] Switch to hardcoded ziggyai STT/TTS servers during this testing phase 2024-01-11 17:48:23 +00:00
j1nx ec25ee5feb [All] Enable all containers at boot the drop-in way
TODO: Install this files within the ovos-containers buildroot package
together with the images it pulls in.
2024-01-11 17:46:15 +00:00
j1nx 3583b72ed8 [All] Enable the healthcheck as sdnotify to report to back and pet the watchdog of systemd 2024-01-11 16:51:59 +00:00