forked from aws4embeddedlinux/meta-aws-ci
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
version: 0.2 | ||
run-as: yoctouser | ||
|
||
env: | ||
shell: bash | ||
|
||
phases: | ||
pre_build: | ||
run-as: root | ||
commands: | ||
- chown -R yoctouser /sstate-cache | ||
- chown -R yoctouser /downloads | ||
- chown yoctouser /build-output | ||
- chmod 755 /sstate-cache | ||
- chmod 755 /downloads | ||
- chmod 755 /build-output | ||
- apt-get install -yq repo | ||
build: | ||
commands: | ||
- echo Build started on `date` | ||
- repo init -- # EDIT HERE | ||
- repo sync | ||
- . poky/oe-init-build-env $TMP_DIR | ||
- bitbake core-image-minimal | ||
|
||
post_build: | ||
commands: | ||
- echo Build completed on `date` | ||
- bitbake -m | ||
- ps aux | grep bitbake | ||
- find $TMP_DIR -name '*.socket' -delete | ||
- export BUILD_OUTPUT="$(uuidgen -t).tar" | ||
- tar cf $BUILD_OUTPUT -C $TMP_DIR tmp | ||
- cp -r $BUILD_OUTPUT /build-output | ||
- echo $BUILD_OUTPUT > /build-output/tmpfile | ||
|
||
artifacts: | ||
discard-paths: true | ||
files: | ||
- /build-output/tmpfile | ||
- $TMP_DIR/tmp/deploy/images/qemux86-64/core-image-minimal-qemux86-64* |