Skip to content

Commit

Permalink
update build script
Browse files Browse the repository at this point in the history
  • Loading branch information
luochongjun committed Jul 28, 2022
1 parent b90f133 commit c6c46a1
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
#!/bin/sh
echo SOURCECODEURL: "$SOURCECODEURL"
echo PKGNAME: "$PKGNAME"

WORKDIR="$(pwd)"

apt update
apt install git asciidoc bash bc binutils bzip2 fastjar flex gawk gcc genisoimage gettext git intltool jikespg libgtk2.0-dev libncurses5-dev libssl1.0-dev make mercurial patch perl-modules python2.7-dev rsync ruby sdcc subversion unzip util-linux wget xsltproc zlib1g-dev zlib1g-dev -y

git clone "$SOURCECODEURL" buildsource
git clone [email protected]:gl-inet-builder/openwrt-sdk-siflower-1806.git openwrt-sdk
cd openwrt-sdk
sed -i "1i\src-link local ${WORKDIR}/buildsource" feeds.conf.default
./scripts/feeds update -a
./scripts/feeds install -a
echo CONFIG_ALL=y >.config
make defconfig
make V=s ./package/${PKGNAME}/compile

0 comments on commit c6c46a1

Please sign in to comment.