]> git.kernelconcepts.de Git - meta-kc-bsp.git/blobdiff - setup-environment
Fix sed regex rule to replace (exactly) MACHINE with value from environment
[meta-kc-bsp.git] / setup-environment
index 672929c99aadd011f0dc0539507816ebdcc57ffc..59df53de20a8d273903d537b1f0aa0a6478cfb19 100755 (executable)
@@ -163,7 +163,7 @@ if [ "$build_dir_setup_enabled" = "true" ]; then
 DL_DIR ?= "\${BSPDIR}/downloads/"
 EOF
     # Change settings according environment
-    sed -e "s,MACHINE ?=.*,MACHINE ?= '$MACHINE',g" \
+    sed -e "s,^ *MACHINE ?=.*,MACHINE ?= '$MACHINE',g" \
         -e "s,DISTRO ?=.*,DISTRO ?= '$DISTRO',g" \
         -i conf/local.conf