[yocto] Help diagnosing a build failure involving ncurses, gettext, and eglibc
McClintock Matthew-B29882
B29882 at freescale.com
Wed Nov 2 22:16:30 PDT 2011
On Thu, Nov 3, 2011 at 12:12 AM, Darren Hart <dvhart at linux.intel.com> wrote:
> I came up with the following to ensure I have a log of every bitbake
> command I run along with some useful stats. Feel free to use it or flame it:
>
>
> #!/bin/bash
> TIMESTAMP=$(date -u "+%Y%m%d%H%M%S")
> LOG=$(mktemp --suffix=".log" bb-$TIMESTAMP-XXX)
> if [ -z "$LOG" ]; then
> echo "ERROR: failed to create log file"
> exit 1
> fi
>
> (
> echo "Start: $TIMESTAMP"
> echo "========================================"
> /usr/bin/time 2>&1 -v bitbake $@
> echo "========================================"
> echo "End: $(date -u '+%Y%m%d%H%M%S')"
> ) | tee $LOG
>
> echo "Logfile: $LOG"
It would be nice if we had this as a selectable option in the bitbake
wrapper somehow and it saved off logs to tmp/bitbake/logs/ or
something appropriate.
-M
More information about the yocto
mailing list