summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes/distrodata.bbclass158
-rw-r--r--meta/conf/distro/include/private/distro_base_utils_1.inc6
-rw-r--r--meta/conf/distro/include/private/distro_fix.inc4
-rw-r--r--meta/conf/distro/include/private/distro_misc.inc12
-rw-r--r--meta/conf/distro/include/private/distro_x11_core.inc5
5 files changed, 171 insertions, 14 deletions
diff --git a/meta/classes/distrodata.bbclass b/meta/classes/distrodata.bbclass
new file mode 100644
index 0000000000..86a614a01e
--- /dev/null
+++ b/meta/classes/distrodata.bbclass
@@ -0,0 +1,158 @@
1
2require conf/distro/include/distro_tracking_fields.inc
3
4addtask distrodata_np
5do_distrodata_np[nostamp] = "1"
6python do_distrodata_np() {
7
8 localdata = bb.data.createCopy(d)
9 pn = bb.data.getVar("PN", d, True)
10 bb.note("Package Name: %s" % pn)
11
12 if pn.find("-native") != -1:
13 pnstripped = pn.split("-native")
14 bb.note("Native Split: %s" % pnstripped)
15 bb.data.setVar('OVERRIDES', "pn-" + pnstripped[0] + ":" + bb.data.getVar('OVERRIDES', d, True), localdata)
16 bb.data.update_data(localdata)
17
18 if pn.find("-cross") != -1:
19 pnstripped = pn.split("-cross")
20 bb.note("cross Split: %s" % pnstripped)
21 bb.data.setVar('OVERRIDES', "pn-" + pnstripped[0] + ":" + bb.data.getVar('OVERRIDES', d, True), localdata)
22 bb.data.update_data(localdata)
23
24 if pn.find("-initial") != -1:
25 pnstripped = pn.split("-initial")
26 bb.note("initial Split: %s" % pnstripped)
27 bb.data.setVar('OVERRIDES', "pn-" + pnstripped[0] + ":" + bb.data.getVar('OVERRIDES', d, True), localdata)
28 bb.data.update_data(localdata)
29
30 """generate package information from .bb file"""
31 pname = bb.data.getVar('PN', localdata, True)
32 pcurver = bb.data.getVar('PV', localdata, True)
33 pdesc = bb.data.getVar('DESCRIPTION', localdata, True)
34 pgrp = bb.data.getVar('SECTION', localdata, True)
35 plicense = bb.data.getVar('LICENSE', localdata, True).replace(',','_')
36 if bb.data.getVar('LIC_FILES_CHKSUM', localdata, True):
37 pchksum="1"
38 else:
39 pchksum="0"
40
41 if bb.data.getVar('RECIPE_STATUS', localdata, True):
42 hasrstatus="1"
43 else:
44 hasrstatus="0"
45
46 rstatus = bb.data.getVar('RECIPE_STATUS', localdata, True)
47
48 pupver = bb.data.getVar('RECIPE_LATEST_VERSION', localdata, True)
49 if pcurver == pupver:
50 vermatch="1"
51 else:
52 vermatch="0"
53
54 noupdate_reason = bb.data.getVar('RECIPE_NO_UPDATE_REASON', localdata, True)
55 if noupdate_reason is None:
56 noupdate="0"
57 else:
58 noupdate="1"
59
60 ris = bb.data.getVar('RECIPE_INTEL_SECTION', localdata, True)
61 maintainer = bb.data.getVar('RECIPE_MAINTAINER', localdata, True)
62 rttr = bb.data.getVar('RECIPE_TIME_BETWEEN_LAST_TWO_RELEASES', localdata, True)
63 rlrd = bb.data.getVar('RECIPE_LATEST_RELEASE_DATE', localdata, True)
64 dc = bb.data.getVar('DEPENDENCY_CHECK', localdata, True)
65 rc = bb.data.getVar('RECIPE_COMMENTS', localdata, True)
66
67 bb.note("DISTRO: %s,%s,%s,%s,%s,%s,%s,%s, %s, %s, %s\n" % \
68 (pname, maintainer, plicense, pchksum, hasrstatus, vermatch, pcurver, pupver, noupdate, noupdate_reason, rstatus))
69}
70
71addtask distrodata
72do_distrodata[nostamp] = "1"
73python do_distrodata() {
74 """initialize log files."""
75 logpath = bb.data.getVar('LOG_DIR', d, 1)
76 bb.utils.mkdirhier(logpath)
77 logfile = os.path.join(logpath, "distrodata.%s.csv" % bb.data.getVar('DATETIME', d, 1))
78 if not os.path.exists(logfile):
79 slogfile = os.path.join(logpath, "distrodata.csv")
80 if os.path.exists(slogfile):
81 os.remove(slogfile)
82 os.system("touch %s" % logfile)
83 os.symlink(logfile, slogfile)
84
85 localdata = bb.data.createCopy(d)
86 pn = bb.data.getVar("PN", d, True)
87 bb.note("Package Name: %s" % pn)
88
89 if pn.find("-native") != -1:
90 pnstripped = pn.split("-native")
91 bb.note("Native Split: %s" % pnstripped)
92 bb.data.setVar('OVERRIDES', "pn-" + pnstripped[0] + ":" + bb.data.getVar('OVERRIDES', d, True), localdata)
93 bb.data.update_data(localdata)
94
95 if pn.find("-cross") != -1:
96 pnstripped = pn.split("-cross")
97 bb.note("cross Split: %s" % pnstripped)
98 bb.data.setVar('OVERRIDES', "pn-" + pnstripped[0] + ":" + bb.data.getVar('OVERRIDES', d, True), localdata)
99 bb.data.update_data(localdata)
100
101 if pn.find("-initial") != -1:
102 pnstripped = pn.split("-initial")
103 bb.note("initial Split: %s" % pnstripped)
104 bb.data.setVar('OVERRIDES', "pn-" + pnstripped[0] + ":" + bb.data.getVar('OVERRIDES', d, True), localdata)
105 bb.data.update_data(localdata)
106
107 """generate package information from .bb file"""
108 pname = bb.data.getVar('PN', localdata, True)
109 pcurver = bb.data.getVar('PV', localdata, True)
110 pdesc = bb.data.getVar('DESCRIPTION', localdata, True)
111 pgrp = bb.data.getVar('SECTION', localdata, True)
112 plicense = bb.data.getVar('LICENSE', localdata, True).replace(',','_')
113 if bb.data.getVar('LIC_FILES_CHKSUM', localdata, True):
114 pchksum="1"
115 else:
116 pchksum="0"
117
118 if bb.data.getVar('RECIPE_STATUS', localdata, True):
119 hasrstatus="1"
120 else:
121 hasrstatus="0"
122
123 rstatus = bb.data.getVar('RECIPE_STATUS', localdata, True)
124
125 pupver = bb.data.getVar('RECIPE_LATEST_VERSION', localdata, True)
126 if pcurver == pupver:
127 vermatch="1"
128 else:
129 vermatch="0"
130
131 noupdate_reason = bb.data.getVar('RECIPE_NO_UPDATE_REASON', localdata, True)
132 if noupdate_reason is None:
133 noupdate="0"
134 else:
135 noupdate="1"
136
137 ris = bb.data.getVar('RECIPE_INTEL_SECTION', localdata, True)
138 maintainer = bb.data.getVar('RECIPE_MAINTAINER', localdata, True)
139 rttr = bb.data.getVar('RECIPE_TIME_BETWEEN_LAST_TWO_RELEASES', localdata, True)
140 rlrd = bb.data.getVar('RECIPE_LATEST_RELEASE_DATE', localdata, True)
141 dc = bb.data.getVar('DEPENDENCY_CHECK', localdata, True)
142 rc = bb.data.getVar('RECIPE_COMMENTS', localdata, True)
143
144 lf = bb.utils.lockfile(logfile + ".lock")
145 f = open(logfile, "a")
146 f.write("%s,%s,%s,%s,%s,%s,%s,%s, %s, %s, %s\n" % \
147 (pname, maintainer, plicense, pchksum, hasrstatus, vermatch, pcurver, pupver, noupdate, noupdate_reason, rstatus))
148 f.close()
149 bb.utils.unlockfile(lf)
150}
151
152addtask distrodataall after do_distrodata
153do_distrodataall[recrdeptask] = "do_distrodata"
154do_distrodataall[nostamp] = "1"
155do_distrodataall() {
156 :
157}
158
diff --git a/meta/conf/distro/include/private/distro_base_utils_1.inc b/meta/conf/distro/include/private/distro_base_utils_1.inc
index e3a24188ae..d9facb9bac 100644
--- a/meta/conf/distro/include/private/distro_base_utils_1.inc
+++ b/meta/conf/distro/include/private/distro_base_utils_1.inc
@@ -1,6 +1,6 @@
1RECIPE_STATUS_pn-dbus-wait = "green" 1RECIPE_STATUS_pn-dbus-wait = "green"
2DEPENDENCY_CHECK_pn-dbus-wait = "not done" 2DEPENDENCY_CHECK_pn-dbus-wait = "not done"
3RECIPE_LATEST_VERSION_pn-dbus-wait = "0.0+svnr426" 3RECIPE_LATEST_VERSION_pn-dbus-wait = "402"
4RECIPE_INTEL_SECTION_pn-dbus-wait = "base utils" 4RECIPE_INTEL_SECTION_pn-dbus-wait = "base utils"
5RECIPE_TIME_BETWEEN_LAST_TWO_RELEASES_pn-dbus-wait = "n/a" 5RECIPE_TIME_BETWEEN_LAST_TWO_RELEASES_pn-dbus-wait = "n/a"
6RECIPE_LATEST_RELEASE_DATE_pn-dbus-wait = "08/2008" 6RECIPE_LATEST_RELEASE_DATE_pn-dbus-wait = "08/2008"
@@ -21,7 +21,7 @@ RECIPE_MAINTAINER_pn-e2fsprogs = "Kevin Tian <kevin.tian@intel.com>"
21 21
22RECIPE_STATUS_pn-initramfs-boot = "green" 22RECIPE_STATUS_pn-initramfs-boot = "green"
23DEPENDENCY_CHECK_pn-initramfs-boot = "not done" 23DEPENDENCY_CHECK_pn-initramfs-boot = "not done"
24RECIPE_LATEST_VERSION_pn-initramfs-boot = "1.0" # dummy for local files 24RECIPE_LATEST_VERSION_pn-initramfs-boot = "1.0"
25RECIPE_PATCH_pn-initramfs-boot+init-boot = "local" 25RECIPE_PATCH_pn-initramfs-boot+init-boot = "local"
26RECIPE_INTEL_SECTION_pn-initramfs-boot = "base utils" 26RECIPE_INTEL_SECTION_pn-initramfs-boot = "base utils"
27RECIPE_TIME_BETWEEN_LAST_TWO_RELEASES_pn-initramfs-boot = "n/a" 27RECIPE_TIME_BETWEEN_LAST_TWO_RELEASES_pn-initramfs-boot = "n/a"
@@ -371,7 +371,7 @@ RECIPE_LATEST_VERSION_pn-net-tools = "1.60-23"
371RECIPE_STATUS_pn-shadow = "green" 371RECIPE_STATUS_pn-shadow = "green"
372DEPENDENCY_CHECK_pn-shadow = "not done" 372DEPENDENCY_CHECK_pn-shadow = "not done"
373RECIPE_MAINTAINER_pn-shadow = "Kevin Tian <kevin.tian@intel.com>" 373RECIPE_MAINTAINER_pn-shadow = "Kevin Tian <kevin.tian@intel.com>"
374RECIPE_LATEST_VERSION_pn-shadow = "4.1.4.2" 374RECIPE_LATEST_VERSION_pn-shadow = "4.1.4.2-1"
375RECIPE_INTEL_SECTION_pn-shadow = "base utils" 375RECIPE_INTEL_SECTION_pn-shadow = "base utils"
376RECIPE_TIME_BETWEEN_LAST_TWO_RELEASES_pn-shadow = "2 months" 376RECIPE_TIME_BETWEEN_LAST_TWO_RELEASES_pn-shadow = "2 months"
377RECIPE_LATEST_RELEASE_DATE_pn-shadow = "07/2009" 377RECIPE_LATEST_RELEASE_DATE_pn-shadow = "07/2009"
diff --git a/meta/conf/distro/include/private/distro_fix.inc b/meta/conf/distro/include/private/distro_fix.inc
index 6d6c0c44fe..5c02567417 100644
--- a/meta/conf/distro/include/private/distro_fix.inc
+++ b/meta/conf/distro/include/private/distro_fix.inc
@@ -71,7 +71,7 @@ RECIPE_STATUS_pn-libomxil ?= "red" # not audited
71RECIPE_LATEST_VERSION_pn-libomxil ?= "0.9.2.1" 71RECIPE_LATEST_VERSION_pn-libomxil ?= "0.9.2.1"
72 72
73RECIPE_STATUS_pn-libpcre ?= "red" # not audited 73RECIPE_STATUS_pn-libpcre ?= "red" # not audited
74RECIPE_LATEST_VERSION_pn-libpcre ?= "8.1" 74RECIPE_LATEST_VERSION_pn-libpcre ?= "8.10"
75 75
76RECIPE_STATUS_pn-powertop ?= "red" # not audited 76RECIPE_STATUS_pn-powertop ?= "red" # not audited
77RECIPE_LATEST_VERSION_pn-powertop ?= "1.11" 77RECIPE_LATEST_VERSION_pn-powertop ?= "1.11"
@@ -170,7 +170,7 @@ RECIPE_STATUS_pn-pm-utils ?= "red" # not audited
170RECIPE_LATEST_VERSION_pn-pm-utils ?= "1.3.0" 170RECIPE_LATEST_VERSION_pn-pm-utils ?= "1.3.0"
171 171
172RECIPE_STATUS_pn-devicekit-power ?= "red" # not audited 172RECIPE_STATUS_pn-devicekit-power ?= "red" # not audited
173RECIPE_LATEST_VERSION_pn-devicekit-power ?= "14" 173RECIPE_LATEST_VERSION_pn-devicekit-power ?= "014"
174 174
175RECIPE_STATUS_pn-libsamplerate0 ?= "red" # not audited 175RECIPE_STATUS_pn-libsamplerate0 ?= "red" # not audited
176RECIPE_LATEST_VERSION_pn-libsamplerate0 ?= "0.1.7" 176RECIPE_LATEST_VERSION_pn-libsamplerate0 ?= "0.1.7"
diff --git a/meta/conf/distro/include/private/distro_misc.inc b/meta/conf/distro/include/private/distro_misc.inc
index 43a9a8c8a8..dd1e09feac 100644
--- a/meta/conf/distro/include/private/distro_misc.inc
+++ b/meta/conf/distro/include/private/distro_misc.inc
@@ -6,28 +6,28 @@ RECIPE_TIME_BETWEEN_LAST_TWO_RELEASES_pn-libical="8 months"
6RECIPE_MAINTAINER_pn-libical = "Dongxiao Xu <dongxiao.xu@intel.com>" 6RECIPE_MAINTAINER_pn-libical = "Dongxiao Xu <dongxiao.xu@intel.com>"
7 7
8RECIPE_STATUS_pn-task-base="green" 8RECIPE_STATUS_pn-task-base="green"
9RECIPE_LATEST_VERSION_pn-task-base="1" 9RECIPE_LATEST_VERSION_pn-task-base="1.0"
10RECIPE_NO_OF_PATCHES_pn-task-base="0" 10RECIPE_NO_OF_PATCHES_pn-task-base="0"
11RECIPE_LATEST_RELEASE_DATE_pn-task-base="n/a" 11RECIPE_LATEST_RELEASE_DATE_pn-task-base="n/a"
12RECIPE_TIME_BETWEEN_LAST_TWO_RELEASES_pn-task-base="n/a" 12RECIPE_TIME_BETWEEN_LAST_TWO_RELEASES_pn-task-base="n/a"
13RECIPE_MAINTAINER_pn-task-base = "Dongxiao Xu <dongxiao.xu@intel.com>" 13RECIPE_MAINTAINER_pn-task-base = "Dongxiao Xu <dongxiao.xu@intel.com>"
14 14
15RECIPE_STATUS_pn-task-poky-boot="green" 15RECIPE_STATUS_pn-task-poky-boot="green"
16RECIPE_LATEST_VERSION_pn-task-poky-boot="1" 16RECIPE_LATEST_VERSION_pn-task-poky-boot="1.0"
17RECIPE_NO_OF_PATCHES_pn-task-poky-boot="0" 17RECIPE_NO_OF_PATCHES_pn-task-poky-boot="0"
18RECIPE_LATEST_RELEASE_DATE_pn-task-poky-boot="n/a" 18RECIPE_LATEST_RELEASE_DATE_pn-task-poky-boot="n/a"
19RECIPE_TIME_BETWEEN_LAST_TWO_RELEASES_pn-task-poky-boot="n/a" 19RECIPE_TIME_BETWEEN_LAST_TWO_RELEASES_pn-task-poky-boot="n/a"
20RECIPE_MAINTAINER_pn-task-poky-boot = "Dongxiao Xu <dongxiao.xu@intel.com>" 20RECIPE_MAINTAINER_pn-task-poky-boot = "Dongxiao Xu <dongxiao.xu@intel.com>"
21 21
22RECIPE_STATUS_pn-task-poky-nfs="green" 22RECIPE_STATUS_pn-task-poky-nfs="green"
23RECIPE_LATEST_VERSION_pn-task-poky-nfs="1" 23RECIPE_LATEST_VERSION_pn-task-poky-nfs="1.0"
24RECIPE_NO_OF_PATCHES_pn-task-poky-nfs="0" 24RECIPE_NO_OF_PATCHES_pn-task-poky-nfs="0"
25RECIPE_LATEST_RELEASE_DATE_pn-task-poky-nfs="n/a" 25RECIPE_LATEST_RELEASE_DATE_pn-task-poky-nfs="n/a"
26RECIPE_TIME_BETWEEN_LAST_TWO_RELEASES_pn-task-poky-nfs="n/a" 26RECIPE_TIME_BETWEEN_LAST_TWO_RELEASES_pn-task-poky-nfs="n/a"
27RECIPE_MAINTAINER_pn-task-poky-nfs = "Dongxiao Xu <dongxiao.xu@intel.com>" 27RECIPE_MAINTAINER_pn-task-poky-nfs = "Dongxiao Xu <dongxiao.xu@intel.com>"
28 28
29RECIPE_STATUS_pn-task-poky-tools="green" 29RECIPE_STATUS_pn-task-poky-tools="green"
30RECIPE_LATEST_VERSION_pn-task-poky-tools="1" 30RECIPE_LATEST_VERSION_pn-task-poky-tools="1.0"
31RECIPE_NO_OF_PATCHES_pn-task-poky-tools="0" 31RECIPE_NO_OF_PATCHES_pn-task-poky-tools="0"
32RECIPE_LATEST_RELEASE_DATE_pn-task-poky-tools="n/a" 32RECIPE_LATEST_RELEASE_DATE_pn-task-poky-tools="n/a"
33RECIPE_TIME_BETWEEN_LAST_TWO_RELEASES_pn-task-poky-tools="n/a" 33RECIPE_TIME_BETWEEN_LAST_TWO_RELEASES_pn-task-poky-tools="n/a"
@@ -41,14 +41,14 @@ RECIPE_TIME_BETWEEN_LAST_TWO_RELEASES_pn-gst-meta-base="n/a"
41RECIPE_MAINTAINER_pn-gst-meta-base = "Dongxiao Xu <dongxiao.xu@intel.com>" 41RECIPE_MAINTAINER_pn-gst-meta-base = "Dongxiao Xu <dongxiao.xu@intel.com>"
42 42
43RECIPE_STATUS_pn-task-poky-apps-x11-pimlico="green" 43RECIPE_STATUS_pn-task-poky-apps-x11-pimlico="green"
44RECIPE_LATEST_VERSION_pn-task-poky-apps-x11-pimlico="1" 44RECIPE_LATEST_VERSION_pn-task-poky-apps-x11-pimlico="1.0"
45RECIPE_NO_OF_PATCHES_pn-task-poky-apps-x11-pimlico="0" 45RECIPE_NO_OF_PATCHES_pn-task-poky-apps-x11-pimlico="0"
46RECIPE_LATEST_RELEASE_DATE_pn-task-poky-apps-x11-pimlico="n/a" 46RECIPE_LATEST_RELEASE_DATE_pn-task-poky-apps-x11-pimlico="n/a"
47RECIPE_TIME_BETWEEN_LAST_TWO_RELEASES_pn-task-poky-apps-x11-pimlico="n/a" 47RECIPE_TIME_BETWEEN_LAST_TWO_RELEASES_pn-task-poky-apps-x11-pimlico="n/a"
48RECIPE_MAINTAINER_pn-task-poky-apps-x11-pimlico = "Dongxiao Xu <dongxiao.xu@intel.com>" 48RECIPE_MAINTAINER_pn-task-poky-apps-x11-pimlico = "Dongxiao Xu <dongxiao.xu@intel.com>"
49 49
50RECIPE_STATUS_pn-task-poky-x11-sato="green" 50RECIPE_STATUS_pn-task-poky-x11-sato="green"
51RECIPE_LATEST_VERSION_pn-task-poky-x11-sato="1" 51RECIPE_LATEST_VERSION_pn-task-poky-x11-sato="1.0"
52RECIPE_NO_OF_PATCHES_pn-task-poky-x11-sato="0" 52RECIPE_NO_OF_PATCHES_pn-task-poky-x11-sato="0"
53RECIPE_LATEST_RELEASE_DATE_pn-task-poky-x11-sato="n/a" 53RECIPE_LATEST_RELEASE_DATE_pn-task-poky-x11-sato="n/a"
54RECIPE_TIME_BETWEEN_LAST_TWO_RELEASES_pn-task-poky-x11-sato="n/a" 54RECIPE_TIME_BETWEEN_LAST_TWO_RELEASES_pn-task-poky-x11-sato="n/a"
diff --git a/meta/conf/distro/include/private/distro_x11_core.inc b/meta/conf/distro/include/private/distro_x11_core.inc
index e01f0065a2..60efbad26e 100644
--- a/meta/conf/distro/include/private/distro_x11_core.inc
+++ b/meta/conf/distro/include/private/distro_x11_core.inc
@@ -99,16 +99,15 @@ RECIPE_INTEL_SECTION_pn-xf86-video-vmware="graphic core"
99RECIPE_MAINTAINER_pn-xf86-video-vmware="Yu Ke <ke.yu@intel.com>" 99RECIPE_MAINTAINER_pn-xf86-video-vmware="Yu Ke <ke.yu@intel.com>"
100 100
101RECIPE_STATUS_pn-cairo="green" # no update needed 101RECIPE_STATUS_pn-cairo="green" # no update needed
102RECIPE_LATEST_VERSION_pn-cairo="1.9.10" 102RECIPE_LATEST_VERSION_pn-cairo="1.9.10" # OK
103RECIPE_NO_OF_PATCHES_pn-cairo="1" 103RECIPE_NO_OF_PATCHES_pn-cairo="1"
104RECIPE_TIME_BETWEEN_LAST_TWO_RELEASES_pn-cairo="1 monthes" 104RECIPE_TIME_BETWEEN_LAST_TWO_RELEASES_pn-cairo="1 monthes"
105RECIPE_LATEST_RELEASE_DATE_pn-cairo="2010/02/20" 105RECIPE_LATEST_RELEASE_DATE_pn-cairo="2010/02/20"
106RECIPE_INTEL_SECTION_pn-cairo="graphic core" 106RECIPE_INTEL_SECTION_pn-cairo="graphic core"
107RECIPE_MAINTAINER_pn-cairo="Yu Ke <ke.yu@intel.com>" 107RECIPE_MAINTAINER_pn-cairo="Yu Ke <ke.yu@intel.com>"
108RECIPE_NO_UPDATE_REASON-cairo="1.9.10 is not stable version"
109 108
110RECIPE_STATUS_pn-xserver-nodm-init="green" # no update needed 109RECIPE_STATUS_pn-xserver-nodm-init="green" # no update needed
111RECIPE_LATEST_VERSION_pn-xserver-nodm-init="1" 110RECIPE_LATEST_VERSION_pn-xserver-nodm-init="1.0"
112RECIPE_NO_OF_PATCHES_pn-xserver-nodm-init="0" 111RECIPE_NO_OF_PATCHES_pn-xserver-nodm-init="0"
113#RECIPE_TIME_BETWEEN_LAST_TWO_RELEASES_pn-xserver-nodm-init="" 112#RECIPE_TIME_BETWEEN_LAST_TWO_RELEASES_pn-xserver-nodm-init=""
114#RECIPE_LATEST_RELEASE_DATE_pn-xserver-nodm-init="" 113#RECIPE_LATEST_RELEASE_DATE_pn-xserver-nodm-init=""