All of lore.kernel.org
 help / color / mirror / Atom feed
* [fsl-community-bsp-platform][PATCH] default.xml: Keep sources/base files in sync automatically
@ 2016-11-14 16:43 Tom Hochstein
  2016-11-14 16:43 ` [base][PATCH] setup-environment: " Tom Hochstein
  0 siblings, 1 reply; 2+ messages in thread
From: Tom Hochstein @ 2016-11-14 16:43 UTC (permalink / raw)
  To: meta-freescale

Currently sources/base/setup-environment tries to keep the
files in sources/base in sync with the files copied by the
manifest. When the files do get out of sync, the script fails
with an error message that many users will not understand.

We avoid the sync issue by linking to the files.

Change-Id: I2a4ace7aa65146bfc5decf5d4baab519e68e575b
Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
---
 default.xml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/default.xml b/default.xml
index 709d1ae..0585342 100644
--- a/default.xml
+++ b/default.xml
@@ -13,8 +13,8 @@
   <project remote="oe" revision="master" name="meta-openembedded" path="sources/meta-openembedded"/>
 
   <project remote="freescale" revision="master" name="fsl-community-bsp-base" path="sources/base">
-	<copyfile dest="README" src="README"/>
-	<copyfile dest="setup-environment" src="setup-environment"/>
+	<linkfile dest="README" src="README"/>
+	<linkfile dest="setup-environment" src="setup-environment"/>
   </project>
 
   <project remote="freescale" revision="master" name="meta-freescale-3rdparty" path="sources/meta-freescale-3rdparty"/>
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [base][PATCH] setup-environment: Keep sources/base files in sync automatically
  2016-11-14 16:43 [fsl-community-bsp-platform][PATCH] default.xml: Keep sources/base files in sync automatically Tom Hochstein
@ 2016-11-14 16:43 ` Tom Hochstein
  0 siblings, 0 replies; 2+ messages in thread
From: Tom Hochstein @ 2016-11-14 16:43 UTC (permalink / raw)
  To: meta-freescale

Currently setup-environment tries to keep the files in sources/base
in sync with the files copied by the manifest. When the files do
get out of sync, the script fails with an error message that many
users will not understand.

We avoid the sync issue in the manifest by linking to the files.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
---
 setup-environment | 19 -------------------
 1 file changed, 19 deletions(-)

diff --git a/setup-environment b/setup-environment
index a04ffae..9a3bdc2 100755
--- a/setup-environment
+++ b/setup-environment
@@ -135,25 +135,6 @@ if [ -e $PWD/sources/oe-core ]; then
     OEROOT=$PWD/sources/oe-core
 fi
 
-# Ensure all files in sources/base are kept in sync with project root
-updated=
-for f in $CWD/sources/base/*; do
-    file="$(basename $f)"
-    if [ "$file" = "conf" ] || echo $file | grep -q '~$'; then
-        continue
-    fi
-
-    if ! cmp -s "$file" "$f"; then
-        updated="true"
-        [ -e $file ] && chmod u+w $file
-        cp $f $file
-    fi
-done
-if [ "$updated" = "true" ]; then
-    echo "The project root content has been updated. Please run '$PROGNAME' again."
-    return
-fi
-
 . $OEROOT/oe-init-build-env $CWD/$1 > /dev/null
 
 # if conf/local.conf not generated, no need to go further
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-11-15  2:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-14 16:43 [fsl-community-bsp-platform][PATCH] default.xml: Keep sources/base files in sync automatically Tom Hochstein
2016-11-14 16:43 ` [base][PATCH] setup-environment: " Tom Hochstein

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.