Skip to content

Commit

Permalink
add axt1800 sdk support
Browse files Browse the repository at this point in the history
  • Loading branch information
luochongjun committed Aug 2, 2022
1 parent b22fc53 commit 6750abc
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .github/workflows/set_variable.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
on:
workflow_dispatch:
inputs:
device:
description: 'Select device'
required: true
type: choice
options:
- SF1200
- SF1200
- AXT1800
sourcecode:
description: 'Source code URL'
required: true
Expand All @@ -20,6 +28,7 @@ jobs:
env:
SOURCECODEURL: ${{ github.event.inputs.sourcecode }}
PKGNAME: ${{ github.event.inputs.pkgname }}
BOARD: ${{ github.event.inputs.device }}
run: |
cd $GITHUB_WORKSPACE
chmod +x ./build.sh
Expand Down
27 changes: 26 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/sh
echo SOURCECODEURL: "$SOURCECODEURL"
echo PKGNAME: "$PKGNAME"
echo BOARD: "$BOARD"

WORKDIR="$(pwd)"

Expand All @@ -15,7 +16,31 @@ cd ${WORKDIR}/buildsource
git clone "$SOURCECODEURL"
cd ${WORKDIR}

git clone https://github.com/gl-inet-builder/openwrt-sdk-siflower-1806.git openwrt-sdk

mips_siflower_sdk_get()
{
git clone https://github.com/gl-inet-builder/openwrt-sdk-siflower-1806.git openwrt-sdk
}

axt1800_sdk_get()
{
wget -q -O openwrt-sdk.tar.xz https://fw.gl-inet.com/releases/v21.02-SNAPSHOT/sdk/openwrt-sdk-ipq807x-ipq60xx_gcc-5.5.0_musl_eabi.Linux-x86_64.tar.xz
mkdir -p ${WORKDIR}/openwrt-sdk
tar -Jxf openwrt-sdk.tar.xz -C ${WORKDIR}/openwrt-sdk --strip=1
}



case "$BOARD" in
"SF1200" |\
"SFT1200" )
mips_siflower_sdk_get
;;
"AXT1800" )
axt1800_sdk_get
;;
*)

cd openwrt-sdk
sed -i "1i\src-link local ${WORKDIR}/buildsource" feeds.conf.default
./scripts/feeds update -a
Expand Down

0 comments on commit 6750abc

Please sign in to comment.