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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
|
# 2 Downloading AGL Software
Once you have determined the build host can build an AGL image,
you need to download the AGL source files.
The AGL source files, which includes the Yocto Project layers, are
maintained on the AGL Gerrit server.
For information on how to create accounts for Gerrit, see the
[Getting Started with AGL](https://wiki.automotivelinux.org/start/getting-started)
wiki page.
The remainder of this section provides steps on how to download the AGL source files:
1. **Define Your Top-Level Directory:**
You can define an environment variable as your top-level AGL workspace folder.
Following is an example that defines the `$HOME/workspace_agl` folder using
an environment variable named "AGL_TOP":
```bash
$ export AGL_TOP=$HOME/workspace_agl
$ mkdir -p $AGL_TOP
```
2. **Download the `repo` Tool and Set Permissions:**
AGL Uses the `repo` tool for managing repositories.
Use the following commands to download the tool and then set its
permissions to allow for execution:
```bash
$ mkdir -p ~/bin
$ export PATH=~/bin:$PATH
$ curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
$ chmod a+x ~/bin/repo
```
**NOTE:** See the
"[Repo Command Reference](https://source.android.com/setup/develop/repo)"
for more information on the `repo` tool.
3. **Download the AGL Source Files:**
Depending on your development goals, you can either download the
latest stable AGL release branch, or the "cutting-edge" (i.e. "master"
branch) files.
* **Stable Release:**
Using the latest stable release gives you a solid snapshot of the
latest know release.
The release is static, tested, and known to work.
To download the latest stable release branch (i.e. Halibut 8.0), use
the following commands:
```bash
$ cd $AGL_TOP
$ repo init -b icefish -u https://gerrit.automotivelinux.org/gerrit/AGL/AGL-repo
$ repo sync
```
* **Cutting-Edge Files:**
Using the "cutting-edge" AGL files gives you a snapshot of the
"master" directory.
The resulting local repository you download is dynamic and can become
out-of-date with the upstream repository depending on community contributions.
The advantage of using "cutting-edge" AGL files is that you have the
absolute latest features, which are often under development, for AGL.
To download the "cutting-edge" AGL files, use the following commands:
```bash
$ cd $AGL_TOP
$ repo init -u https://gerrit.automotivelinux.org/gerrit/AGL/AGL-repo
$ repo sync
```
Once you `sync` the repository, you have the AGL files in the form of
"layers" (e.g. `meta-*` folders).
You also have the `poky` repository in your AGL workspace.
Listing out the resulting directory structure appears as follows:
```
$ tree -L 2
.
|-- bsp
| |-- meta-altera
| |-- meta-boundary
| |-- meta-freescale
| |-- meta-freescale-3rdparty
| |-- meta-intel
| |-- meta-qcom
| |-- meta-raspberrypi
| |-- meta-rcar
| |-- meta-renesas-rcar-gen3
| |-- meta-rtlwifi
| |-- meta-sancloud
| |-- meta-synopsys
| `-- meta-ti
|-- external
| |-- alexa-auto-sdk
| |-- meta-clang
| |-- meta-gplv2
| |-- meta-openembedded
| |-- meta-qt5
| |-- meta-sdl
| |-- meta-security
| |-- meta-spdxscanner
| |-- meta-updater
| |-- meta-updater-qemux86-64
| |-- meta-updater-raspberrypi
| |-- meta-virtualization
| `-- poky
|-- meta-agl
| |-- README-AGL.md
| |-- README.md
| |-- agl-layers-overview.md
| |-- docs
| |-- meta-agl
| |-- meta-agl-bsp
| |-- meta-agl-distro
| |-- meta-agl-profile-cluster
| |-- meta-agl-profile-cluster-qt5
| |-- meta-agl-profile-core
| |-- meta-agl-profile-graphical
| |-- meta-agl-profile-graphical-qt5
| |-- meta-agl-profile-hud
| |-- meta-agl-profile-telematics
| |-- meta-agl.md
| |-- meta-app-framework
| |-- meta-netboot
| |-- meta-security
| |-- scripts
| `-- templates
|-- meta-agl-cluster-demo
| |-- README.md
| |-- conf
| |-- recipes-config
| |-- recipes-connectivity
| |-- recipes-demo-hmi
| |-- recipes-graphics
| |-- recipes-platform
| `-- templates
|-- meta-agl-demo
| |-- README.md
| |-- classes
| |-- conf
| |-- docs
| |-- meta-agl-demo.md
| |-- recipes-apis
| |-- recipes-config
| |-- recipes-connectivity
| |-- recipes-core
| |-- recipes-demo-hmi
| |-- recipes-devtools
| |-- recipes-graphics
| |-- recipes-kernel
| |-- recipes-multimedia
| |-- recipes-navigation
| |-- recipes-platform
| |-- recipes-qt
| |-- recipes-sdl
| |-- recipes-support
| `-- templates
|-- meta-agl-devel
| |-- ATTIC
| |-- README.md
| |-- docs
| |-- meta-agl-devel.md
| |-- meta-agl-profile-graphical-html5
| |-- meta-audio-soundmanager-framework
| |-- meta-gstrecorder-rcar-gen3
| |-- meta-oem-extra-libs
| |-- meta-pipewire
| |-- meta-speech-framework
| `-- templates
|-- meta-agl-extra
| |-- meta-blsched
| `-- templates
`-- meta-agl-telematics-demo
|-- README.md
|-- conf
|-- recipes-config
|-- recipes-connectivity
|-- recipes-core
|-- recipes-demo
|-- recipes-navigation
|-- recipes-platform
`-- templates
94 directories, 10 files
```
|