You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+72-13
Original file line number
Diff line number
Diff line change
@@ -1,37 +1,92 @@
1
-
# aws4embeddedlinux-ci-examples
1
+
# aws4embeddedlinux-ci-examples
2
+
This repo is a showcase for the capabilities of [aws4embeddedlinux-ci](https://github.com/aws4embeddedlinux/aws4embeddedlinux-ci.git) cdk library.
2
3
3
-
TODO - This is work in progress
4
+
## Examples
5
+
After a sucessful setup you will have those example pipelines ready to run.
4
6
5
-
##Quickstart
6
-
TODO
7
+
### A Simple Poky Based Pipeline
8
+
This example will build a Yocto core-image-minimal based on a manifest.xml using the repo tool. Also enable CVE checking for it.
7
9
8
-
### Setting Up
10
+
See AWS CodeBuild pipeline: PokyPipeline-DemoPipeline*
9
11
10
-
#### clone repo
12
+
#### A slightly modified version using KAS tool instead of repo:
13
+
See AWS CodeBuild pipeline: KasPipeline-DemoPipeline*
11
14
15
+
#### A slightly modified version building a qemu pipeline:
16
+
See AWS CodeBuild pipeline: QemuDemoPipeline-DemoPipeline*
12
17
13
-
#### install npm packages:
18
+
### A Simple Poky Based Pipeline
19
+
This example will build a Yocto core-image-minimal based on a manifest.xml using the repo tool. Also enable CVE checking for it.
20
+
21
+
See AWS CodeBuild pipeline: PokyPipeline-DemoPipeline*
22
+
23
+
24
+
### A Poky Based EC2 AMI Pipeline
25
+
Yocto can be used to create an EC2 AMI. This example demonstrates using this library to create a pipeline which builds an AMI and registers it in your account.
26
+
27
+
See AWS CodeBuild pipeline: PokyAmiPipeline-DemoPipeline*
28
+
29
+
### Using pre-build, proprietary artifacts in a Pipeline
30
+
31
+
This example is based on this [work](https://elinux.org/R-Car/Boards/Yocto-Gen3/v5.9.0) to build an image for Renesas R-Car-H3 Starter Kit Premier (unofficial name - H3ULCB) board including the proprietary graphics and multimedia drivers from Renesas.
32
+
33
+
You need to download Multimedia and Graphics library and related Linux drivers, please from the following link (registration necessary):
Graphic drivers are required for Wayland. Multimedia drivers are optional.
42
+
43
+
#### Steps to build the image
44
+
45
+
Create a folder named `proprietary` in the root of the source repo. Put those two downloaded files into this folder. After you did deploy the build pipeline and uncomment the `#TODO` in the build.sh file.
46
+
47
+
Now a build should automatically start, succeed and you will get an image containing the proprietary graphics and multimedia drivers.
48
+
49
+
See AWS CodeBuild pipeline: RenesasPipeline-DemoPipeline*
#### updating - if you have an already have packages installed before
67
+
### updating
68
+
Only if you had already packages installed before or the aws4embeddedlinux-ci library changed.
20
69
```bash
21
70
npm update
22
71
```
23
72
24
-
####build:
73
+
### build:
25
74
26
75
```bash
27
76
npm run build
28
77
```
29
78
30
-
#### deploy cloud resources for all demo pipelines:
79
+
### deploy cloud resources for all demo pipelines:
80
+
#### pre-requisites: follow the [cdk guide on bootstrapping](https://docs.aws.amazon.com/cdk/v2/guide/bootstrapping.html#bootstrapping-customizing:~:text=the%20legacy%20bucket.-,Customizing%20bootstrapping,-There%20are%20two) your resources
81
+
82
+
e.g.
31
83
```bash
32
-
# only required once
33
84
cdk bootstrap
85
+
```
86
+
87
+
#### deploy
34
88
89
+
```bash
35
90
cdk deploy --all
36
91
```
37
92
@@ -40,7 +95,7 @@ The newly created pipeline `ubuntu_22_04BuildImagePipeline` from the CodePipelin
40
95
After that completes, the DemoPipeline in the CodePipeline console page is ready to run.
41
96
42
97
43
-
####destroy cloud resources for all demo pipelines:
98
+
### destroy cloud resources for all demo pipelines:
44
99
```bash
45
100
cdk destroy --all
46
101
```
@@ -62,4 +117,8 @@ Project Specific:
62
117
63
118
## Contributing
64
119
65
-
TODO: Notes contribution process (pre-commit, running tests, formatting and test standards, etc)
120
+
See [CONTRIBUTING](CONTRIBUTING.md) for more information.
121
+
122
+
## License
123
+
124
+
This library is licensed under the MIT-0 License. See the [LICENSE](LICENSE) file.
0 commit comments