Skip to content

Commit 2356095

Browse files
authored
Merge pull request #23 from mobayraktar/main
Change BSP DEB package versioning
2 parents 061e7b7 + 8a3e027 commit 2356095

File tree

10 files changed

+61
-12
lines changed

10 files changed

+61
-12
lines changed

.github/workflows/yocto-builder/entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ cat "$BUILD_DIR/conf/local.conf"
3939

4040
env
4141

42-
bitbake gemstone-boot-files
42+
bitbake gemstone-image-rd
4343
IMG_DEPLOY_DIR=$(bitbake-getvar --value -r "$IMAGE" DEPLOY_DIR_IMAGE)
4444
DEB_DEPLOY_DIR=$(bitbake-getvar --value -r "$IMAGE" DEPLOY_DIR_DEB)
4545

distro/distro.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,13 @@ actions:
260260
script: scripts/all/install-astral-uv.sh
261261

262262
{{ if eq $machine "beagley-ai" }}
263+
264+
{{ if eq $ci "false" }}
265+
- action: run
266+
chroot: true
267+
script: scripts/beagley-ai/install-bootfiles.sh {{ $workdir }} $ROOTDIR
268+
{{ end }}
269+
263270
- action: run
264271
chroot: true
265272
script: scripts/beagley-ai/setup-bootfiles.sh
@@ -270,6 +277,13 @@ actions:
270277
{{ end }}
271278

272279
{{ if eq $machine "t3-gem-o1" }}
280+
281+
{{ if eq $ci "false" }}
282+
- action: run
283+
chroot: true
284+
script: scripts/t3-gem-o1/install-bootfiles.sh {{ $workdir }} $ROOTDIR
285+
{{ end }}
286+
273287
- action: run
274288
chroot: true
275289
script: scripts/t3-gem-o1/setup-bootfiles.sh

distro/overlays/minimal/all/usr/local/bin/gem-camera-setup

100644100755
File mode changed.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/bash
2+
3+
set -euo pipefail
4+
5+
WORKDIR="$1"
6+
ROOTDIR="$2"
7+
8+
DIR_IMGS="$WORKDIR/build/beagley-ai/deploy-ti/images/beagley-ai"
9+
10+
mkdir -p "$ROOTDIR/boot/overlays"
11+
cp "$DIR_IMGS/tiboot3.bin" "$ROOTDIR/boot"
12+
cp "$DIR_IMGS/k3-am67a-beagley-ai.dtb" "$ROOTDIR/boot/"
13+
cp "$DIR_IMGS/gemstone-image-rd-beagley-ai.cpio.gz" "$ROOTDIR/boot/"
14+
find "$DIR_IMGS" -name '*.dtbo' -type f -exec cp {} "$ROOTDIR/boot/overlays" \;

distro/scripts/beagley-ai/install-local-apt.sh

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ fi
1818

1919
apt-get update -y
2020
apt-get install -y \
21-
gemstone-boot-files \
22-
kernel-image-image \
2321
kernel-module-at24 \
2422
kernel-module-bluetooth \
2523
kernel-module-br-netfilter \
@@ -100,5 +98,11 @@ apt-get install -y \
10098
kernel-module-xt-conntrack \
10199
kernel-module-xt-masquerade \
102100
kernel-module-xt-nat \
103-
ti-img-rogue-driver \
104-
u-boot
101+
ti-img-rogue-driver
102+
103+
if [ "$CI" = "true" ]; then
104+
apt-get install -y \
105+
gem-beagley-ai-bsp \
106+
kernel-image-image \
107+
u-boot
108+
fi

distro/scripts/custom/install-vscode.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ ext=(
2525
"ms-python.vscode-pylance"
2626
"ms-vscode.hexeditor"
2727
"spywhere.guides"
28-
"task.vscode-task"
2928
)
3029

3130
chown -R gemstone:gemstone /home/gemstone
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/bash
2+
3+
set -euo pipefail
4+
5+
WORKDIR="$1"
6+
ROOTDIR="$2"
7+
8+
DIR_IMGS="$WORKDIR/build/t3-gem-o1/deploy-ti/images/t3-gem-o1"
9+
10+
mkdir -p "$ROOTDIR/boot/overlays"
11+
cp "$DIR_IMGS/tiboot3.bin" "$ROOTDIR/boot"
12+
cp "$DIR_IMGS/k3-am67a-t3-gem-o1.dtb" "$ROOTDIR/boot/"
13+
cp "$DIR_IMGS/gemstone-image-rd-t3-gem-o1.cpio.gz" "$ROOTDIR/boot/"
14+
find "$DIR_IMGS" -name '*.dtbo' -type f -exec cp {} "$ROOTDIR/boot/overlays" \;

distro/scripts/t3-gem-o1/install-local-apt.sh

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ fi
1818

1919
apt-get update -y
2020
apt-get install -y \
21-
gemstone-boot-files \
22-
kernel-image-image \
2321
kernel-module-at24 \
2422
kernel-module-bluetooth \
2523
kernel-module-br-netfilter \
@@ -108,5 +106,11 @@ apt-get install -y \
108106
kernel-module-xt-conntrack \
109107
kernel-module-xt-masquerade \
110108
kernel-module-xt-nat \
111-
ti-img-rogue-driver \
112-
u-boot
109+
ti-img-rogue-driver
110+
111+
if [ "$CI" = "true" ]; then
112+
apt-get install -y \
113+
gem-t3-gem-o1-bsp \
114+
kernel-image-image \
115+
u-boot
116+
fi

repos.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ repositories:
3333
yocto/meta-gemstone:
3434
type: git
3535
url: https://github.com/t3gemstone/meta-gemstone.git
36-
version: 001b4e1c914e2bf8ef6ccdb18ba1acb7e8e531eb
36+
version: 93976e7f8b7cafd50f2354895f1723bb6896bdd8
3737

3838
src/ti-img-rogue-umlibs:
3939
type: git

yocto/Taskfile.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
version: '3'
55

66
vars:
7-
TARGET: gemstone-boot-files
7+
TARGET: gemstone-image-rd
88
TEMPLATECONF: "{{ .WORKDIR }}/yocto/meta-gemstone/conf/templates/{{ .MACHINE }}/"
99
OE_INIT_CMD: TEMPLATECONF={{ .TEMPLATECONF }} source {{ .WORKDIR }}/yocto/poky/oe-init-build-env {{ .YOCTO_BUILD_DIR }} && cd {{ .WORKDIR }}
1010
DEPLOY_DIR: "{{ .WORKDIR }}/build/tmp-musl/deploy/images/{{ .MACHINE }}"

0 commit comments

Comments
 (0)