More work on --source
This commit is contained in:
@@ -608,9 +608,6 @@ fromSource() {
|
|||||||
|
|
||||||
echo "Building from source is under development"
|
echo "Building from source is under development"
|
||||||
|
|
||||||
debug "kopts: ${P_ARR[kopts]}"
|
|
||||||
debug "pkgs: ${P_ARR[packages]}"
|
|
||||||
|
|
||||||
# Update source code
|
# Update source code
|
||||||
if [[ ! -d "$GITSRCDIR" ]]; then
|
if [[ ! -d "$GITSRCDIR" ]]; then
|
||||||
mkdir -p "$GITSRCDIR"
|
mkdir -p "$GITSRCDIR"
|
||||||
@@ -643,10 +640,7 @@ fromSource() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Add custom packages
|
# Add custom packages
|
||||||
debug HERE0
|
|
||||||
|
|
||||||
for pkg in ${P_ARR[packages]}; do
|
for pkg in ${P_ARR[packages]}; do
|
||||||
debug HERE1
|
|
||||||
if [[ $pkg == -* ]]; then
|
if [[ $pkg == -* ]]; then
|
||||||
debug "Removing package ${pkg#-}"
|
debug "Removing package ${pkg#-}"
|
||||||
config_opts+=("CONFIG_PACKAGE_${pkg#-}=n") # remove package
|
config_opts+=("CONFIG_PACKAGE_${pkg#-}=n") # remove package
|
||||||
@@ -658,7 +652,6 @@ fromSource() {
|
|||||||
|
|
||||||
# Add kopts from profile
|
# Add kopts from profile
|
||||||
for kopt in ${P_ARR[kopts]}; do
|
for kopt in ${P_ARR[kopts]}; do
|
||||||
debug HERE2
|
|
||||||
config_opts+=("$kopt")
|
config_opts+=("$kopt")
|
||||||
done
|
done
|
||||||
|
|
||||||
@@ -678,7 +671,7 @@ fromSource() {
|
|||||||
done
|
done
|
||||||
|
|
||||||
# normalize .config and remove dupes
|
# normalize .config and remove dupes
|
||||||
# make defconfig # TODO
|
make defconfig # TODO
|
||||||
|
|
||||||
# TODO for now symlink clang for qosify
|
# TODO for now 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"
|
||||||
|
|||||||
Reference in New Issue
Block a user