-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Lad Prabhakar <[email protected]>
- Loading branch information
1 parent
5d6b6a1
commit 1bc4110
Showing
1 changed file
with
65 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
image: gitlab.renesas.solutions:5050/spl2/continuous-integration/dockerfiles:linux__ubuntu-20.04-latest | ||
|
||
stages: | ||
- dtchecks | ||
|
||
.build-dtchecks: | ||
stage: dtchecks | ||
variables: | ||
GIT_STRATEGY: none | ||
IMAGES_DIR: tmp-glibc/deploy/images/${MACHINE} | ||
OUTPUT_DIR: ${CI_PROJECT_DIR}/output | ||
BUILD_DIR: ${CI_PROJECT_DIR}/build | ||
CI_DT_SCHEMA: 784179b | ||
baselinelog: baselinelog.log | ||
before_script: | ||
- printenv | ||
- rm -rf ${OUTPUT_DIR} ${BUILD_DIR} | ||
- mkdir -p ${OUTPUT_DIR} ${BUILD_DIR} | ||
- sudo apt-get -y update | ||
- sudo apt install -y python3-ruamel.yaml libssl-dev sparse libncurses-dev gawk flex bison openssl libssl-dev dkms libelf-dev libudev-dev libpci-dev libiberty-dev autoconf llvm bc sqlite3 libsqlite3-dev libdbd-sqlite3-perl libgmp-dev libmpc-dev swig python3 | ||
- pip3 install rfc3987 | ||
- wget https://gitlab.renesas.solutions/prabhakarlad/riscv-toolchain/-/raw/master/rv64-2023.03.14.tar.gz?inline=false | ||
- mkdir ~/rv64-cross-compile && tar -xvf rv64-2023.03.14.tar.gz?inline=false -C ~/rv64-cross-compile | ||
- wget https://gitlab.renesas.solutions/prabhakarlad/riscv-toolchain/-/raw/master/rv32-2023.03.14.tar.gz?inline=false | ||
- mkdir ~/rv32-cross-compile && tar -xvf rv32-2023.03.14.tar.gz?inline=false -C ~/rv32-cross-compile | ||
script: | ||
- cd ${BUILD_DIR} | ||
- git clone https://repo.or.cz/smatch.git | ||
- cd smatch && make -j$(nproc) && cd - | ||
- git clone https://github.com/devicetree-org/dt-schema.git | ||
- cd dt-schema && git checkout ${CI_DT_SCHEMA} && cd - | ||
- cd dt-schema && pip3 install -e . && cd - | ||
- cd dt-schema/tools && sudo cp * /usr/sbin && cd - | ||
- dt-doc-validate --version | ||
- cd /opt/linux && git fetch origin ${CI_COMMIT_BRANCH} && git checkout -b lcl${CI_COMMIT_BRANCH} origin/${CI_COMMIT_BRANCH} | ||
- make CROSS_COMPILE=~/rv64-cross-compile/bin/riscv64-unknown-linux-gnu- ARCH=riscv rzf_defconfig | ||
- make CROSS_COMPILE=~/rv64-cross-compile/bin/riscv64-unknown-linux-gnu- ARCH=riscv modules Image.gz dtbs -j$(nproc) W=1 | ||
- cp arch/riscv/boot/dts/renesas/r9a07g043f01-smarc.dtb arch/riscv/boot/Image.gz ${OUTPUT_DIR} | ||
- cp drivers/dma/dmatest.ko ${OUTPUT_DIR} | ||
- make CROSS_COMPILE=~/rv64-cross-compile/bin/riscv64-unknown-linux-gnu- ARCH=riscv defconfig | ||
- make CROSS_COMPILE=~/rv64-cross-compile/bin/riscv64-unknown-linux-gnu- ARCH=riscv modules Image.gz dtbs -j$(nproc) W=1 | ||
- make CROSS_COMPILE=~/rv32-cross-compile/bin/riscv32-unknown-linux-gnu- ARCH=riscv rv32_defconfig | ||
- make CROSS_COMPILE=~/rv32-cross-compile/bin/riscv32-unknown-linux-gnu- ARCH=riscv modules Image.gz dtbs -j$(nproc) W=1 | ||
- make -s ARCH=arm allmodconfig | ||
- make -s ARCH=arm refcheckdocs 2>&1 | tee doc-links-${baselinelog} | ||
- make -O -j$(nproc) ARCH=arm -s DT_CHECKER_FLAGS=-m dt_binding_check 2>&1 | tee dt_binding_check.log | ||
- make -O -j$(nproc) ARCH=arm -s DT_SCHEMA_FILES=Documentation/devicetree/bindings/cache/andestech,ax45mp-cache.yaml dtbs_check 2>&1 | tee -a arm-dtbs.log | ||
- make -s ARCH=arm64 allmodconfig | ||
- make -O -j$(nproc) -s ARCH=arm64 DT_SCHEMA_FILES=Documentation/devicetree/bindings/cache/andestech,ax45mp-cache.yaml dtbs_check 2>&1 | tee -a arm64-dtbs.log | ||
- make -s ARCH=riscv allmodconfig | ||
- make -O -j$(nproc) -s ARCH=riscv DT_SCHEMA_FILES=Documentation/devicetree/bindings/cache/andestech,ax45mp-cache.yaml dtbs_check 2>&1 | tee -a riscv-dtbs.log | ||
- cp dt_binding_check.log arm-dtbs.log arm64-dtbs.log riscv-dtbs.log ${OUTPUT_DIR} | ||
- cp doc-links-${baselinelog} ${OUTPUT_DIR} | ||
- make CROSS_COMPILE=~/rv64-cross-compile/bin/riscv64-unknown-linux-gnu- ARCH=riscv allmodconfig | ||
- make CROSS_COMPILE=~/rv64-cross-compile/bin/riscv64-unknown-linux-gnu- ARCH=riscv modules Image.gz dtbs -j$(nproc) | ||
artifacts: | ||
name: "${CI_JOB_NAME}-${CI_JOB_ID}" | ||
expire_in: 1 week | ||
paths: | ||
- ${OUTPUT_DIR} | ||
|
||
dt_checker: | ||
extends: .build-dtchecks | ||
variables: | ||
CONFIG: defconfig |