From 47f52315e12511e589c171a9d377077923983be5 Mon Sep 17 00:00:00 2001 From: Graham Gower Date: Mon, 9 Aug 2010 21:13:17 +0000 Subject: task-boot.bb: Don't pull in u-a if ONLINE_PACKAGE_MANAGEMENT="none". This makes it possible to build an opkgless system, without having to set DISTRO_UPDATE_ALTERNATIVES. In the unlikely event that someone doesn't want opkg, but does want update-alternatives, one can set DISTRO_UPDATE_ALTERNATIVES in the local.conf. Signed-off-by: Graham Gower Signed-off-by: Khem Raj --- recipes/tasks/task-boot.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/tasks/task-boot.bb b/recipes/tasks/task-boot.bb index 45d50ef672..d193393875 100644 --- a/recipes/tasks/task-boot.bb +++ b/recipes/tasks/task-boot.bb @@ -17,7 +17,7 @@ MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS ?= "" # u-a script used for building image which is defined with # PREFERRED_PROVIDER_virtual/update-alternatives-native -DISTRO_UPDATE_ALTERNATIVES ?= "${PREFERRED_PROVIDER_virtual/update-alternatives}" +DISTRO_UPDATE_ALTERNATIVES ?= "${@base_conditional("ONLINE_PACKAGE_MANAGEMENT", "none", "", "${PREFERRED_PROVIDER_virtual/update-alternatives}", d)}" # Make sure we build the kernel DEPENDS = "virtual/kernel" -- cgit 1.2.3-korg