Cleanup the multibuild dir more #54
|
@ -1,27 +1,28 @@
|
||||||
FROM ubuntu:focal
|
FROM ubuntu:focal
|
||||||
|
|
||||||
ENV OPENWRT_VERSION=22.03.2
|
|
||||||
ENV OPENWRT_TARGET=bcm27xx
|
|
||||||
ENV OPENWRT_DEVICE=bcm2711
|
|
||||||
ENV OPENWRT_CC=gcc-11.2.0_musl
|
|
||||||
|
|
||||||
RUN apt -y update
|
RUN apt -y update
|
||||||
|
|
||||||
RUN DEBIAN_FRONTEND=noninteractive TZ=UTC \
|
RUN DEBIAN_FRONTEND=noninteractive TZ=UTC \
|
||||||
apt -yq install \
|
apt -yq install \
|
||||||
build-essential rsync git-core subversion mercurial libssl-dev \
|
build-essential rsync git-core subversion mercurial libssl-dev \
|
||||||
libncurses5-dev unzip gawk zlib1g-dev libncursesw5-dev zlib1g-dev \
|
libncurses5-dev unzip gawk zlib1g-dev libncursesw5-dev zlib1g-dev \
|
||||||
gettext xsltproc wget unzip python
|
gettext xsltproc wget unzip python python3-distutils
|
||||||
|
|
||||||
|
# Board build parameters
|
||||||
|
ENV OPENWRT_VERSION=22.03.2
|
||||||
|
ENV OPENWRT_TARGET=bcm27xx
|
||||||
|
ENV OPENWRT_DEVICE=bcm2711
|
||||||
|
ENV OPENWRT_CC=gcc-11.2.0_musl
|
||||||
|
|
||||||
RUN mkdir /Downloads
|
RUN mkdir /Downloads
|
||||||
|
|
||||||
RUN wget -qP /Downloads \
|
RUN wget -qP /Downloads \
|
||||||
"https://downloads.openwrt.org/releases/${OPENWRT_VERSION}/targets/bcm27xx/bcm2711/openwrt-imagebuilder-${OPENWRT_VERSION}-${OPENWRT_TARGET}-${OPENWRT_DEVICE}.Linux-x86_64.tar.xz"
|
"https://downloads.openwrt.org/releases/${OPENWRT_VERSION}/targets/${OPENWRT_TARGET}/${OPENWRT_DEVICE}/openwrt-imagebuilder-${OPENWRT_VERSION}-${OPENWRT_TARGET}-${OPENWRT_DEVICE}.Linux-x86_64.tar.xz"
|
||||||
|
|
||||||
RUN wget -qP /Downloads \
|
RUN wget -qP /Downloads \
|
||||||
"https://downloads.openwrt.org/releases/${OPENWRT_VERSION}/targets/bcm27xx/bcm2711/openwrt-sdk-${OPENWRT_VERSION}-${OPENWRT_TARGET}-${OPENWRT_DEVICE}_${OPENWRT_CC}.Linux-x86_64.tar.xz"
|
"https://downloads.openwrt.org/releases/${OPENWRT_VERSION}/targets/${OPENWRT_TARGET}/${OPENWRT_DEVICE}/openwrt-sdk-${OPENWRT_VERSION}-${OPENWRT_TARGET}-${OPENWRT_DEVICE}_${OPENWRT_CC}.Linux-x86_64.tar.xz"
|
||||||
|
|
||||||
# RUN wget -qP /Downloads \
|
# RUN wget -qP /Downloads \
|
||||||
# "https://downloads.openwrt.org/releases/${OPENWRT_VERSION}/targets/bcm27xx/bcm2711/openwrt-toolchain-${OPENWRT_VERSION}-${OPENWRT_TARGET}-${OPENWRT_DEVICE}_${OPENWRT_CC}.Linux-x86_64.tar.xz"
|
# "https://downloads.openwrt.org/releases/${OPENWRT_VERSION}/targets/${OPENWRT_TARGET}/${OPENWRT_DEVICE}/openwrt-toolchain-${OPENWRT_VERSION}-${OPENWRT_TARGET}-${OPENWRT_DEVICE}_${OPENWRT_CC}.Linux-x86_64.tar.xz"
|
||||||
|
|
||||||
ADD . .
|
ADD . .
|
||||||
|
|
|
@ -45,12 +45,14 @@ tar -xJf /Downloads/openwrt-imagebuilder-${OPENWRT_VERSION}-*.tar.xz
|
||||||
PROFILE=rpi-4
|
PROFILE=rpi-4
|
||||||
BINPATH=bin/targets/${OPENWRT_TARGET}/${OPENWRT_DEVICE}
|
BINPATH=bin/targets/${OPENWRT_TARGET}/${OPENWRT_DEVICE}
|
||||||
IMAGE_PATH=${BINPATH}/openwrt-${OPENWRT_VERSION}-${OPENWRT_TARGET}-${OPENWRT_DEVICE}-${PROFILE}
|
IMAGE_PATH=${BINPATH}/openwrt-${OPENWRT_VERSION}-${OPENWRT_TARGET}-${OPENWRT_DEVICE}-${PROFILE}
|
||||||
|
PKG_ARCH=aarch64_cortex-a72
|
||||||
|
|
||||||
cd openwrt-imagebuilder-*/
|
cd openwrt-imagebuilder-*/
|
||||||
cp ${sdkdir}/${BINPATH}/packages/*.ipk packages/
|
cp ${sdkdir}/${BINPATH}/packages/*.ipk packages/
|
||||||
cp ${sdkdir}/bin/packages/aarch64_cortex-a72/packages/*.ipk packages/
|
cp ${sdkdir}/bin/packages/${PKG_ARCH}/base/*.ipk packages/
|
||||||
cp ${sdkdir}/bin/packages/aarch64_cortex-a72/telephony/*.ipk packages/
|
cp ${sdkdir}/bin/packages/${PKG_ARCH}/packages/*.ipk packages/
|
||||||
cp ${sdkdir}/bin/packages/aarch64_cortex-a72/local/*.ipk packages/
|
cp ${sdkdir}/bin/packages/${PKG_ARCH}/telephony/*.ipk packages/
|
||||||
|
cp ${sdkdir}/bin/packages/${PKG_ARCH}/local/*.ipk packages/
|
||||||
|
|
||||||
make info
|
make info
|
||||||
|
|
||||||
|
@ -96,7 +98,7 @@ PACKAGES="kmod-i2c-bcm2835 kmod-i2c-mux kmod-i2c-mux-pinctrl \
|
||||||
|
|
||||||
BOOTSOURCE=target/linux/${OPENWRT_TARGET}/image
|
BOOTSOURCE=target/linux/${OPENWRT_TARGET}/image
|
||||||
BOOTCONFIG=${BOOTSOURCE}/config.txt
|
BOOTCONFIG=${BOOTSOURCE}/config.txt
|
||||||
KERNELSOURCE=build_dir/target-aarch64_cortex-a72_musl/linux-${OPENWRT_TARGET}_${OPENWRT_DEVICE}/linux-5.10.146
|
KERNELSOURCE=build_dir/target-${PKG_ARCH}_musl/linux-${OPENWRT_TARGET}_${OPENWRT_DEVICE}/linux-5.10.146
|
||||||
OVERLAYSOURCE=${KERNELSOURCE}/arch/arm64/boot/dts/overlays
|
OVERLAYSOURCE=${KERNELSOURCE}/arch/arm64/boot/dts/overlays
|
||||||
|
|
||||||
# Setup files
|
# Setup files
|
||||||
|
|
Loading…
Reference in New Issue
Block a user