Update uboot.yml

pull/1681/head
Huang jinlong 2024-12-06 18:41:52 +08:00 committed by GitHub
parent 61235a2bed
commit b36e914e36
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 18 additions and 8 deletions

View File

@ -6,30 +6,40 @@ jobs:
toolchain:
name: Uboot
runs-on: ubuntu-latest
steps:
- name: Prepare
run: |
sudo apt-get update
sudo apt-get install gcc-arm-linux-gnueabi gcc-mipsel-linux-gnu u-boot-tools lzop gnutls-dev lzma-alone
- name: Allwinner
- name: Clone and Modify Sigmastar U-Boot
run: |
# 克隆仓库
git clone https://github.com/openipc/u-boot-sigmastar --depth 1
cd u-boot-sigmastar
# 修改 sstar-common.h 的内容
sed -i 's|#define CONFIG_BOOTARGS "console=ttyS0,115200 panic=20 root=/dev/mtdblock3 init=/init mtdparts=NOR_FLASH:256k(boot),64k(env),2048k(kernel),\\\\${rootmtd}(rootfs),-(rootfs_data) LX_MEM=\\\\${memlx} mma_heap=mma_heap_name0,miu=0,sz=\\\\${memsz} cma=2M"|#define CONFIG_BOOTARGS "console=ttyS0,115200 panic=20 root=/dev/mtdblock3 init=/init mtdparts=NOR_FLASH:256k(boot),64k(env),3072k(kernel),9600k(rootfs),-(rootfs_data) LX_MEM=\\\\${memlx} mma_heap=mma_heap_name0,miu=0,sz=\\\\${memsz} cma=2M"|g' include/configs/sstar-common.h
# 打印修改后的内容进行验证
grep "CONFIG_BOOTARGS" include/configs/sstar-common.h
# 运行构建脚本
bash build.sh
- name: Clone and Build Allwinner U-Boot
run: |
git clone https://github.com/openipc/u-boot-allwinner --depth 1
cd u-boot-allwinner
bash build.sh
- name: Ingenic
- name: Clone and Build Ingenic U-Boot
run: |
git clone https://github.com/openipc/u-boot-ingenic --depth 1
cd u-boot-ingenic
bash build.sh
- name: Sigmastar
run: |
git clone https://github.com/openipc/u-boot-sigmastar --depth 1
cd u-boot-sigmastar
bash build.sh
- name: Upload
uses: softprops/action-gh-release@v2
with: