Skip to content
Snippets Groups Projects
Verified Commit 275389ea authored by minute's avatar minute
Browse files

add build script and gitignore

parent 2adb8b9b
No related branches found
No related tags found
No related merge requests found
Pipeline #1256 failed
*.bin
*.o
*.cmd
*.su
*.lex.c
*.tab.c
*.tab.h
*.tmp
*.dtb
System.map
.binman_stamp
.config
.config.old
lib/asm-offsets.s
u-boot
u-boot-elf.lds
u-boot.cfg
u-boot.cfg.configs
u-boot.elf
u-boot.lds
u-boot.map
u-boot.srec
u-boot.sym
include/config/
include/generated/
atf/
arch/arm/lib/asm-offsets.s
arch/arm/lib/lib.a
image: debian:bookworm
build:
script: |
set -exu
apt-get update
apt-get --yes install --no-install-recommends gcc-aarch64-linux-gnu build-essential bison flex device-tree-compiler git ca-certificates libssl-dev
./build.sh
artifacts:
paths:
- flash.bin
build.sh 0 → 100755
#!/bin/bash
set -exu
export CROSS_COMPILE=aarch64-linux-gnu-
export ARCH=arm64
export LDFLAGS=--no-warn-rwx-segments
# build Reset Configuration Word
cd rcw/ls1028a-mnt-reform2
make
cd ../..
# build u-boot
# TODO: customize dts/config
# TODO: what about the gpio settings at boot?
make ls1028ardb_tfa_defconfig
make -j$(nproc)
# build ARM Trusted Firmware
git clone https://source.mnt.re/reform/reform-ls1028a-atf.git atf
export DDR_BIST=no
export DDR_DEBUG=yes
export DDR_PHY_DEBUG=yes
cd atf
make -j$(nproc) PLAT=ls1028ardb fip pbl BOOT_MODE=sd RCW=../rcw/ls1028a-mnt-reform2/R_PSPH_0xb8be/rcw_1500_sdboot.bin BL33=../u-boot-dtb.bin
cd ..
cp atf/build/ls1028ardb/release/bl2_sd.pbl ./flash.bin
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment