Skip to content

Commit

Permalink
fix: image name
Browse files Browse the repository at this point in the history
Fixes the image name.
Also split out into different pkgs to have better caching and folder
structure.

Signed-off-by: Noel Georgi <git@frezbo.dev>
  • Loading branch information
frezbo committed Mar 14, 2024
1 parent 9aceeb5 commit e48beb5
Show file tree
Hide file tree
Showing 6 changed files with 67 additions and 8 deletions.
48 changes: 48 additions & 0 deletions .conform.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
#
# Generated on 2024-03-14T17:09:30Z by kres latest.

policies:
- type: commit
spec:
dco: true
gpg:
required: true
identity:
gitHubOrganization: siderolabs
spellcheck:
locale: US
maximumOfOneCommit: true
header:
length: 89
imperative: true
case: lower
invalidLastCharacters: .
body:
required: true
conventional:
types:
- chore
- docs
- perf
- refactor
- style
- test
- release
scopes:
- .*
- type: license
spec:
root: .
skipPaths:
- .git/
- testdata/
includeSuffixes:
- .go
excludeSuffixes:
- .pb.go
- .pb.gw.go
header: |
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
2 changes: 1 addition & 1 deletion .kres.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
kind: pkgfile.Build
spec:
targets:
- rpi_generic
- sbc-raspberrypi
extraBuildArgs:
- PKGS_PREFIX
- PKGS
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
#
# Generated on 2024-03-12T16:46:47Z by kres latest.
# Generated on 2024-03-14T16:55:00Z by kres latest.

# common variables

Expand Down Expand Up @@ -54,7 +54,7 @@ PKGS ?= v1.7.0-alpha.0-33-g3aacf03

# targets defines all the available targets

TARGETS = rpi_generic
TARGETS = sbc-raspberrypi

# help menu

Expand Down
11 changes: 11 additions & 0 deletions installers/pkg.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: sbc-raspberrypi
variant: scratch
dependencies:
- stage: rpi_generic
- stage: raspberrypi-firmware
- stage: u-boot
platform: linux/arm64
- stage: profiles
finalize:
- from: /rootfs
to: /
6 changes: 1 addition & 5 deletions installers/rpi_generic/pkg.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@ variant: scratch
shell: /toolchain/bin/bash
dependencies:
- stage: base
- stage: raspberrypi-firmware
- stage: u-boot
platform: linux/arm64
- stage: profiles
steps:
- env:
GOPATH: /go
Expand All @@ -26,4 +22,4 @@ steps:
cp -p /pkg/src/rpi_generic /rootfs/installers/rpi_generic
finalize:
- from: /rootfs
to: /
to: /rootfs
4 changes: 4 additions & 0 deletions installers/rpi_generic/src/main.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.

package main

import (
Expand Down

0 comments on commit e48beb5

Please sign in to comment.