From 17c33cb97d5bdfdf9f09a3960506d54f832a226f Mon Sep 17 00:00:00 2001
From: Anupam Basak <anupam.basak27@gmail.com>
Date: Tue, 14 Feb 2023 15:55:05 +0530
Subject: [PATCH] Try building zynthbox image on bullseye

---
 .gitlab-ci.yml | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 61e4ceb..3ec3cdb 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -12,8 +12,8 @@ build-zynthbox-image-armhf:
   script:
     - set -x
     
-    - image_name="zynthbox_rpi4_buster_$(date "+%F_%H%M").img"
-    - image_name_miko="zynthbox_miko_buster_$(date "+%F_%H%M").img"
+    - image_name="zynthbox_rpi4_bullseye_$(date "+%F_%H%M").img"
+    - image_name_miko="zynthbox_miko_bullseye_$(date "+%F_%H%M").img"
     - log_file_name="$image_name.build.log"
     
     # Ensuring key security
@@ -28,7 +28,7 @@ build-zynthbox-image-armhf:
     # Clone repositories required to generate image
     - echo "# Clone repositories required to generate image"
     - git clone https://github.com/zynthbox/CustomPiOS.git
-    - git clone https://github.com/zynthbox/ZynthianOS.git
+    - git clone https://github.com/zynthbox/ZynthianOS.git -b dev-bullseye
 
     # Setup Zynthbox Repo sourceline
     - echo "# Setup Zynthbox Repo sourceline"
@@ -38,7 +38,8 @@ build-zynthbox-image-armhf:
     # Download prebuilt realtime kernel
     - echo "# Download prebuilt realtime kernel"
     # - wget "http://unofficialpi.org/Distros/RealtimePi/2021-06-15_2021-05-07-realtimepi-buster-armhf-lite-0.5.0.zip" -P ./ZynthianOS/src/image
-    - wget "https://github.com/zynthbox/dependencies/releases/download/v0.5/2023-01-11_2020-02-13-realtimepi-buster-armhf-lite-kernel_5.15.65-llat-v7l+_0.6.0.zip" -P ./ZynthianOS/src/image
+    # - wget "https://github.com/zynthbox/dependencies/releases/download/v0.5/2023-01-11_2020-02-13-realtimepi-buster-armhf-lite-kernel_5.15.65-llat-v7l+_0.6.0.zip" -P ./ZynthianOS/src/image
+    - wget "http://unofficialpi.org/Distros/RealtimePi/nightly/2022-03-07_2022-01-28-realtimepi-bullseye-armhf-lite-0.6.0.zip" -P ./ZynthianOS/src/image
     
     # Build rpi4 image
     - echo "# Build rpi4 image"
-- 
GitLab