More work on --source

This commit is contained in:
2023-01-29 15:52:54 -05:00
parent 5f55675193
commit afa6ea2abc

View File

@@ -608,9 +608,6 @@ fromSource() {
echo "Building from source is under development"
debug "kopts: ${P_ARR[kopts]}"
debug "pkgs: ${P_ARR[packages]}"
# Update source code
if [[ ! -d "$GITSRCDIR" ]]; then
mkdir -p "$GITSRCDIR"
@@ -643,10 +640,7 @@ fromSource() {
fi
# Add custom packages
debug HERE0
for pkg in ${P_ARR[packages]}; do
debug HERE1
if [[ $pkg == -* ]]; then
debug "Removing package ${pkg#-}"
config_opts+=("CONFIG_PACKAGE_${pkg#-}=n") # remove package
@@ -658,7 +652,6 @@ fromSource() {
# Add kopts from profile
for kopt in ${P_ARR[kopts]}; do
debug HERE2
config_opts+=("$kopt")
done
@@ -678,7 +671,7 @@ fromSource() {
done
# normalize .config and remove dupes
# make defconfig # TODO
make defconfig # TODO
# TODO for now symlink clang for qosify
[[ -d "$GITSRCDIR/staging_dir/host/llvm-bpf/bin" ]] || mkdir -p "$GITSRCDIR/staging_dir/host/llvm-bpf/bin"