Skip to content
Snippets Groups Projects
Commit ac86b17a authored by Frederic Danis's avatar Frederic Danis
Browse files

Create sample recipe to build uboot image using ostree


APERTIS-5675

This uses the new Recipe action to merged previous recipes in one.

Signed-off-by: default avatarFrédéric Danis <frederic.danis@collabora.com>
parent 9cb5aa47
No related branches found
No related tags found
No related merge requests found
This commit is part of merge request !91. Comments created here will be created in the context of that merge request.
......@@ -9,12 +9,15 @@
{{ $image := or .image (printf "apertis-ostree-%s-%s-%s" $suite $type $architecture) }}
{{ $ostree := or .ostree "repo" }}
{{ $message := or .message "Update" }}
{{- $included_recipe := or .included_recipe "false"}}
architecture: {{ $architecture }}
actions:
{{- if ne $included_recipe "true" }}
- action: unpack
file: {{ $ospack }}.tar.gz
{{- end }}
- action: overlay
description: "Install ostree feature"
......
{{- $architecture := "armhf" }}
{{- $type := "minimal" }}
{{- $mirror := "https://repositories.apertis.org/apertis/" }}
{{- $suite := "18.12" }}
{{- $timestamp := "00000000.0" }}
{{- $image := (printf "apertis-sample-%s-%s-%s_%s" $suite $type $architecture $timestamp) }}
{{ $board := "uboot" }}
{{ $osname := "apertis" }}
{{ $branch := (printf "%s/%s/%s-%s/%s" $osname $suite $architecture $board $type) }}
{{ $ostree := "repo" }}
{{ $repourl := (printf "${ARTIFACTDIR}/%s" $ostree) }}
architecture: {{ $architecture }}
actions:
- action: run
description: Create local OSTree repository
chroot: false
command: ostree init --mode archive --repo=${ARTIFACTDIR}/{{ $ostree }}
- action: recipe
description: Create ospack for {{ $suite }} {{ $type }} {{ $architecture }}
recipe: apertis-ospack-{{ $type }}.yaml
variables:
type: {{ $type }}
mirror: {{ $mirror }}
suite: {{ $suite }}
timestamp: {{ $timestamp }}
- action: recipe
description: OSTree commit for {{ $suite }} {{ $type }} {{ $architecture }}
recipe: apertis-ostree-commit.yaml
variables:
type: {{ $type }}
suite: {{ $suite }}
timestamp: {{ $timestamp }}
board: {{ $board }}
branch: {{ $branch }}
ostree: {{ $ostree }}
- action: recipe
description: Create image {{ $image }} for {{ $suite }} {{ $type }} {{ $architecture }}
recipe: apertis-ostree-image-uboot.yaml
variables:
type: {{ $type }}
suite: {{ $suite }}
image: {{ $image }}
board: {{ $board }}
repourl: {{ $repourl }}
branch: {{ $branch }}
ostree: {{ $ostree }}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment