From f55bb8d5ec6992a2851acf381e193746349f0c42 Mon Sep 17 00:00:00 2001 From: Paul Spooren Date: Tue, 29 May 2018 18:07:35 +0900 Subject: [PATCH] cooker: add sdk_compile_repo option the new option compiles all packages as the given repo. This simplifies usage in a CLI system while still honoring libremesh.sdk.config. --- cooker | 7 +++++++ options.conf | 1 + 2 files changed, 8 insertions(+) diff --git a/cooker b/cooker index 6434076..a87b3a1 100755 --- a/cooker +++ b/cooker @@ -215,6 +215,13 @@ build_sdk() { } cp ${sdk_config}.local $sdk/.config 2>/dev/null || cp ${sdk_config} $sdk/.config + + for r in $sdk_compile_repos; do + (cd $sdk && \ + scripts/feeds uninstall -p $r && \ + scripts/feeds install -a -p $r -d m) + done + make -C $sdk defconfig make -j$J -C $sdk V=$V && [ -z "$no_link_ib" ] && { [ -f "$ib/repositories.original.conf" ] || download_ib $target diff --git a/options.conf b/options.conf index cafbdb0..53e9b4d 100644 --- a/options.conf +++ b/options.conf @@ -11,6 +11,7 @@ flavors_file=flavors.conf sdk_config=libremesh.sdk.config sdk_install_packages="libustream-openssl firewall luci-app-bmx7" sdk_install_repos="libremesh libremap limeui" +sdk_compile_repos="" remote_pkg_repos="libremesh.repositories.conf" default_flavor="lime_default" targets_list=targets.list