diff options
author | Bernhard Walle <bernhard@bwalle.de> | 2012-02-26 18:56:18 +0100 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2012-03-06 08:31:06 +0100 |
commit | c13c4ac2ddc6a5e2614073236c665ffe7e2e2c04 (patch) | |
tree | 02d0cb72eaca9b06a372727616e461f5a3c2bedd | |
parent | 3c94854f9057a75e46c6d3a780ab4df9ed78a104 (diff) | |
download | ptxdist-c13c4ac2ddc6a5e2614073236c665ffe7e2e2c04.tar.gz ptxdist-c13c4ac2ddc6a5e2614073236c665ffe7e2e2c04.tar.xz |
{os-release, rootfs}.make: Don't rely on GNU date
date -Iseconds is a GNU extension. Since that one is only used in two
places, don't check for GNU date but use the portable variant (format
specifiers).
Signed-off-by: Bernhard Walle <bernhard@bwalle.de>
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r-- | rules/os-release.make | 2 | ||||
-rw-r--r-- | rules/rootfs.make | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/rules/os-release.make b/rules/os-release.make index 3f413746c..eb3253553 100644 --- a/rules/os-release.make +++ b/rules/os-release.make @@ -46,7 +46,7 @@ $(STATEDIR)/os-release.targetinstall: $(PTXDIST_PTXCONFIG) $(PTXDIST_PLATFORMCON @PTXDIST_VERSION@, $(PTXDIST_VERSION_FULL)) @$(call install_replace, os-release, /etc/os-release, \ - @DATE@, $(shell date -Iseconds)) + @DATE@, $(shell date +%Y-%M-%dT%H:%M:%S%z)) @$(call install_finish,os-release) diff --git a/rules/rootfs.make b/rules/rootfs.make index 13a5f2c1c..ed30235f9 100644 --- a/rules/rootfs.make +++ b/rules/rootfs.make @@ -185,7 +185,7 @@ ifdef PTXCONF_ROOTFS_ISSUE @$(call install_replace, rootfs, /etc/issue, \ @EXTRAVERSION@, $(PTXDIST_VERSION_SCM)) @$(call install_replace, rootfs, /etc/issue, \ - @DATE@, $(shell date -Iseconds)) + @DATE@, $(shell date +%Y-%M-%dT%H:%M:%S%z)) @$(call install_replace, rootfs, /etc/issue, \ @VENDOR@, $(PTXCONF_PROJECT_VENDOR)) @$(call install_replace, rootfs, /etc/issue, \ |