Skip to content

Commit 56e967d

Browse files
authored
Merge pull request #1 from aws4embeddedlinux/doc
doc wip
2 parents c7bb7b2 + 0baf5a8 commit 56e967d

File tree

1 file changed

+72
-13
lines changed

1 file changed

+72
-13
lines changed

Diff for: README.md

+72-13
Original file line numberDiff line numberDiff 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.
23

3-
TODO - This is work in progress
4+
## Examples
5+
After a sucessful setup you will have those example pipelines ready to run.
46

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.
79

8-
### Setting Up
10+
See AWS CodeBuild pipeline: PokyPipeline-DemoPipeline*
911

10-
#### clone repo
12+
#### A slightly modified version using KAS tool instead of repo:
13+
See AWS CodeBuild pipeline: KasPipeline-DemoPipeline*
1114

15+
#### A slightly modified version building a qemu pipeline:
16+
See AWS CodeBuild pipeline: QemuDemoPipeline-DemoPipeline*
1217

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):
34+
https://www.renesas.com/us/en/application/automotive/r-car-h3-m3-h2-m2-e2-documents-software
35+
36+
#### Download two files:
37+
38+
R-Car_Gen3_Series_Evaluation_Software_Package_for_Linux-20220121.zip
39+
R-Car_Gen3_Series_Evaluation_Software_Package_of_Linux_Drivers-20220121.zip
40+
41+
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*
50+
51+
##
52+
53+
## How to get started?
54+
55+
### clone repo
56+
```bash
57+
git clone https://github.com/aws4embeddedlinux/aws4embeddedlinux-ci-examples.git
58+
```
59+
60+
### install npm packages:
1461

1562
```bash
63+
cd aws4embeddedlinux-ci-examples
1664
npm install .
1765
```
1866

19-
#### 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.
2069
```bash
2170
npm update
2271
```
2372

24-
#### build:
73+
### build:
2574

2675
```bash
2776
npm run build
2877
```
2978

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.
3183
```bash
32-
# only required once
3384
cdk bootstrap
85+
```
86+
87+
#### deploy
3488

89+
```bash
3590
cdk deploy --all
3691
```
3792

@@ -40,7 +95,7 @@ The newly created pipeline `ubuntu_22_04BuildImagePipeline` from the CodePipelin
4095
After that completes, the DemoPipeline in the CodePipeline console page is ready to run.
4196

4297

43-
#### destroy cloud resources for all demo pipelines:
98+
### destroy cloud resources for all demo pipelines:
4499
```bash
45100
cdk destroy --all
46101
```
@@ -62,4 +117,8 @@ Project Specific:
62117

63118
## Contributing
64119

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

Comments
 (0)