Download poky

This commit is contained in:
geens 2025-07-01 14:56:12 +02:00
parent ea5b9e6a45
commit 5141bbda7b
4 changed files with 32 additions and 0 deletions

3
.gitmodules vendored
View File

@ -1,3 +1,6 @@
[submodule "firmware/stm32f0xx-hal"]
path = firmware/stm32f0xx-hal
url = https://github.com/stm32-rs/stm32f0xx-hal.git
[submodule "image/yocto/poky"]
path = image/yocto/poky
url = https://git.yoctoproject.org/poky

View File

@ -3,9 +3,12 @@ services:
build: .
container_name: fcb-looper-yocto
working_dir: /workspace
user: "${HOST_UID:-1000}:${HOST_GID:-1000}"
volumes:
# Mount workspace for persistent development
- ./workspace:/workspace
# Mount Poky submodule for Yocto source
- ./yocto/poky:/yocto/poky
# Mount downloads cache to avoid re-downloading sources
- ./yocto-downloads:/workspace/downloads
# Mount sstate cache for faster builds
@ -14,6 +17,8 @@ services:
- ./output:/workspace/output
environment:
- TERM=xterm-256color
- UID=${HOST_UID:-1000}
- GID=${HOST_GID:-1000}
stdin_open: true
tty: true
command: /bin/bash

23
image/run Executable file
View File

@ -0,0 +1,23 @@
#!/bin/bash
# FCB Looper Docker Launcher Script
# Usage: ./run <service> [additional args...]
set -e
# Get current user's UID and GID
export HOST_UID=$(id -u)
export HOST_GID=$(id -g)
# Check if service name is provided
if [ $# -eq 0 ]; then
echo "Usage: $0 <service> [additional args...]"
echo "Available services:"
echo " yocto - Interactive Yocto development environment"
exit 1
fi
SERVICE=$1
shift
docker compose run --remove-orphans --rm "$SERVICE" "$@"

1
image/yocto/poky Submodule

@ -0,0 +1 @@
Subproject commit 243d54fd466f5f852cc0fdcce57997918ce35f32