All of lore.kernel.org
 help / color / mirror / Atom feed
* linux-qoriq, scmversion: do_configure_prepend() causes error with master...
@ 2015-01-02  4:15 Bob Cochran
  2015-01-02 11:40 ` Otavio Salvador
  0 siblings, 1 reply; 2+ messages in thread
From: Bob Cochran @ 2015-01-02  4:15 UTC (permalink / raw)
  To: meta-freescale@yoctoproject.org

Hi,

Inside linux-qoriq.inc:do_configure_prepend() there is a section that 
builds an scmversion string and writes it to ${S}/.scmversion.

The section of script assumes it's in the source directory and executes 
'git rev-parse --verify --short HEAD' to get the SHA, but this fails and 
the baking abruptly comes to an end.

With a 3.12 kernel, do we need to worry about manually generating an 
scmversion string?  Looking at the default config, LOCALVERSION_AUTO is 
enabled.

However, my generated kernel after I removed the scmversion generation 
logic from do_configure_prepend() didn't show the -gxxxxxxxx suffix when 
I ran uname.  So, it's not clear to me whether this kernel feature is 
broken by the environment.

In summary, I think linux-qoriq.inc needs a patch to 
do_configure_prepend(), but I'm not sure what's actually needed.  In the 
the interim, I'm using a modified linux-qoriq.inc as shown below.

Thanks

Bob


@@ -28,17 +28,6 @@ do_configure_prepend() {
                             ${S}/arch/powerpc/configs/${deltacfg}
                 fi
         done
-
-    #add git revision to the local version
-    if [ "${SCMVERSION}" = "y" ]; then
-            # append sdk version if SDK_VERSION is defined
-            sdkversion=''
-            if [ -n "${SDK_VERSION}" ]; then
-                sdkversion="-${SDK_VERSION}"
-            fi
-            head=`git rev-parse --verify --short HEAD 2> /dev/null`
-            printf "%s%s%s" $sdkversion +g $head > ${S}/.scmversion
-    fi
  }

  # make everything compatible for the time being



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

end of thread, other threads:[~2015-01-02 11:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-02  4:15 linux-qoriq, scmversion: do_configure_prepend() causes error with master Bob Cochran
2015-01-02 11:40 ` Otavio Salvador

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.