-
Notifications
You must be signed in to change notification settings - Fork 12
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
u-boot-pistachio_marduk-2015.10.img
should really be
u-boot-pistachio_marduk-2015.10-1.0.3.img in case the tag is equal to last commit
or
u-boot-pistachio_marduk-2015.10-99b3c1690c8b0e581daea1c5902619a66844c24f.img
githash should be used in case there are extra commits after the last tag(which is the current case)
For this EXTRAVERSION in the Makefile should be 1.0.3 (or whatever the current tag), once this is approved, tested and tagged as git tag -a 1.0.4 and EXTRAVERSION would be 1.0.4
ifeq ($(UBOOTRELEASE),) | ||
-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))-\ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to change JenkinsFile too .. It has still u-boot-pistachio-nor.img that's why it has failed
http://jenkins.creatordev.io/job/CreatorDev/job/u-boot/job/PR-29/lastBuild/console
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems that UBOOTRELEASE is not set for the first CI build of this PR, which leads to the image being created as "u-boot-pistachio_marduk-2015.10.img", but for subsequent CI builds, UBOOTRELEASE gets a value and an image in the name "u-boot-pistachio_marduk-2015.10-g77f85c3.img" is being generated along with the image from first build.
There are 2 problems:
- The first build itself should create image with the proper name that include the git commit hash
- The subsequent builds should be made clean
74aa336
to
77f85c3
Compare
shouldn't this connect to #28? |
38fbf7c
to
b9ed160
Compare
Verified the u-boot version now shown as below:
Also, checked the boot-up version
|
18b7b62
to
5ab0d9e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs the README file updated too
checkout scm | ||
} | ||
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' | ||
deleteDir() // clean up the workspace to save space |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not really needed for such a small build?
@@ -3,14 +3,16 @@ node('docker && imgtec') { | |||
docker_image = docker.image "imgtec/creator-builder:latest" // TODO for now using the creator one | |||
docker_image.inside { | |||
stage('Prepare') { | |||
deleteDir() // clean up the workspace to save space |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems to be causing build issues. Perhaps just better to go with the clean checkout, instead of 'checkout scm' you can use a full custom one:
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'],
],
])
948e698
to
75cbe38
Compare
@@ -11,7 +11,8 @@ 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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also mention that both conditions. i.e. if there are extra commits above the tag then it will add githash.
e.g. u-boot-pistachio_marduk-2015.10-g75cbe38.img or
u-boot-pistachio_marduk-2015.10-v1.0.4-ga6d02dd.img
May be version command output would be useful to add.
d102904
to
b1b898f
Compare
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't look good on the Readme home page. Please add proper indentation as follows
This will generate 'u-boot-pistachio_<board_name>-<tag_version>.img'
eg. u-boot-pistachio_marduk-2015.10-v1.0.4.img
OR 'u-boot-pistachio_<board_name>-<tag_version>-<git_hash>.img', if there are extra commits above the tag.
e.g. u-boot-pistachio_marduk-2015.10-v1.0.4-g75cbe38.img
996b550
to
8820f9e
Compare
@@ -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>-<tag_version>.img' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be u-boot-pistachio_<board_name>-<tag-version>.img
it should be ` not, '
ff28c25
to
bae8add
Compare
Signed-off-by: Avinash Tahakik <[email protected]>
Signed-off-by: Avinash Tahakik <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Verified, the filenameu-boot-pistachio_marduk-2015.10-v1.0.4-gbae8add.img once flashed, gives the version command output as
pistachio # version
U-Boot 2015.10-v1.0.4-gbae8add (Jan 06 2017 - 10:18:02 +0000)
mips-img-linux-gnu-gcc (Codescape GNU Tools 2016.05-03 for MIPS IMG Linux) 4.9.2
GNU ld (Codescape GNU Tools 2016.05-03 for MIPS IMG Linux) 2.24.90
and bootlog shows as
U-Boot SPL 2015.10-v1.0.4-gbae8add (Jan 06 2017 - 10:18:02)
U-Boot 2015.10-v1.0.4-gbae8add (Jan 06 2017 - 10:18:02 +0000), Build: jenkins-CreatorDev-u-boot-PR-29-15
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks to work for building and cleaning in all 3 cases I could thing of:
- u-boot-pistachio_marduk-2015.10-v1.0.4-00146-gbae8add-dirty.img
- u-boot-pistachio_marduk-2015.10-v1.0.4-00146-gbae8add.img
- u-boot-pistachio_marduk-2015.10-v1.0.4.img
This connects #28
Name of the file when top commit is annotated and EXTRAVERSION = v1.0.4 -> u-boot-pistachio_marduk-2015.10-v1.0.4.img
else
u-boot-pistachio_marduk-2015.10-v1.0.4-00004-gcd3b541.img
Signed-off-by: Avinash Tahakik [email protected]