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 install -a
# Grab the release config.seed
k_options=$(curl -s "$SEED_URL")
debug "$k_options"
# Grab the release seed config
if [[ ! -f .config ]]; then
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 distclean
make download
make defconfig # normalize .config and remove dupes
make targetclean
make download &&
make -j"$(nproc)" world
popd || return 1