aboutsummaryrefslogtreecommitdiff
path: root/.builds/debian-aarch64.yml
blob: 4de7e85c2d315db0e5ca433ed523891fddc2081d (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
image: debian/stable
packages:
- gcc-aarch64-linux-gnu
- libc-dev-arm64-cross
- qemu-user
- qemu-user-binfmt
sources:
- https://git.sr.ht/~mcf/cproc
- git://c9x.me/qbe.git
tasks:
- build: |
    PATH=$HOME/qbe:$PATH
    cd qbe
    cat >config.h <<EOF
    #define Defasm Gaself
    #define Deftgt T_arm64
    EOF
    make
    cd ../cproc
    crtbegin=$(aarch64-linux-gnu-gcc -print-file-name=crtbegin.o)
    ./configure \
      --target=aarch64-linux-gnu \
      --with-ldso=/usr/aarch64-linux-gnu/lib/ld-linux-aarch64.so.1 \
      --with-gcc-libdir="${crtbegin%/*}"
    make all check
    make bootstrap LDFLAGS='-Wl,-rpath,/usr/aarch64-linux-gnu/lib'
    aarch64-linux-gnu-readelf -h stage2/cproc stage2/cproc-qbe
triggers:
- action: email
  condition: failure
  to: "<~mcf/cproc-builds@lists.sr.ht>"