🐛 fix(build.sh): add host tools and cross toolchain
This commit is contained in:
@@ -117,6 +117,14 @@ EOF
|
||||
grep -q '^CONFIG_PACKAGE_mihomo=m$' "${SOURCE_DIR}/.config" || die "mihomo package selection failed."
|
||||
}
|
||||
|
||||
prepare_build_system() {
|
||||
log "Building ImmortalWrt host tools"
|
||||
make -C "${SOURCE_DIR}" tools/install -j"${JOBS}" V=s
|
||||
|
||||
log "Building the x86/64 cross toolchain"
|
||||
make -C "${SOURCE_DIR}" toolchain/install -j"${JOBS}" V=s
|
||||
}
|
||||
|
||||
build_package() {
|
||||
log "Building mihomo with ${JOBS} parallel jobs"
|
||||
make -C "${SOURCE_DIR}" package/feeds/mihomo/mihomo/download -j"${JOBS}" V=s
|
||||
@@ -151,5 +159,6 @@ install_dependencies
|
||||
prepare_source
|
||||
prepare_feeds
|
||||
configure_target
|
||||
prepare_build_system
|
||||
build_package
|
||||
collect_artifacts
|
||||
|
||||
Reference in New Issue
Block a user