From 69952847867846860d76196da62d249d1c06db94 Mon Sep 17 00:00:00 2001 From: bryan Date: Tue, 31 Jan 2023 18:22:10 -0500 Subject: [PATCH] Fix funky whitespace for kopts --- openwrtbuilder | 6 ++++-- profiles | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/openwrtbuilder b/openwrtbuilder index 4af66cd..a2e7bc3 100755 --- a/openwrtbuilder +++ b/openwrtbuilder @@ -706,10 +706,12 @@ fromSource() { # Write options to config seed file for opt in "${config_opts[@]}"; do debug "Writing $opt to $seed_file" - # Respect nested quotes (ex. in kopts) - echo "$opt" | xargs >> "$seed_file" + echo "$opt" >> "$seed_file" done + [[ -v P_ARR[nested_kopts] ]] && + echo "${P_ARR[nested_kopts]}" >> "$seed_file" + # TODO for now symlink clang for qosify # declare llvm_dir="$GITSRCDIR/staging_dir/host/llvm-bpf/bin" # [[ -d "$llvm_dir" ]] || mkdir -p "$llvm_dir" diff --git a/profiles b/profiles index 2528c8d..5d4a89c 100644 --- a/profiles +++ b/profiles @@ -105,8 +105,8 @@ r4s['packages']="\ r4s['kopts']="\ CONFIG_KERNEL_BTRFS_FS_POSIX_ACL=y \ CONFIG_BTRFS_PROGS_ZSTD=y \ - CONFIG_TARGET_OPTIMIZATION=\"'-O3 -pipe -mcpu=cortex-a72.cortex-a53+crypto+crc'\" \ CONFIG_TARGET_ROOTFS_PARTSIZE=1024" +r4s['nested_kopts']="CONFIG_TARGET_OPTIMIZATION=\"-O3 -pipe -mcpu=cortex-a72.cortex-a53+crypto+crc\"" r4s['files']="\ /mnt/backup"