Dear All

As mentioned on [1] I downloaded a makefile to which I will refer in this
post. For me the following part of the makefile seems to not work properly
(invoked when typing "make setup-shr-chroot-32bit").

BRANCH_CHROOT_32BIT = 32bit
URL_SHR_CHROOT = "git://git.shr-project.org/shr-chroot.git"

.PHONY: setup-shr-chroot-32bit
.PRECIOUS: shr-chroot-32bit/.git/config-32bit
setup-shr-chroot-32bit shr-chroot-32bit/.git/config-32bit:
[ -e shr-chroot-32bit/.git/config-32bit ] || \
( echo "setting up shr-chroot-32bit ..."; \
  git clone --no-checkout --depth 1 ${URL_SHR_CHROOT} shr-chroot-32bit; \
  cd shr-chroot-32bit; \
  git checkout ${BRANCH_CHROOT_32BIT} 2>/dev/null || \
  git checkout --no-track -b ${BRANCH_CHROOT_32BIT}
origin/${BRANCH_CHROOT_32BIT} ; \
  git reset --hard origin/${BRANCH_CHROOT_32BIT}; \
  sed -i "s#bitbake:x:1026:1026::/OE:/bin/bash#bitbake:x:`id -u`:`id
-g`::/OE:/bin/bash#g" etc/passwd; \
  sed -i "s#bitbake:x:1026:bitbake#bitbake:x:`id -g`:bitbake#g" etc/group; \
)
mv Makefile shr-chroot-32bit/OE/Makefile
touch shr-chroot-32bit/.git/config-32bit
echo "Now run shr-chroot.sh in shr-chroot-32bit as ROOT to switch to new
SHR chroot environment"

Now, "git clone --no-checkout --depth 1 git://
git.shr-project.org/shr-chroot.git shr-chroot-32bit" works fine. Next,
"git checkout 32bit" says: "error: pathspec '32bit' did not match any
file(s) known to git." Next,
"git checkout --no-track -b 32bit origin/32bit" says: "fatal: git checkout:
updating paths is incompatible with switching branches.
Did you intend to checkout 'origin/32bit' which can not be resolved as
commit?"

"git branch -a" says
* master
  remotes/origin/HEAD -> origin/master
  remotes/origin/master

"git branch -r" says
  origin/HEAD -> origin/master
  origin/master

Does anyone has an idea what could be wrong on that part of the makefile?

Kind regards

Sam

[1] http://shr-project.org/trac/wiki/Building_SHR_with_chroot

<http://shr-project.org/trac/wiki/Building_SHR_with_chroot>--
Samuel Bächler
Obere Bläsistrasse 1
8049 Zürich

Web: boeser.ch
Tel:   +41(0)43 817 46 28
Mob: +41(0)79 478 49 42
_______________________________________________
Shr-devel mailing list
Shr-devel@lists.shr-project.org
http://lists.shr-project.org/mailman/listinfo/shr-devel

Reply via email to