Add device profile to opts

This commit is contained in:
2023-01-20 18:24:34 -05:00
parent b80f31b911
commit 98b49ca40b

View File

@@ -580,6 +580,7 @@ fromSource() {
done done
make_opts+=("CONFIG_TARGET_MULTI_PROFILE=n") make_opts+=("CONFIG_TARGET_MULTI_PROFILE=n")
make_opts+=("CONFIG_TARGET_PROFILE=DEVICE_${P_ARR[profile]}")
make_opts+=("CONFIG_TARGET_DEVICE_${P_ARR[target]//\//_}_DEVICE_${P_ARR[profile]}=y") make_opts+=("CONFIG_TARGET_DEVICE_${P_ARR[target]//\//_}_DEVICE_${P_ARR[profile]}=y")
make_opts+=("CONFIG_BINARY_FOLDER=\"$THIS_BINDIR\"") make_opts+=("CONFIG_BINARY_FOLDER=\"$THIS_BINDIR\"")
@@ -608,7 +609,7 @@ fromSource() {
# TODO symlink clang for qosify # TODO symlink clang for qosify
[[ -d "$GITSRCDIR/staging_dir/host/llvm-bpf/bin" ]] || mkdir -p "$GITSRCDIR/staging_dir/host/llvm-bpf/bin" [[ -d "$GITSRCDIR/staging_dir/host/llvm-bpf/bin" ]] || mkdir -p "$GITSRCDIR/staging_dir/host/llvm-bpf/bin"
ln -s "$(which clang)" "$GITSRCDIR/staging_dir/host/llvm-bpf/bin/clang" ln -fs "$(which clang)" "$GITSRCDIR/staging_dir/host/llvm-bpf/bin/clang"
make targetclean make targetclean
make "${make_opts[@]}" download && make "${make_opts[@]}" download &&