.gitlab-ci.yml 1.04 KB
Newer Older
Guido Günther's avatar
Guido Günther committed
1 2 3
variables:
  DEPS: >
    build-essential gcc-aarch64-linux-gnu make device-tree-compiler
4 5
    bison flex bc libssl-dev kmod cpio
  CROSS_BUILD: "ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu-"
Guido Günther's avatar
Guido Günther committed
6 7 8 9 10 11 12 13 14 15

before_script:
  - export DEBIAN_FRONTEND=noninteractive
  - apt-get -y update
  - apt-get -y install $DEPS

.tags: &tags
  tags:
    - librem5

16
build:aarch64:Image:
Guido Günther's avatar
Guido Günther committed
17 18 19 20 21
  <<: *tags
  stage: build
  variables:
    CROSS_BUILD: "ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu-"
  script:
22
    - make      ${CROSS_BUILD} librem5-evk_defconfig
Guido Günther's avatar
Guido Günther committed
23 24 25 26 27 28 29 30
    - make -j 4 ${CROSS_BUILD} Image dtbs modules
    - make -j 4 ${CROSS_BUILD} INSTALL_MOD_PATH=modules/ modules_install
  artifacts:
    paths:
      - arch/arm64/boot/Image
      - arch/arm64/boot/dts/freescale/librem5-evk.dtb
      - modules/
    expire_in: 1 week
31 32 33 34 35 36 37 38 39 40 41 42 43

build:aarch64:deb:
  <<: *tags
  stage: build
  script:
    - make      ${CROSS_BUILD} librem5-evk_defconfig
    - make -j 4 ${CROSS_BUILD} bindeb-pkg
    - rm ../linux-image-*-dbg*_arm64.deb
    - mv ../*.deb .
  artifacts:
    paths:
      - "*.deb"
    expire_in: 1 week