aboutsummaryrefslogtreecommitdiff
path: root/96boards-grub-efi-arm64.yaml
blob: 05e25cb11f44827ad155c18eb7fe03c85ce8e423 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
- job:
    name: 96boards-grub-efi-arm64
    project-type: freestyle
    defaults: global
    logrotate:
        daysToKeep: 30
        numToKeep: 30
    properties:
        - authorization:
            anonymous:
                - job-read
                - job-extended-read
                - job-workspace
    disabled: false
    node: docker-jessie-arm64
    display-name: '96boards - GRUB EFI'
    wrappers:
        - timestamps
    builders:
        - linaro-publish-token:
            host: builds.96boards.org
        - shell: |
            #!/bin/bash

            set -ex

            trap cleanup_exit INT TERM EXIT

            cleanup_exit()
            {
              cd ${WORKSPACE}
              rm -rf out
            }

            sudo apt-get update
            sudo apt-get install -y --no-install-recommends grub-efi-arm64-bin python-requests

            mkdir out

            cat << EOF > out/grub.configfile
            search.fs_label boot root
            set prefix=(\$root)'/EFI/BOOT'
            configfile \$prefix/grub.cfg
            EOF

            grub-mkimage \
              --verbose \
              --config=out/grub.configfile \
              --output=out/grubaa64.efi \
              --format=arm64-efi \
              boot chain configfile efinet ext2 fat gettext help linux loadenv lsefi normal part_gpt part_msdos read search search_fs_file search_fs_uuid search_label terminal terminfo tftp time

            # Publish
            test -d ${HOME}/bin || mkdir ${HOME}/bin
            wget https://git.linaro.org/ci/publishing-api.git/blob_plain/HEAD:/linaro-cp.py -O ${HOME}/bin/linaro-cp.py
            time python ${HOME}/bin/linaro-cp.py \
              --server ${PUBLISH_SERVER} \
              --link-latest \
              out snapshots/hikey/linaro/grub/${BUILD_NUMBER}
    publishers:
        - email:
            recipients: 'fathi.boudra@linaro.org'