~matthew-gretton-dann/cbuild/replace-dash-with-underscore

« back to all changes in this revision

Viewing changes to lib/build.mk

  • Committer: Paul Sokolovsky
  • Date: 2013-01-24 12:43:06 UTC
  • mfrom: (446.1.10 cbuild.cbuild-lava2)
  • Revision ID: paul.sokolovsky@linaro.org-20130124124306-s2mmyo49a1xou6v0
[merge] Changes to support LAVA integration.

Includes: making builds more verbose (to stdout) to make realtime LAVA builds
monitoring possible, allow to disable native CBuild publishing/notifications,
and providing specific config for LAVA build slaves.

Show diffs side-by-side

added added

removed removed

Lines of Context:
63
63
%/notify.stamp:
64
64
        mkdir -p $(@D)
65
65
        touch $@
 
66
ifeq ($(NONOTIFY),)
66
67
        $(MAKE) -f $(LIBDIR)/build.mk $*/notify.body B=$(@D)
67
68
        mkdir -p $(@D)
68
69
        echo "[cbuild] $${BTOP:-$(@D)} $(CONFIG_NAME) completed" > $@.subject
69
70
        # Change the subject if anything failed
70
71
        [ -z "$$(ls $(@D)/*failed.txt)" ] || echo "[cbuild] Failed: $${BTOP:-$(@D)} $(CONFIG_NAME) failed" > $@.subject
71
72
        cat $*/notify.body | sendemail -q -f "$(NOTIFY_FROM)" -t "$(NOTIFY_ALWAYS)" -u "`cat $@.subject`" -s $(SMTP_HOST) $(SMTP_AUTH)
 
73
endif
72
74
 
73
75
%/notify.body:
74
76
        mkdir -p $(@D)