openwrt/.buildbot/openwrt/build.sh

24 lines
686 B
Bash
Raw Normal View History

2022-12-16 15:47:27 +00:00
#!/bin/bash
2022-12-21 01:17:43 +00:00
# use imagebuilder
2022-12-16 15:47:27 +00:00
2022-12-21 01:17:43 +00:00
OPENWRT_VERSION=22.03.2
2022-12-17 06:15:23 +00:00
2022-12-21 01:17:43 +00:00
# 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
2022-12-21 01:22:28 +00:00
wget -q \
2022-12-21 01:17:43 +00:00
https://downloads.openwrt.org/releases/${OPENWRT_VERSION}/targets/bcm27xx/bcm2711/$i || exit 1
done
2022-12-16 15:47:27 +00:00
2022-12-21 01:17:43 +00:00
tar -xJf openwrt-imagebuilder-${OPENWRT_VERSION}-*.tar.xz
cd openwrt-imagebuilder-*/
2022-12-16 15:57:02 +00:00
2022-12-21 01:17:43 +00:00
make info
2022-12-16 15:47:27 +00:00
# check RTC
# kmod-rtc-ds1307