aboutsummaryrefslogtreecommitdiff
path: root/lava-debian-jessie-arm64.yaml
blob: 36ac5cca15dab45fed4307c8304fe79e62a9fb60 (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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# Debian arm64 NFS, initramfs, modules and dtbs

- job:
    name: lava-debian-jessie-arm64
    project-type: freestyle
    defaults: global
    logrotate:
        daysToKeep: 24
        numToKeep: 12
    properties:
        - authorization:
            anonymous:
                - job-read
                - job-extended-read
            platform-leads:
                - job-build
                - job-cancel
    disabled: true
    node: docker-jessie-amd64
    display-name: 'DELETE ME'
    wrappers:
        - timestamps
    builders:
        - linaro-publish-token
        - shell: |
            #!/bin/bash

            mkdir out
            cd out/
            sudo apt -q update
            sudo apt -q -y install qemu-user-static debootstrap
            wget https://git.linaro.org/lava-team/refactoring.git/blob_plain/HEAD:/scripts/build-foreign-nfs.sh
            chmod 744 ./build-foreign-nfs.sh
            sudo ./build-foreign-nfs.sh -a arm64 -b /usr/bin/qemu-aarch64-static -d jessie
            cd ..
            cat > ${WORKSPACE}/out/debian-arm64-readme.html <<EOF
            <html><body><pre>
            lava-debian-jessie-arm64 build instructions
            ===========================================

            This initramfs is built using update-initramfs inside a
            minimal Debian Jessie debootstrap chroot.
            The contents of the chroot is then packaged up as an NFS
            with an empty root password.
                auto_login:
                    login_prompt: 'login:'
                    username: root

            apt is included in the NFS, as are bash, grep, iproute2, mawk and sed.
            The NFS uses the default init in Jessie: systemd.

            The Debian ARM64 kernel is a modular build and the modules
            need to be available in the initramfs for the kernel to be
            able to mount the NFS. The initramfs does not have DNS
            support.

            https://ci.linaro.org/view/lava-ci/job/lava-debian-jessie-arm64/

            The script used by jenkins is available here:
            https://git.linaro.org/lava-team/refactoring.git/blob/HEAD:/scripts/armmp-nfs.sh

            https://git.linaro.org/ci/job/configs.git/blob/HEAD:/lava-debian-jessie-arm64.yaml
            The base system is a Debian Jessie VM.

            The NFS rootfs uses a prompt of "root@jessie:"

            </pre></body></html>
            EOF

            # Publish
            test -d ${HOME}/bin || mkdir ${HOME}/bin
            wget -q 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 --api_version 3 out components/lava/standard/debian/jessie/arm64/${BUILD_NUMBER}
    publishers:
        - email:
            recipients: 'neil.williams@linaro.org fathi.boudra@linaro.org'