Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions tools/build-sdk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -112,25 +112,25 @@ until ./scripts/feeds update -a; do
( cd feeds && rm -rf -- * .[!.]* ..?* 2>/dev/null || true )
sleep \$((attempt * 5))
done
# Install only the feeds we need: local (this repo's packages) and base
# (libuv, libopenssl, etc. for ZET runtime deps). We do NOT install
# packages, luci, telephony, or routing -- those would pull in 200+
# unrelated .ipks during make defconfig.
./scripts/feeds install -p local -a
./scripts/feeds install -p base -a
# Allow individual deps from packages/luci feeds without enabling them
# wholesale.
./scripts/feeds install libsodium libprotobuf-c libpcap libuv libjson-c llhttp stc luci-base 2>/dev/null || true

# Start from an empty .config so make defconfig only enables what our
# package selects via DEPENDS (and the SDK target itself).
# scripts/feeds install invokes make under the hood, which falls back to
# menuconfig (and dies in CI with "Error opening terminal") if .config is
# missing. Write our minimal .config FIRST so that does not happen.
# CONFIG_ALL*=n keeps make defconfig from enabling 200 unrelated packages.
: > .config
echo "CONFIG_ALL=n" >> .config
echo "CONFIG_ALL_KMODS=n" >> .config
echo "CONFIG_ALL_NONSHARED=n" >> .config
echo "CONFIG_AUTOREMOVE=y" >> .config
echo "CONFIG_PACKAGE_$PACKAGE=m" >> .config

# Selective feeds install: local + base + named individual deps. The
# wholesale `feeds install -a` would pull in packages, luci, routing,
# telephony entries we never use.
./scripts/feeds install -p local -a
./scripts/feeds install -p base -a
./scripts/feeds install libsodium libprotobuf-c libpcap libuv libjson-c llhttp stc luci-base 2>/dev/null || true

make defconfig
make package/$PACKAGE/compile V=s -j"\$(nproc)"

Expand Down