Skip to content

Commit

Permalink
Create nxp example configuration.
Browse files Browse the repository at this point in the history
  • Loading branch information
nateglims committed Aug 25, 2023
1 parent 9ec7c7c commit de347a5
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 7 deletions.
14 changes: 7 additions & 7 deletions demos-pipeline/example/bin/poky-pipeline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,10 @@ new DemoPipelineStack(app, "QemuDemoPipeline", {
/**
* Create a 3rd Party Distribution Pipeline.
*/
// TODO(nateglims): implement
// new DemoPipelineStack(app, "three-p-Pipeline", {
// ...defaultProps,
// imageRepo: buildImageRepo.repository,
// imageTag: ImageKind.Ubuntu22_04,
// vpc: vpc.vpc,
// });
new DemoPipelineStack(app, "IMX6Pipeline", {
...defaultProps,
imageRepo: buildImageRepo.repository,
imageTag: ImageKind.Ubuntu22_04,
vpc: vpc.vpc,
distroKind: DistributionKind.imx6,
});
2 changes: 2 additions & 0 deletions demos-pipeline/lib/lib/constructs/source-repo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ export enum DistributionKind {
Poky = "poky",
/** The meta-aws Demonstration Distribution. */
MetaAwsDemo = "meta-aws-demo",
/** the i.mx6 Distribution from NXP. */
imx6 = "imx6",
}

export interface SourceRepoProps extends cdk.StackProps {
Expand Down
41 changes: 41 additions & 0 deletions demos-pipeline/lib/source-repo/imx6/build.buildspec.yml
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 -u https://github.com/nxp-imx/imx-manifest -b imx-linux-mickledore -m imx-6.1.22-2.0.0.xml
- repo sync
- MACHINE=imx6ull14x14evk EULA=y source ./imx-setup-release.sh -b bld-fb
- 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*

0 comments on commit de347a5

Please sign in to comment.