Skip to content

Commit adaab9b

Browse files
authored
Merge pull request #29 from Avinash95/image_version
Add version to uboot image name
2 parents b089cd9 + bae8add commit adaab9b

File tree

3 files changed

+25
-3
lines changed

3 files changed

+25
-3
lines changed

Jenkinsfile

+13-2
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,25 @@ node('docker && imgtec') {
33
docker_image = docker.image "imgtec/creator-builder:latest" // TODO for now using the creator one
44
docker_image.inside {
55
stage('Prepare') {
6-
checkout scm
6+
checkout([$class: 'GitSCM',
7+
userRemoteConfigs: scm.userRemoteConfigs,
8+
branches: scm.branches,
9+
doGenerateSubmoduleConfigurations: scm.doGenerateSubmoduleConfigurations,
10+
submoduleCfg: scm.submoduleCfg,
11+
browser: scm.browser,
12+
gitTool: scm.gitTool,
13+
extensions: scm.extensions + [
14+
[$class: 'CleanCheckout'],
15+
[$class: 'PruneStaleBranch'],
16+
],
17+
])
718
}
819
stage('Build') {
920
sh 'make CROSS_COMPILE=/opt/toolchains/mips-img-linux-gnu/2016.05-03/bin/mips-img-linux-gnu- pistachio_marduk_defconfig'
1021
sh 'make CROSS_COMPILE=/opt/toolchains/mips-img-linux-gnu/2016.05-03/bin/mips-img-linux-gnu-'
1122
}
1223
stage('Upload') {
13-
archiveArtifacts 'u-boot-pistachio-nor.img'
24+
archiveArtifacts 'u-boot-pistachio*.img'
1425
}
1526
}
1627
}

Makefile

+5
Original file line numberDiff line numberDiff line change
@@ -1043,6 +1043,11 @@ u-boot-pistachio-nor.img: u-boot-dtb.img u-boot-spl-pistachio.bimg FORCE
10431043
@dd if=/dev/zero of=$@ bs=4K count=384 conv=notrunc
10441044
@dd if=u-boot-spl-pistachio.bimg of=$@ bs=4K count=128 conv=notrunc
10451045
@dd if=u-boot-dtb.img of=$@ bs=4K count=256 seek=128 conv=notrunc
1046+
ifeq ($(UBOOTRELEASE),$(UBOOTVERSION))
1047+
-mv u-boot-pistachio-nor.img u-boot-$(subst $\",,$(CONFIG_SYS_CONFIG_NAME))-$(UBOOTVERSION).img
1048+
else
1049+
-mv u-boot-pistachio-nor.img u-boot-$(subst $\",,$(CONFIG_SYS_CONFIG_NAME))-$(UBOOTRELEASE).img
1050+
endif
10461051

10471052
# x86 uses a large ROM. We fill it with 0xff, put the 16-bit stuff (including
10481053
# reset vector) at the top, Intel ME descriptor at the bottom, and U-Boot in

README.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,13 @@ For the MIPS official toolchain see
1111
$ make CROSS_COMPILE=<toolchain-prefix> pistachio_marduk_defconfig
1212
$ make CROSS_COMPILE=<toolchain-prefix>
1313

14-
This will generate u-boot-pistachio-nor.img
14+
This will generate `u-boot-pistachio_<board_name>-<version>.img`
15+
16+
eg. u-boot-pistachio_marduk-2015.10-v1.0.4.img
17+
18+
OR `u-boot-pistachio_<board_name>-<version>-<githash>.img`, if there are extra commits above the tag.
19+
20+
e.g. u-boot-pistachio_marduk-2015.10-v1.0.4-g75cbe38.img
1521

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

0 commit comments

Comments
 (0)