diff --git a/README.md b/README.md index c0a96e9..a1ad049 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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 @@ -57,6 +56,7 @@ Start EC2, build, copy image and Stop EC2 `yocto-ec2 build --instance-id= --project-root= --DISTRO= --MACHINE= --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 ``` diff --git a/setup.cfg b/setup.cfg index bb3303f..f28eb11 100644 --- a/setup.cfg +++ b/setup.cfg @@ -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 + diff --git a/setup.py b/setup.py index cd30d30..8619292 100644 --- a/setup.py +++ b/setup.py @@ -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',