diff --git a/build_image/build_image.sh b/build_image/build_image.sh index c8097f3..e833da6 100755 --- a/build_image/build_image.sh +++ b/build_image/build_image.sh @@ -60,7 +60,7 @@ if [[ $IN_DOCKER == true ]]; then inf "Build OpenWRT image in Docker" [[ ${SKIP_DOWNLOAD:-false} == true ]] && BUILD_OPTS="nodownload" - ./build.sh build-official ${BUILD_OPTS:-} + CONFIG_PATH=${SCRIPT_PATH}/files ./build.sh build-official ${BUILD_OPTS:-} else # https://gitlab.com/db260179/openwrt-base/-/tree/master/docker # https://gitlab.com/db260179/openwrt-base/-/archive/master/openwrt-base-master.zip?path=docker diff --git a/build_image/files/build.sh b/build_image/files/build.sh index b66d331..3a25d86 100755 --- a/build_image/files/build.sh +++ b/build_image/files/build.sh @@ -25,7 +25,7 @@ release=$(grep -m1 '$(VERSION_REPO),' include/version.mk | awk -F, '{ print $3 } # wget $release/targets/ramips/mt7621/config.buildinfo -O .config # wget $release/targets/mediatek/mt7622/config.buildinfo -O .config -cp -rfv "$REPO_PATH"/files/config.buildinfo ./.config +cp -rfv "${CONFIG_PATH}"/config.buildinfo ./.config echo "Set to use default config" make defconfig