Switch to imagebuilder

This commit is contained in:
Peter Šurda 2022-12-21 09:17:43 +08:00
parent 7dd96d8656
commit b8ed435ac8
Signed by: PeterSurda
GPG Key ID: 3E47497CF67ABB95
1 changed files with 13 additions and 12 deletions

View File

@ -1,21 +1,22 @@
#!/bin/bash
git clone https://git.openwrt.org/openwrt/openwrt.git
# use imagebuilder
cd openwrt
git checkout tags/20.03.2
OPENWRT_VERSION=22.03.2
./scripts/feeds update -a
./scripts/feeds install -a
# for i in openwrt-imagebuilder-${OPENWRT_VERSION}-bcm27xx-bcm2711.Linux-x86_64.tar.xz \
# openwrt-sdk-${OPENWRT_VERSION}-bcm27xx-bcm2711_gcc-11.2.0_musl.Linux-x86_64.tar.xz \
# openwrt-toolchain-${OPENWRT_VERSION}-bcm27xx-bcm2711_gcc-11.2.0_musl.Linux-x86_64.tar.xz
for i in openwrt-imagebuilder-${OPENWRT_VERSION}-bcm27xx-bcm2711.Linux-x86_64.tar.xz
do
wget -qs
https://downloads.openwrt.org/releases/${OPENWRT_VERSION}/targets/bcm27xx/bcm2711/$i || exit 1
done
#wget https://downloads.openwrt.org/releases/22.03.2/targets/bcm27xx/bcm2711/config.buildinfo -O .config
cp ../config.buildinfo .config
make defconfig
#make -j $(nproc) V=w
make V=s
tar -xJf openwrt-imagebuilder-${OPENWRT_VERSION}-*.tar.xz
cd openwrt-imagebuilder-*/
find ~ -type d -name bin
find bin
make info
# check RTC