summaryrefslogtreecommitdiffstats
path: root/classes
diff options
context:
space:
mode:
Diffstat (limited to 'classes')
-rw-r--r--classes/consistent_timestamps.bbclass27
-rw-r--r--classes/internal-build.bbclass1
-rw-r--r--classes/remove-libtool.bbclass11
3 files changed, 38 insertions, 1 deletions
diff --git a/classes/consistent_timestamps.bbclass b/classes/consistent_timestamps.bbclass
new file mode 100644
index 0000000..e82f77c
--- /dev/null
+++ b/classes/consistent_timestamps.bbclass
@@ -0,0 +1,27 @@
1##############################################################################
2##
3## Copyright (C) 2016 The Qt Company Ltd.
4## Contact: http://www.qt.io/licensing/
5##
6## This file is part of the Boot to Qt meta layer.
7##
8## $QT_BEGIN_LICENSE:COMM$
9##
10## Commercial License Usage
11## Licensees holding valid commercial Qt licenses may use this file in
12## accordance with the commercial license agreement provided with the
13## Software or, alternatively, in accordance with the terms contained in
14## a written agreement between you and The Qt Company. For licensing terms
15## and conditions see http://www.qt.io/terms-conditions. For further
16## information use the contact form at http://www.qt.io/contact-us.
17##
18## $QT_END_LICENSE$
19##
20##############################################################################
21
22update_file_timestaps() {
23 # Update file timestamp to 0 seconds since Epoch time.
24 TZ=UTC find ${IMAGE_ROOTFS} -exec touch -h -m -t '197001010000' {} \;
25}
26
27ROOTFS_POSTINSTALL_COMMAND += "update_file_timestaps; "
diff --git a/classes/internal-build.bbclass b/classes/internal-build.bbclass
index 2a975f6..0fb28e5 100644
--- a/classes/internal-build.bbclass
+++ b/classes/internal-build.bbclass
@@ -38,7 +38,6 @@ python enable_internal_build () {
38 hg://.*/.* http://yocto-cache.ci.local/sources/ \n \ 38 hg://.*/.* http://yocto-cache.ci.local/sources/ \n \
39 osc://.*/.* http://yocto-cache.ci.local/sources/ \n \ 39 osc://.*/.* http://yocto-cache.ci.local/sources/ \n \
40 p4://.*/.* http://yocto-cache.ci.local/sources/ \n \ 40 p4://.*/.* http://yocto-cache.ci.local/sources/ \n \
41 svk://.*/.* http://yocto-cache.ci.local/sources/ \n \
42 svn://.*/.* http://yocto-cache.ci.local/sources/ \n \ 41 svn://.*/.* http://yocto-cache.ci.local/sources/ \n \
43 ") 42 ")
44} 43}
diff --git a/classes/remove-libtool.bbclass b/classes/remove-libtool.bbclass
new file mode 100644
index 0000000..0d7bd21
--- /dev/null
+++ b/classes/remove-libtool.bbclass
@@ -0,0 +1,11 @@
1# This class removes libtool .la files after do_install
2
3REMOVE_LIBTOOL_LA ?= "1"
4
5remove_libtool_la() {
6 if [ "${REMOVE_LIBTOOL_LA}" != "0" ]; then
7 find "${D}" -ignore_readdir_race -name "*.la" -delete
8 fi
9}
10
11do_install[postfuncs] += "remove_libtool_la"