Commit 96172929 authored by Dorota Czaplejewicz's avatar Dorota Czaplejewicz

Merge branch 'gitlab-ci-deb' into 'imx8-4.18-wip'

Built a deb when running gitlab-ci

See merge request !17
parents 4eba9428 d3107625
variables:
DEPS: >
build-essential gcc-aarch64-linux-gnu make device-tree-compiler
bison flex bc libssl-dev
bison flex bc libssl-dev kmod cpio
CROSS_BUILD: "ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu-"
before_script:
- export DEBIAN_FRONTEND=noninteractive
......@@ -12,14 +13,13 @@ before_script:
tags:
- librem5
build:aarch64:
build:aarch64:Image:
<<: *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 ${CROSS_BUILD} librem5-evk_defconfig
- make -j 4 ${CROSS_BUILD} Image dtbs modules
- make -j 4 ${CROSS_BUILD} INSTALL_MOD_PATH=modules/ modules_install
artifacts:
......@@ -28,3 +28,16 @@ build:aarch64:
- arch/arm64/boot/dts/freescale/librem5-evk.dtb
- modules/
expire_in: 1 week
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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment