Output version information to meta

This commit is contained in:
Dan Hawkins 2018-12-16 18:33:06 +00:00
commit a20fce5050

View file

@ -79,31 +79,31 @@ def modifyapp(NIOSEDS, bspfolder, wdir) {
def dump_elf_info(NIOSEDS, elffile, meta, custominfokeyprefix) {
if (isUnix()) {
def cpu_name = sh(script: """#!/bin/bash
`"${NIOSEDS}/nios2_command_shell.sh" nios2-elf-query "${elffile}" --cpu_name`
"${NIOSEDS}/nios2_command_shell.sh" nios2-elf-query "${elffile}" --cpu_name
""",
returnStdout: true
)
meta.addCustomInfo("${custominfokeyprefix}_cpu_name", cpu_name)
def sidp = sh(script: """#!/bin/bash
`"${NIOSEDS}/nios2_command_shell.sh" nios2-elf-query "${elffile}" --sidp`
"${NIOSEDS}/nios2_command_shell.sh" nios2-elf-query "${elffile}" --sidp
""",
returnStdout: true
)
meta.addCustomInfo("${custominfokeyprefix}_sidp", sidp)
def id = sh(script: """#!/bin/bash
`"${NIOSEDS}/nios2_command_shell.sh" nios2-elf-query "${elffile}" --id`
"${NIOSEDS}/nios2_command_shell.sh" nios2-elf-query "${elffile}" --id
""",
returnStdout: true
)
meta.addCustomInfo("${custominfokeyprefix}_id", id)
def timestamp = sh(script: """#!/bin/bash
`"${NIOSEDS}/nios2_command_shell.sh" nios2-elf-query "${elffile}" --timestamp`
"${NIOSEDS}/nios2_command_shell.sh" nios2-elf-query "${elffile}" --timestamp
""",
returnStdout: true
)
meta.addCustomInfo("${custominfokeyprefix}_timestamp", timestamp)
def sopcinfo = sh(script: """#!/bin/bash
`"${NIOSEDS}/nios2_command_shell.sh" nios2-elf-query "${elffile}" --sopcinfo`
"${NIOSEDS}/nios2_command_shell.sh" nios2-elf-query "${elffile}" --sopcinfo
""",
returnStdout: true
)