From 4385b6e36cd409a787827a5d5ff2e8e943d7a902 Mon Sep 17 00:00:00 2001 From: Koen Kooi Date: Tue, 15 Mar 2011 18:50:50 +0100 Subject: [PATCH] ti-local-power-manager: avoid parse errors when variables aren't defined This fixes: ERROR: Error parsing /home/kraj/work/setup-scripts/sources/angstrom-layers/BSP/TI/recipes-ti/local-power-manager/ti-local-power-manager_1.24.02.09.bb: LexToken(PIPE,'|',0,0) followed by: LexToken(TOKEN,'sed',0,0) LexToken(TOKEN,'s:\\\\.:_:g',0,0) ERROR: Command execution failed: Exited with 1 As reported by Khem Raj Signed-off-by: Koen Kooi --- recipes-ti/local-power-manager/ti-local-power-manager.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/recipes-ti/local-power-manager/ti-local-power-manager.inc b/recipes-ti/local-power-manager/ti-local-power-manager.inc index 836e1181..6b2e3437 100644 --- a/recipes-ti/local-power-manager/ti-local-power-manager.inc +++ b/recipes-ti/local-power-manager/ti-local-power-manager.inc @@ -26,11 +26,11 @@ DEPENDS += "virtual/kernel" LPMDSPPOWERSOC_omap3 = "omap3530" LPMDSPPOWERSOC_dm6446 = "dm6446" -LPMDSPPOWERSOC ?= "" +LPMDSPPOWERSOC ?= "UNDEFINED_LPMDSPPOWERSOC" XDC_PLATFORM_dm6446 = "ti.platforms.evmDM6446" XDC_PLATFORM_omap3 = "ti.platforms.evm3530" -XDC_PLATFORM ?= "" +XDC_PLATFORM ?= "UNDEFINED_XDC_PLATFORM" do_configure () { @@ -100,7 +100,7 @@ do_install () { # Install the Utilities install -d ${D}/${installdir}/ti-lpm-utils - install -m 0755 ${S}/packages/ti/bios/power/utils/bin/$(echo ${XDC_PLATFORM} | sed s:\\.:_:g)/linux/release/* ${D}/${installdir}/ti-lpm-utils + install -m 0755 ${S}/packages/ti/bios/power/utils/bin/$(echo ${XDC_PLATFORM} | tr . _)/linux/release/* ${D}/${installdir}/ti-lpm-utils # Install/Stage the Source Tree install -d ${D}${LPM_INSTALL_DIR_RECIPE}