Support user packages in --source

This commit is contained in:
2023-01-13 15:13:06 -05:00
parent 0dfd58b9ef
commit 60bb05e19a

View File

@@ -552,14 +552,27 @@ fromSource() {
./scripts/feeds update -a ./scripts/feeds update -a
./scripts/feeds install -a ./scripts/feeds install -a
# Grab the release config.seed # Grab the release seed config
k_options=$(curl -s "$SEED_URL") if [[ ! -f .config ]]; then
debug "$k_options" if ! curl -so .config "$SEED_URL"; then
echo "Could not obtain seed config"
fi
else
echo "Reusing existing .config"
fi
# Update .config with profile packages
for package in ${P_ARR[packages]}; do
if [[ $package == -* ]]; then
echo "CONFIG_PACKAGE_${package#-}=n" >> .config
else
echo "CONFIG_PACKAGE_$package=y" >> .config
fi
done
make defconfig # normalize .config and remove dupes
make distclean make targetclean
make download make download &&
make -j"$(nproc)" world make -j"$(nproc)" world
popd || return 1 popd || return 1