aboutsummaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorSaul Wold <sgw@linux.intel.com>2013-09-10 10:28:14 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-09-10 23:15:09 +0100
commit5b451a46550ba62e2fbfe5dbe50723b34a4fd527 (patch)
tree07e4fdbf233a707e94a8921ce8b7942aabc2b78b /meta/classes
parentc700cb21c189e23a78f0efaaf763259c8cfefa4d (diff)
downloadopenembedded-core-5b451a46550ba62e2fbfe5dbe50723b34a4fd527.tar.gz
systemd.bbclass: get the correct /lib directory
By using os.path.dirname(systemd_unitdir) we get the correct /lib directory instead of dealing with possibly multilib directories. This address a QA Error for shipped/not installed /lib with multilib and x32. Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/systemd.bbclass6
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/classes/systemd.bbclass b/meta/classes/systemd.bbclass
index 8ec4992db3..eab8735b7c 100644
--- a/meta/classes/systemd.bbclass
+++ b/meta/classes/systemd.bbclass
@@ -168,9 +168,9 @@ python rm_systemd_unitdir (){
systemd_unitdir = oe.path.join(d.getVar("D", True), d.getVar('systemd_unitdir', True))
if os.path.exists(systemd_unitdir):
shutil.rmtree(systemd_unitdir)
- base_libdir = oe.path.join(d.getVar("D", True), d.getVar('base_libdir', True))
- if (os.path.exists(base_libdir) and not os.listdir(base_libdir)):
- os.rmdir(base_libdir)
+ systemd_libdir = os.path.dirname(systemd_unitdir)
+ if (os.path.exists(systemd_libdir) and not os.listdir(systemd_libdir)):
+ os.rmdir(systemd_libdir)
}
do_install[postfuncs] += "rm_systemd_unitdir "
tworkd'>ChenQi/systemd-networkd OpenEmbedded Core user contribution treesGrokmirror user
summaryrefslogtreecommitdiffstats
path: root/documentation/sdk-manual/sdk-manual.xml
blob: 1828119dfcb99dc96d536408bd7e484e26f4f650 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151