Skip to content

Add version to uboot image name #29

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

Merged
merged 2 commits into from
Jan 6, 2017
Merged
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
15 changes: 13 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,25 @@ node('docker && imgtec') {
docker_image = docker.image "imgtec/creator-builder:latest" // TODO for now using the creator one
docker_image.inside {
stage('Prepare') {
checkout scm
checkout([$class: 'GitSCM',
userRemoteConfigs: scm.userRemoteConfigs,
branches: scm.branches,
doGenerateSubmoduleConfigurations: scm.doGenerateSubmoduleConfigurations,
submoduleCfg: scm.submoduleCfg,
browser: scm.browser,
gitTool: scm.gitTool,
extensions: scm.extensions + [
[$class: 'CleanCheckout'],
[$class: 'PruneStaleBranch'],
],
])
}
stage('Build') {
sh 'make CROSS_COMPILE=/opt/toolchains/mips-img-linux-gnu/2016.05-03/bin/mips-img-linux-gnu- pistachio_marduk_defconfig'
sh 'make CROSS_COMPILE=/opt/toolchains/mips-img-linux-gnu/2016.05-03/bin/mips-img-linux-gnu-'
}
stage('Upload') {
archiveArtifacts 'u-boot-pistachio-nor.img'
archiveArtifacts 'u-boot-pistachio*.img'
}
}
}
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -1043,6 +1043,11 @@ u-boot-pistachio-nor.img: u-boot-dtb.img u-boot-spl-pistachio.bimg FORCE
@dd if=/dev/zero of=$@ bs=4K count=384 conv=notrunc
@dd if=u-boot-spl-pistachio.bimg of=$@ bs=4K count=128 conv=notrunc
@dd if=u-boot-dtb.img of=$@ bs=4K count=256 seek=128 conv=notrunc
ifeq ($(UBOOTRELEASE),$(UBOOTVERSION))
-mv u-boot-pistachio-nor.img u-boot-$(subst $\",,$(CONFIG_SYS_CONFIG_NAME))-$(UBOOTVERSION).img
else
-mv u-boot-pistachio-nor.img u-boot-$(subst $\",,$(CONFIG_SYS_CONFIG_NAME))-$(UBOOTRELEASE).img
endif

# x86 uses a large ROM. We fill it with 0xff, put the 16-bit stuff (including
# reset vector) at the top, Intel ME descriptor at the bottom, and U-Boot in
Expand Down
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,13 @@ For the MIPS official toolchain see
$ make CROSS_COMPILE=<toolchain-prefix> pistachio_marduk_defconfig
$ make CROSS_COMPILE=<toolchain-prefix>

This will generate u-boot-pistachio-nor.img
This will generate `u-boot-pistachio_<board_name>-<version>.img`

eg. u-boot-pistachio_marduk-2015.10-v1.0.4.img

OR `u-boot-pistachio_<board_name>-<version>-<githash>.img`, if there are extra commits above the tag.

e.g. u-boot-pistachio_marduk-2015.10-v1.0.4-g75cbe38.img

## Flash it onto your Ci40
See our [docs](https://docs.creatordev.io/ci40/guides/openwrt-platform/#flashing-u-boot-binary).