.gitlab-ci.yml 1.09 KB
Newer Older
Guido Gunther's avatar
Guido Gunther 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 Gunther's avatar
Guido Gunther 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 Gunther's avatar
Guido Gunther committed
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
  <<: *tags
  stage: build
  variables:
    CROSS_BUILD: "ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu-"
  script:
    - cp arch/arm64/configs/librem5-evk_defconfig .config
    - make      ${CROSS_BUILD} olddefconfig
    - 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
32 33 34 35 36 37 38 39 40 41 42 43 44

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