Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

imx: imx8mq_hb: make device-tree filename for OS configurable #6

Open
wants to merge 2 commits into
base: v2018.11-solidrun-1gb
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
109 changes: 109 additions & 0 deletions .drone.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
---
kind: pipeline
name: announce-start

clone:
disable: true

platform:
os: linux

steps:
- name: announce
image: container.solid-build.xyz/drone/plugins/slack:latest
settings:
webhook:
from_secret: ryver_webhook
channel: drone
icon_url: https://img.icons8.com/office/80/000000/test-partial-passed.png
template: >
Start building i.MX8MQ U-Boot from {{repo.name}}/{{build.branch}} (#{{build.number}})

---
kind: pipeline
name: build

clone:
disable: true

platform:
os: linux

workspace:
path: /work

steps:
- name: fetch
image: container.solid-build.xyz/bsp/imx8mq-uboot-builder
commands:
- /bin/bash /entry.sh -u $(id -u) -g $(id -g) -- init --depth=1
- /bin/bash /entry.sh -u $(id -u) -g $(id -g) -- sync
- /bin/bash /entry.sh -u $(id -u) -g $(id -g) -- blobs --accept-eula

- name: compile HummingBoard Pulse / microSD
image: container.solid-build.xyz/bsp/imx8mq-uboot-builder
commands:
- /bin/bash /entry.sh -u $(id -u) -g $(id -g) -- build -d hbp -b microsd

- name: compile CuBox Pulse / microSD
image: container.solid-build.xyz/bsp/imx8mq-uboot-builder
commands:
- /bin/bash /entry.sh -u $(id -u) -g $(id -g) -- build -d cbp -b microsd

- name: publish
image: plugins/s3
settings:
source: u-boot-*.bin
target: /public/u-boot-imx8mq/${DRONE_BUILD_NUMBER}
bucket: drone-artifacts
path_style: true
endpoint:
from_secret: minio_endpoint
access_key:
from_secret: minio_id
secret_key:
from_secret: minio_secret

---
kind: pipeline
name: announce-success

clone:
disable: true

platform:
os: linux

steps:
- name: announce
image: container.solid-build.xyz/drone/plugins/slack:latest
settings:
webhook:
from_secret: ryver_webhook
channel: drone
icon_url: https://img.icons8.com/office/80/000000/test-passed.png
template: >
{{#success build.status}}
Finished building i.MX8MQ U-Boot from {{repo.name}}/{{build.branch}} (#{{build.number}}).

Assets:
- https://minio.cloud.solid-build.xyz/drone-artifacts/public/u-boot-imx8mq/{{build.number}}/u-boot-hbp-microsd.bin
- https://minio.cloud.solid-build.xyz/drone-artifacts/public/u-boot-imx8mq/{{build.number}}/u-boot-cbp-microsd.bin

{{else}}
Failed building i.MX8MQ U-Boot from {{repo.name}}/{{build.branch}} (#{{build.number}}):heavy_exclamation_mark:

{{/success}}
commit: {{build.commit}}
Author: {{build.author}}
{{build.message}}

Build Logs: https://ci.solid-build.xyz/Josua-SR/u-boot/{{build.number}}

depends_on:
- build

trigger:
status:
- success
- failure
1 change: 1 addition & 0 deletions configs/imx8mq_hb_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -140,3 +140,4 @@ CONFIG_USB_FUNCTION_MASS_STORAGE=y
# CONFIG_USB_ETHER is not set
# CONFIG_USB_HOST_ETHER is not set
CONFIG_USB_STORAGE=y
CONFIG_DEFAULT_FDT_FILE="fsl-imx8mq-hummingboard-pulse"
4 changes: 2 additions & 2 deletions include/configs/imx8mq_hb.h
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,8 @@
"env_dev=" __stringify(CONFIG_SYS_MMC_ENV_DEV) "\0" \
"env_part=" __stringify(CONFIG_SYS_MMC_ENV_PART) "\0" \
"fdt_addr_r=0x43000000\0" \
"fdt_file=fsl-imx8mq-hummingboard-pulse.dtb\0" \
"fdtfile=fsl-imx8mq-hummingboard-pulse.dtb\0" \
"fdt_file=" CONFIG_DEFAULT_FDT_FILE ".dtb\0" \
"fdtfile=" CONFIG_DEFAULT_FDT_FILE ".dtb\0" \
"ramdisk_addr_r=0x43800000\0" \
"kernel_addr_r=" __stringify(CONFIG_LOADADDR) "\0" \
"pxefile_addr_r=" __stringify(CONFIG_LOADADDR) "\0" \
Expand Down