Support user packages in --source
This commit is contained in:
@@ -538,7 +538,7 @@ fromSource() {
|
|||||||
|
|
||||||
if [[ ! -d "$src_dir" ]]; then
|
if [[ ! -d "$src_dir" ]]; then
|
||||||
mkdir -p "$src_dir"
|
mkdir -p "$src_dir"
|
||||||
git clone "$src_url" "$src_dir"
|
git clone "$src_url" "$src_dir"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
pushd "$src_dir" || return 1
|
pushd "$src_dir" || return 1
|
||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user