libcamera/utils
Zach DeCook a61241eb8b utils: gen-version: Use posix compliant date
The version string of libcamera is presently appended with a date/time
argument in the case of a dirty tree to show further detail of when it
was built. This string is generated with the iso-8601 parameter to
'date' and produces a date string in the form:
"2024-06-17T22:15:30+01:00"

Strict posix shells or implementations of 'date' which may be optimised
for size such as the one provided by busybox or Alpine Linux may not
support the '--iso-8601' flag.

To support builds on those platforms, use a direct POSIX-compliant
date-format string instead matching as closely as possible to the
iso-8601 definition.

An exact match is not possible with those restrictions so 'date
%Y-%m-%dT%H:%M:%S%Z' is used which produces 2024-06-17T22:15:30BST.

The use of the human readable timezone identifier provides a friendlier
output for the string than a timezone offset at the expense of being
less sortable in the exceptionally low risk and unlikely event of two
custom builds being compared at the same time of different timezones.

Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Zach DeCook <zachdecook@librem.one>
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
2024-07-25 09:57:54 +01:00
..
hooks hooks: pre-push: Disable interpretation of escape sequences 2024-01-09 15:39:04 +00:00
ipc libcamera: Drop file name from header comment blocks in templates 2024-05-09 23:31:14 +03:00
ipu3 libcamera: Drop file name from header comment blocks 2024-05-08 22:39:50 +03:00
raspberrypi utils: raspberrypi: ctt: Add a maximum gain parameter for LSC 2024-06-13 11:02:39 +01:00
rkisp1 libcamera: Drop remaining file name from header comment blocks 2024-05-09 23:31:15 +03:00
tracepoints libcamera: Drop file name from header comment blocks 2024-05-08 22:39:50 +03:00
tuning libtuning: agc: rkisp1: Increase y-target 2024-07-05 22:38:20 +02:00
abi-compat.sh utils: ABI Compatibility checker 2023-07-04 20:25:10 +01:00
checkstyle.py utils: checkstyle.py: Show location of coding style issue within line 2024-05-31 20:07:12 +03:00
gen-controls.py libcamera: Drop file name from header comment blocks 2024-05-08 22:39:50 +03:00
gen-formats.py libcamera: Drop file name from header comment blocks 2024-05-08 22:39:50 +03:00
gen-header.sh libcamera: Drop file name from header comment blocks in templates 2024-05-09 23:31:14 +03:00
gen-ipa-priv-key.sh libcamera: Drop file name from header comment blocks 2024-05-08 22:39:50 +03:00
gen-ipa-pub-key.py libcamera: Drop remaining file name from header comment blocks 2024-05-09 23:31:15 +03:00
gen-version.sh utils: gen-version: Use posix compliant date 2024-07-25 09:57:54 +01:00
meson.build README, meson: Add dependency on ply and jinja2 for IPA interface generation 2020-11-11 19:23:16 +09:00
release.sh utils: Provide a release script 2022-10-13 12:40:24 +01:00
run-dist.sh build: Preserve upstream git versioning using meson dist 2021-10-19 13:14:54 +03:00
semver utils: semver: Add version helper 2022-10-13 12:40:23 +01:00
update-kernel-headers.sh update-kernel-headers: Add linux/udmabuf.h to headers to sync 2024-06-03 12:14:33 +03:00
update-mojo.sh utils: update-mojo.sh: Commit the mojo update 2024-01-09 15:39:05 +00:00