Skip to content

Commit

Permalink
update flowchart
Browse files Browse the repository at this point in the history
  • Loading branch information
Thanh Truong committed Jul 16, 2019
1 parent 8af6e5a commit 740aa59
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 18 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@ A project with some tools that may help embedded linux developers build linux im

The idea we may select a very cool EC2 with 16 cores and 32 GB RAM, this cost us ~$0.4 an hour for a build. We only run the EC2 once we start building the linux image and stop this once we are done. So, the EC2 does not cost us more than $30-$40 a month. it's cheaper than you invest super desktop to build the code, plus utility bill and cooler as well.


```bash
/—-————————————-FAIL———————————————\
Start EC2 —-> Run Yocto build——— ———Stop EC2
\——SUCCESS———Download Image———————-/
```mermaid
graph TD
A[Start EC2] -->|Upload your custom build script| B(Run Yocto Build with your script)
B --> C{Build Result}
C -->|FAIL| D[Stop EC2]
C -->|SUCCESS| E[Download Build Image]
E --> D
```


### THE CURRENT VERSION IS ONLY SUPPORT NXP iMX SOURCE CODE

## Setup AWS
Expand Down Expand Up @@ -45,8 +46,6 @@ Clone your code to your EC2
pip install yoctoEC2
```



#### For current version, I suggest you to initialize build environment and accept EULA by manual.

## Yocto build
Expand All @@ -57,6 +56,7 @@ Start EC2, build, copy image and Stop EC2

`yocto-ec2 build --instance-id=<instance-id> --project-root=<project-path> --DISTRO=<distro> --MACHINE=<machine> --IMAGE=<image>`


```bash
yocto-ec2 build --instance-id=i-12345678 --project-root=/home/ubuntu/Workspace/iMX6ULEVK/ --script-path=./build.sh --sdcard-image=/home/ubuntu/Workspace/iMX6ULEVK/build/tmp/deploy/images/imx6ulevk/core-image-base-imx6ulevk.sdcard.bz2
```
14 changes: 5 additions & 9 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
[bumpversion]
current_version = 0.2.0

[metadata]
# This includes the license file(s) in the wheel.
# https://wheel.readthedocs.io/en/stable/user_guide.html#including-license-files-in-the-generated-wheel-file
license_files = LICENSE.txt

[bdist_wheel]
# This flag says to generate wheels that support both Python 2 and Python
# 3. If your code will not run unchanged on both Python 2 and 3, you will
# need to generate separate wheels for each Python version that you
# support. Removing this line (or setting universal to 0) will prevent
# bdist_wheel from trying to make a universal wheel. For more see:
# https://packaging.python.org/guides/distributing-packages-using-setuptools/#wheels
universal=1
universal = 1

2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

setup(
name='yoctoEC2',
version='0.1.0',
version='0.2.0',
description='A yocto EC2 Python project',
long_description=long_description,
url='https://github.com/ttruongatl/yocto-ec2-utils',
Expand Down

0 comments on commit 740aa59

Please sign in to comment.