-
Notifications
You must be signed in to change notification settings - Fork 3
49 lines (49 loc) · 2.13 KB
/
openwrt-feed-st.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
on: workflow_dispatch
jobs:
build-all:
runs-on: ubuntu-22.04
env:
openwrt_version: 904aa43865
strategy:
matrix:
devices: [ stm32mp157f-dk2, stm32mp135f-dk, stm32mp157f-dk2-demo, stm32mp135f-dk-demo ]
steps:
- uses: actions/checkout@v4
with:
repository: openwrt/openwrt
ref: master
path: openwrt
- name: Install dependencies
run: |
sudo apt update
sudo apt install -y python3-pyelftools python3-cryptography python3-setuptools python3-pil python3-dev
sudo apt install -y device-tree-compiler swig
- name: Add ST feed
run: echo src-git st https://github.com/bootlin/openwrt-feed-st.git >> openwrt/feeds.conf.default
- name: Update feeds
run: cd openwrt; ./scripts/feeds update -a
- name: Install stm32 target
run: cd openwrt; ./scripts/feeds install stm32
- name: Install all other feeds
run: cd openwrt; ./scripts/feeds install -a -f
- name: Install ptgen patch
run: |
mkdir -p openwrt/tools/firmware-utils/patches/
cp openwrt/feeds/st/patches/0001-ptgen-fix-limitation-for-active-partition-in-GPT.patch openwrt/tools/firmware-utils/patches/
- name: Configure
run: |
printf "CONFIG_TARGET_stm32=y\\nCONFIG_TARGET_stm32_stm32mp1=y\\nCONFIG_TARGET_stm32_stm32mp1_DEVICE_${{ matrix.devices }}=y\\n" > openwrt/.config
make -C openwrt defconfig
- name: Build
id: build
run: make -j4 -C openwrt || make -C openwrt -j1 V=s
- name: 'Archive factory image'
uses: actions/upload-artifact@v4
with:
name: openwrt-stm32-stm32mp1-${{ matrix.devices }}-ext4-factory.img.gz
path: openwrt/bin/targets/stm32/stm32mp1/openwrt-stm32-stm32mp1-${{ matrix.devices }}-ext4-factory.img.gz
- name: 'Archive sysupgrade image'
uses: actions/upload-artifact@v4
with:
name: openwrt-stm32-stm32mp1-${{ matrix.devices }}-ext4-sysupgrade.img.gz
path: openwrt/bin/targets/stm32/stm32mp1/openwrt-stm32-stm32mp1-${{ matrix.devices }}-ext4-sysupgrade.img.gz