Skip to content

Private Repository Builds

Alex J Lennon edited this page Oct 7, 2025 · 2 revisions

Private Repository Builds - Quick Reference

This document provides a quick reference for building with private repositories in the meta-dynamicdevices layer.

Quick Setup

# 1. Ensure SSH agent is running
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_rsa

# 2. Test GitHub access
ssh -T [email protected]

# 3. Build (SSH keys forwarded automatically)
KAS_MACHINE=imx93-jaguar-eink ./scripts/kas-build-base.sh

Affected Recipes

Recipe Repository Machine Feature
eink-spectra6 DynamicDevices/eink-spectra6 el133uf1
spi-lib DynamicDevices/spi-lib Various

Troubleshooting

Common Error: "Host key verification failed"

# This is handled automatically by kas-container --ssh-agent
# No action needed if SSH agent is properly configured

Common Error: "Permission denied (publickey)"

# Check SSH agent
echo $SSH_AUTH_SOCK
ssh-add -l

# Test GitHub access
ssh -T [email protected]

Debug in Container

# Enter container shell
./scripts/kas-shell-base.sh

# Test SSH in container
ssh -T [email protected]

Build Scripts

All build scripts automatically handle SSH forwarding:

  • ./scripts/kas-build-base.sh - Basic build
  • ./scripts/kas-shell-base.sh - Interactive shell
  • ./scripts/kas-build-base-enhanced.sh - Advanced build with options

Technical Details

The scripts use kas-container's built-in SSH support:

  • --ssh-agent - Forwards SSH agent
  • --ssh-dir ~/.ssh - Mounts SSH directory

See Also

Clone this wiki locally