All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] unshallow-repositories: Fix for 64-bit nativesdk
@ 2015-10-09 13:47 Jacob Stiffler
  2015-10-13 17:21 ` Denys Dmytriyenko
  0 siblings, 1 reply; 5+ messages in thread
From: Jacob Stiffler @ 2015-10-09 13:47 UTC (permalink / raw)
  To: meta-arago

* Use SDKMACHINE to obtain the location of the nativesdk git
  executable.

Signed-off-by: Jacob Stiffler <j-stiffler@ti.com>
---
 .../unshallow-repositories/unshallow-repositories.sh                 | 2 +-
 .../unshallow-repositories/unshallow-repositories_1.0.bb             | 5 ++++-
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/meta-arago-distro/recipes-tisdk/unshallow-repositories/unshallow-repositories/unshallow-repositories.sh b/meta-arago-distro/recipes-tisdk/unshallow-repositories/unshallow-repositories/unshallow-repositories.sh
index f20a9b5..61bdb88 100755
--- a/meta-arago-distro/recipes-tisdk/unshallow-repositories/unshallow-repositories/unshallow-repositories.sh
+++ b/meta-arago-distro/recipes-tisdk/unshallow-repositories/unshallow-repositories/unshallow-repositories.sh
@@ -35,7 +35,7 @@
 install_dir="__SDK_INSTALL_DIR__"
 
 # Find git binary within the host native bin directory
-sdk_git_bin="$install_dir/linux-devkit/sysroots/i*/usr/bin/git"
+sdk_git_bin="$install_dir/linux-devkit/sysroots/__SDKMACHINE__*/usr/bin/git"
 sdk_git_bin=`which $sdk_git_bin`
 
 if [ "$sdk_git_bin" = "" ]
diff --git a/meta-arago-distro/recipes-tisdk/unshallow-repositories/unshallow-repositories_1.0.bb b/meta-arago-distro/recipes-tisdk/unshallow-repositories/unshallow-repositories_1.0.bb
index f1ea414..12fd4f2 100644
--- a/meta-arago-distro/recipes-tisdk/unshallow-repositories/unshallow-repositories_1.0.bb
+++ b/meta-arago-distro/recipes-tisdk/unshallow-repositories/unshallow-repositories_1.0.bb
@@ -4,12 +4,15 @@ LIC_FILES_CHKSUM = "file://../unshallow-repositories.sh;beginline=3;endline=19;m
 
 SRC_URI = "file://unshallow-repositories.sh"
 
-PR = "r0"
+PR = "r1"
 
 do_install () {
     install -d ${D}/
     install -d ${D}/bin
     install -m 0755 ${WORKDIR}/unshallow-repositories.sh ${D}/bin
+
+    sed -i -e "s|__SDKMACHINE__|${SDKMACHINE}|g" \
+        ${D}/bin/unshallow-repositories.sh
 }
 
 FILES_${PN} = "/*"
-- 
1.9.1



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

end of thread, other threads:[~2015-10-15 12:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-09 13:47 [PATCH] unshallow-repositories: Fix for 64-bit nativesdk Jacob Stiffler
2015-10-13 17:21 ` Denys Dmytriyenko
2015-10-13 18:23   ` Jacob Stiffler
2015-10-14 17:30     ` Denys Dmytriyenko
2015-10-15 12:31       ` Jacob Stiffler

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.