]> code.ossystems Code Review - openembedded-core.git/commit
kernel-yocto.bbclass: Delete superfluous creation of ${S}/.git directory
authorRobert P. J. Day <rpjday@crashcourse.ca>
Fri, 20 Jul 2012 15:19:24 +0000 (11:19 -0400)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 22 Jul 2012 10:40:09 +0000 (11:40 +0100)
commitf0d318177096a7a1c7406642663ae4ce28010d12
tree28ff0363b745a467438d3181d73a380d65d8346f
parent072476bb6468d984ae3246f478fd5b3a21f7c8d6
kernel-yocto.bbclass: Delete superfluous creation of ${S}/.git directory

In do_kernel_checkout(), replace the creation of ${S}/.git with just
the creation of ${S} since the .git subdirectory is created only a few
lines later using a "mv".  Here's the original code:

  rm -rf ${S}
  mkdir -p ${S}/.git

  echo "WARNING. ${WORKDIR}/git is not a bare clone."
  echo "Ensure that the SRC_URI includes the 'bareclone=1' option."

  # we can fix up the kernel repository, but at the least the meta
  # branch must be present. The machine branch may be created later.
  mv ${WORKDIR}/git/.git ${S}    <-- See?  There it is.

There's no functional change here, it's just less confusing.

Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/kernel-yocto.bbclass