mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-19 09:54:15 +01:00
Makefile: add build-info target (for CI builds)
This commit is contained in:
parent
5e20705347
commit
e09705d604
9
Makefile
9
Makefile
@ -980,3 +980,12 @@ package:
|
||||
.PHONY: package_resources
|
||||
package_resources:
|
||||
$(V1) cd package && $(MAKE) --no-print-directory opfw_resource
|
||||
|
||||
.PHONY: build-info
|
||||
build-info:
|
||||
$(V1) mkdir -p $(BUILD_DIR)
|
||||
$(V1) python $(ROOT_DIR)/make/scripts/version-info.py \
|
||||
--path=$(ROOT_DIR) \
|
||||
--uavodir=$(ROOT_DIR)/shared/uavobjectdefinition \
|
||||
--template="make/templates/$@.txt" \
|
||||
--outfile="$(BUILD_DIR)/$@.txt"
|
||||
|
@ -403,10 +403,12 @@ string given.
|
||||
FWTAG = xtrim(r.tag(r.branch('unreleased')), r.dirty(), 25),
|
||||
UNIXTIME = r.time(),
|
||||
DATE = r.time('%Y%m%d'),
|
||||
DAY=r.time('%d'),
|
||||
MONTH=r.time('%m'),
|
||||
YEAR=r.time('%Y'),
|
||||
DATETIME = r.time('%Y%m%d %H:%M'),
|
||||
DAY = r.time('%d'),
|
||||
MONTH = r.time('%m'),
|
||||
YEAR = r.time('%Y'),
|
||||
HOUR = r.time('%H'),
|
||||
MINUTE = r.time('%M'),
|
||||
BOARD_TYPE = args.type,
|
||||
BOARD_REVISION = args.revision,
|
||||
SHA1 = sha1(args.image),
|
||||
|
33
make/templates/build-info.txt
Normal file
33
make/templates/build-info.txt
Normal file
@ -0,0 +1,33 @@
|
||||
#
|
||||
# This is an automatic software build created by the OpenPilot CI build server.
|
||||
# It comes absolutely with no warranty. Use it at your own risk and be careful.
|
||||
#
|
||||
# Officially released OpenPilot software can be downloaded from:
|
||||
# http://wiki.openpilot.org/display/BUILDS/OpenPilot+Software+Downloads
|
||||
#
|
||||
# Built from: ${ORIGIN}
|
||||
# Git tag/branch: ${TAG_OR_BRANCH}
|
||||
# Git hash: ${HASH8}${DIRTY}
|
||||
# Git date/time: ${DATETIME}
|
||||
# Version label: ${LABEL}
|
||||
#
|
||||
|
||||
ORIGIN='${ORIGIN}'
|
||||
REVISION='${REVISION}'
|
||||
HASH='${HASH}'
|
||||
UAVOSHA1='${UAVOSHA1TXT}'
|
||||
LABEL='${LABEL}'
|
||||
TAG='${TAG}'
|
||||
TAG_OR_BRANCH='${TAG_OR_BRANCH}'
|
||||
TAG_OR_HASH8='${TAG_OR_HASH8}'
|
||||
HASH8='${HASH8}'
|
||||
FWTAG='${FWTAG}'
|
||||
UNIXTIME='${UNIXTIME}'
|
||||
DATETIME='${DATETIME}'
|
||||
DATE='${DATE}'
|
||||
DAY='${DAY}'
|
||||
MONTH='${MONTH}'
|
||||
YEAR='${YEAR}'
|
||||
HOUR='${HOUR}'
|
||||
MINUTE='${MINUTE}'
|
||||
DIRTY='${DIRTY}'
|
Loading…
x
Reference in New Issue
Block a user