diff options
author | Vinicius Aquino <voa.aquino@gmail.com> | 2021-04-12 17:25:38 -0300 |
---|---|---|
committer | Otavio Salvador <otavio@ossystems.com.br> | 2021-04-13 10:16:48 -0300 |
commit | cb3020653421d46fb5308b59da1d9a1e83d99c1a (patch) | |
tree | afe7fb4dbf7f2d96ed96732791310b38799da388 /recipes-graphics | |
parent | 6e848584a5a1a5a6be6ee9bc675edf8eafbb2391 (diff) | |
download | meta-freescale-cb3020653421d46fb5308b59da1d9a1e83d99c1a.tar.gz |
weston-init: Rework uncomment function logic
Fix error "Commented setting '#use-g2d=1' not found"
when building for some imx machines.
Signed-off-by: Vinicius Aquino <voa.aquino@gmail.com>
Diffstat (limited to 'recipes-graphics')
-rw-r--r-- | recipes-graphics/wayland/weston-init.bbappend | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/recipes-graphics/wayland/weston-init.bbappend b/recipes-graphics/wayland/weston-init.bbappend index 8e590965..22ffb7ff 100644 --- a/recipes-graphics/wayland/weston-init.bbappend +++ b/recipes-graphics/wayland/weston-init.bbappend | |||
@@ -40,7 +40,7 @@ INI_UNCOMMENT_ASSIGNMENTS_append_mx8mq = " \ | |||
40 | " | 40 | " |
41 | 41 | ||
42 | uncomment() { | 42 | uncomment() { |
43 | if ! (grep "^#$1" $2); then | 43 | if ! grep -q "^#$1" $2 && ! grep -q "^$1" $2; then |
44 | bbfatal "Commented setting '#$1' not found in file $2" | 44 | bbfatal "Commented setting '#$1' not found in file $2" |
45 | fi | 45 | fi |
46 | sed -i -e 's,^#'"$1"','"$1"',g' $2 | 46 | sed -i -e 's,^#'"$1"','"$1"',g' $2 |