Skip to content

Commit

Permalink
Create makefile.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
gtxaspec committed Dec 21, 2023
1 parent 6d9a370 commit 97dbf55
Show file tree
Hide file tree
Showing 2 changed files with 87 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/scripts/u-boot-ingenic.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
#!/bin/bash

export CROSS_COMPILE=mipsel-linux-gnu-

declare -A cfg

cfg[t10]="isvp_t10_sfcnor"
cfg[t10l]="isvp_t10_sfcnor_lite"
cfg[t20]="isvp_t20_sfcnor"
cfg[t20l]="isvp_t20_sfcnor_lite"
cfg[t31n]="isvp_t31_sfcnor"
cfg[t31l]="isvp_t31_sfcnor_lite"
cfg[t31x]="isvp_t31_sfcnor_ddr128M"
cfg[t31a]="isvp_t31a_sfcnor_ddr128M"
cfg[t31al]="isvp_t31al_sfcnor_ddr128M"
cfg[t31lc]="isvp_t31lc_sfcnor"
cfg[t21n]="isvp_t21_sfcnor"
cfg[t30n]="isvp_t30_sfcnor"
cfg[t30l]="isvp_t30_sfcnor_lite"
cfg[t30x]="isvp_t30_sfcnor_ddr128M"
cfg[t30a]="isvp_t30a_sfcnor_ddr128M"
cfg[t30a1]="isvp_t30a1_sfcnor_ddr128M"

ln -s compiler-gcc7.h include/linux/compiler-gcc10.h
mkdir -p ../ingenic-output

for soc in ${!cfg[@]}; do

make distclean
make ${cfg[$soc]}

make -j8
cp u-boot-lzo-with-spl.bin ../ingenic-output/u-boot-${soc}-universal.bin

done

mv ../ingenic-output -T output
50 changes: 50 additions & 0 deletions .github/workflows/makefile.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Build
on:
push:
branches:
- master
workflow_dispatch:

env:
TAG_NAME: latest

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Prepare
run: |
sudo apt-get update
sudo apt-get install gcc-arm-linux-gnueabi gcc-mipsel-linux-gnu lzop u-boot-tools
- name: u-boot-ingenic
run: |
git clone https://github.com/gtxaspec/u-boot-ingenic.git --depth 1
cd u-boot-ingenic
cp -f .github/scripts/u-boot-ingenic.sh u-boot-ingenic.sh
bash u-boot-ingenic.sh
- name: Upload
uses: softprops/action-gh-release@v1
with:
tag_name: ${{env.TAG_NAME}}
files: |
u-boot-ingenic/output/u-boot-t10l-universal.bin
u-boot-ingenic/output/u-boot-t10-universal.bin
u-boot-ingenic/output/u-boot-t20l-universal.bin
u-boot-ingenic/output/u-boot-t20-universal.bin
u-boot-ingenic/output/u-boot-t21n-universal.bin
u-boot-ingenic/output/u-boot-t30a1-universal.bin
u-boot-ingenic/output/u-boot-t30a-universal.bin
u-boot-ingenic/output/u-boot-t30l-universal.bin
u-boot-ingenic/output/u-boot-t30n-universal.bin
u-boot-ingenic/output/u-boot-t30x-universal.bin
u-boot-ingenic/output/u-boot-t31al-universal.bin
u-boot-ingenic/output/u-boot-t31a-universal.bin
u-boot-ingenic/output/u-boot-t31l-universal.bin
u-boot-ingenic/output/u-boot-t31lc-universal.bin
u-boot-ingenic/output/u-boot-t31n-universal.bin
u-boot-ingenic/output/u-boot-t31x-universal.bin

0 comments on commit 97dbf55

Please sign in to comment.