u-boot: Bump submodule #7
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
name: Firmware build action | |
on: | |
push: | |
branches: [main, master] | |
pull_request: | |
types: [opened, reopened, synchronize] | |
jobs: | |
uroot_build: | |
runs-on: ubuntu-latest | |
container: | |
image: ghcr.io/9elements/firmware-action/linux_6.1.45:v0.3.2 | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: 'recursive' | |
token: ${{ secrets.MY_REPO_PAT || github.token }} | |
- name: Setup Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: stable | |
- name: Build u-root | |
shell: bash | |
working-directory: ./u-root | |
env: | |
GOFLAGS: "-buildvcs=false" | |
run: | | |
go build . | |
GOARCH=arm64 ./u-root -defaultsh gosh -o initramfs.cpio boot coreboot-app ./cmds/core/* ./cmds/boot/* | |
- name: Archive artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: uroot-binary | |
path: | | |
./u-root/initramfs.cpio | |
linux_build: | |
runs-on: ubuntu-latest | |
container: | |
image: ghcr.io/9elements/firmware-action/linux_6.1.45:v0.3.2 | |
needs: uroot_build | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: 'recursive' | |
token: ${{ secrets.MY_REPO_PAT || github.token }} | |
- uses: actions/download-artifact@v3 | |
with: | |
name: uroot-binary | |
path: ./u-root/ | |
- name: Build kernel | |
shell: bash | |
working-directory: ./linux | |
env: | |
ARCH: arm64 | |
CROSS_COMPILE: aarch64-linux-gnu- | |
run: | | |
make bcm2711_defconfig | |
./scripts/kconfig/merge_config.sh .config ../acpi.conf ../uroot_initramfs.conf | |
make Image -j$(nproc) | |
make dtbs -j$(nproc) | |
- name: Archive artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: linux-binary | |
path: | | |
./linux/arch/arm64/boot/Image | |
./linux/arch/arm64/boot/dts/broadcom/bcm2711-rpi-4-b.dtb | |
./linux/.config | |
uboot_build: | |
runs-on: ubuntu-latest | |
container: | |
image: ghcr.io/9elements/firmware-action/linux_6.1.45:v0.3.2 | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: 'recursive' | |
token: ${{ secrets.MY_REPO_PAT || github.token }} | |
- name: Install tools | |
shell: bash | |
run: | | |
apt-get update && apt-get install -y python3-pyelftools efitools lzop zip srecord device-tree-compiler acpica-tools python3-yaml python3-jsonschema python3-dev python3-setuptools libgnutls28-dev swig uuid-dev python3-pip | |
python3 -m pip install --user yamllint | |
ln -s /usr/bin/aarch64-linux-gnu-gcc-ar-10 /usr/bin/aarch64-linux-gnu-gcc-ar | |
ln -s /usr/bin/aarch64-linux-gnu-gcc-nm-10 /usr/bin/aarch64-linux-gnu-gcc-nm | |
ln -s /usr/bin/arm-linux-gnu-gcc-ar-10 /usr/bin/arm-linux-gnu-gcc-ar | |
ln -s /usr/bin/arm-linux-gnu-gcc-nm-10 /usr/bin/arm-linux-gnu-gcc-nm | |
ln -s /usr/bin/arm-linux-gnueabi-gcc-ar-10 /usr/bin/arm-linux-gnueabi-gcc-ar | |
ln -s /usr/bin/arm-linux-gnueabi-gcc-nm-10 /usr/bin/arm-linux-gnueabi-gcc-nm | |
- name: Build all boards | |
shell: bash | |
working-directory: ./u-boot | |
run: | | |
printf "[toolchain]\nother = /\n[toolchain-prefix]\n\n[toolchain-alias]\nriscv = riscv32\nsh = sh4\nx86 = i686\n[make-flags]\n" > ~/.buildman | |
./tools/buildman/buildman --list-tool-chains | |
./tools/buildman/buildman -y -Y -v -e -W -M -c 15 -l -x stm32mp15_dhcom_basic,sandbox,imx6dl_mamoj,mx6sabresd,rcar3_salvator,turris_omnia,renesas_rzg2l_smarc x86 | |
./tools/buildman/buildman -y -Y -v -e -W -M -c 15 -l -x stm32mp15_dhcom_basic,sandbox,imx6dl_mamoj,mx6sabresd,rcar3_salvator,turris_omnia,renesas_rzg2l_smarc rpi | |