Commit 39885ba
mcf: change layout of build directories (v5.1.0)
:Release Notes:
BSP layers are meant to be usable even when building for other
MACHINEs and BBLAYERS is supposed to be "global" for build.
Changes visible to developers:
1) use only one BUILDDIR for all machines, no need to build/store
native sysroot for each machine in separate BUILD-MACHINE even
when sstate-cache is reused
2) rename bitbake.rc to oe-init-build-env and allow users
to source them and then call bitbake directly e.g.
"bitbake -k webos-image" instead of using Makefile
3) merge functionality of toplevel Makefile and BUILD-MACHINE/Makefile
to single Makefile and reuse oe-init-build-env to have all settings
in only one place
4) use TOPDIR instead of PALMDIR [OWEBOS-2487]
5) conf/local.conf and bblayers.conf are now in toplevel directory and
also shared by all MACHINES (weboslayers.py is also global)
6) use MACHINE/DISTRO from shell environment, allows easy iteration over
MACHINEs e.g.
for MACHINE in qemuarm qemux86 qemux86-64; do
bitbake -k webos-image;
done
7) this layout is similar to layouts used by other distributions and
default layout
8) install and installnew target doing rsync of .ipk files was
renamed to deploy and deploynew because it was conflicting with
install* targets for bitbake
:Detailed Notes:
This layout is more efficient because it doesn't duplicate native
sysroot. It doesn't cause more conflicts between MACHINEs, because
each machine has (and always had) separate directory in sysroot.
It's already included in official Yocto manual.
https://bugzilla.yoctoproject.org/show_bug.cgi?id=5037
https://bugzilla.yoctoproject.org/show_bug.cgi?id=5400
:Testing Performed:
I'm using this for all my builds for very long time.
:QA Notes:
No change to image.
:Issues Addressed:
[ES-346] Use the same BUILD directory for all MACHINEs
[ES-1138] CCC: build.sh, mcf changes for shared BUILD directory
Open-webOS-DCO-1.0-Signed-off-by: Martin Jansa <martin.jansa@lge.com>
Change-Id: Iaff8ed15969afa51c748e32502cccd3f912810eb
Reviewed-on: https://g2g.palm.com/4470
Reviewed-by: DCO Verification
Reviewed-by: Susan Montooth <susan.montooth@lge.com>
Tested-by: Susan Montooth <susan.montooth@lge.com>1 parent 7c919b6 commit 39885ba
File tree
9 files changed
+231
-311
lines changed- build-templates
- scripts
9 files changed
+231
-311
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| 28 | + | |
| 29 | + | |
27 | 30 | | |
28 | 31 | | |
29 | 32 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
| 20 | + | |
19 | 21 | | |
20 | | - | |
21 | | - | |
| 22 | + | |
| 23 | + | |
22 | 24 | | |
23 | | - | |
24 | | - | |
| 25 | + | |
25 | 26 | | |
26 | | - | |
27 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
28 | 31 | | |
29 | | - | |
30 | | - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
31 | 36 | | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
| 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 | + | |
39 | 144 | | |
40 | 145 | | |
41 | 146 | | |
42 | 147 | | |
43 | | - | |
44 | | - | |
| 148 | + | |
| 149 | + | |
45 | 150 | | |
46 | 151 | | |
47 | 152 | | |
48 | 153 | | |
49 | 154 | | |
50 | 155 | | |
51 | 156 | | |
52 | | - | |
| 157 | + | |
| 158 | + | |
53 | 159 | | |
54 | 160 | | |
55 | 161 | | |
| |||
78 | 184 | | |
79 | 185 | | |
80 | 186 | | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | 187 | | |
86 | 188 | | |
87 | | - | |
88 | 189 | | |
89 | 190 | | |
90 | 191 | | |
91 | 192 | | |
92 | 193 | | |
93 | 194 | | |
94 | 195 | | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | 196 | | |
102 | | - | |
103 | 197 | | |
104 | | - | |
| 198 | + | |
105 | 199 | | |
106 | | - | |
| 200 | + | |
107 | 201 | | |
108 | | - | |
| 202 | + | |
109 | 203 | | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
| 204 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
22 | | - | |
| 20 | + | |
| 21 | + | |
23 | 22 | | |
24 | 23 | | |
25 | 24 | | |
| |||
45 | 44 | | |
46 | 45 | | |
47 | 46 | | |
48 | | - | |
| 47 | + | |
49 | 48 | | |
0 commit comments