arm/scp-firmware: merge bb/inc
PATCH 1/9 arm/scp-firmware: merge bb/inc
From: Ross Burton <[email protected]>
There's no other recipe that uses scp-firmware.inc, so merge it into the recipe for clarity.
--- .../recipes-bsp/scp-firmware/scp-firmware.inc | 73 ------------------- .../scp-firmware/scp-firmware_git.bb | 73 ++++++++++++++++++- 2 files changed, 72 insertions(+), 74 deletions(-) delete mode 100644 meta-arm/recipes-bsp/scp-firmware/scp-firmware.inc
meta-arm/recipes-bsp/scp-firmware/scp-firmware.inc deleted +0 -73
@@ -1,73 +0,0 @@ -SUMMARY = "SCP and MCP Firmware" - -PROVIDES += "virtual/control-processor-firmware" - -SCP_BUILD_RELEASE ?= "1" -SCP_COMPILE_VERBOSE ?= "0" -SCP_PLATFORM ?= "invalid" -SCP_COMPILER ?= "arm-none-eabi" -SCP_LOG_LEVEL ?= "WARN" - -DEPENDS += "virtual/arm-none-eabi-gcc-native" - -SCP_BUILD_STR = "${@bb.utils.contains('SCP_BUILD_RELEASE', '1', 'release', 'debug', d)}" -SCP_COMP_STR = "${@bb.utils.contains('SCP_COMPILE_VERBOSE', '0', '', 'V=1', d)}" - -inherit python3native -inherit deploy - -B = "${WORKDIR}/build" -S = "${WORKDIR}/src" - -# Allow platform specific copying of only scp or both scp & mcp, default to both -FW_TARGETS ?= "scp mcp" - -COMPATIBLE_MACHINE ?= "invalid" - -LDFLAGS[unexport] = "1" - -# The gcc-arm-none-eabi version does not support -fmacro-prefix-max -DEBUG_PREFIX_MAP_pn-scp = "\ - -fdebug-prefix-map=${WORKDIR}=/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR} \ - -fdebug-prefix-map=${STAGING_DIR_HOST}= \ - -fdebug-prefix-map=${STAGING_DIR_NATIVE}= \ -" - -# No configure -do_configure[noexec] = "1" - -EXTRA_OEMAKE = "${SCP_COMP_STR} \ - BUILD_PATH='${B}' \ - PRODUCT='${SCP_PLATFORM}' \ - MODE='${SCP_BUILD_STR}' \ - LOG_LEVEL='${SCP_LOG_LEVEL}' \ - CC='${SCP_COMPILER}-gcc' \ - AR='${SCP_COMPILER}-ar' \ - SIZE='${SCP_COMPILER}-size' \ - OBJCOPY='${SCP_COMPILER}-objcopy' \ - " - -do_compile() { - oe_runmake -C "${S}" ${EXTRA_OEMAKE} -} -do_compile[cleandirs] += "${B}" - -do_install() { - install -d ${D}/firmware - for FW in ${FW_TARGETS}; do - for TYPE in ramfw romfw; do - install -D "${B}/product/${SCP_PLATFORM}/${FW}_${TYPE}/release/bin/${FW}_${TYPE}.bin" "${D}/firmware/" - done - done -} - -FILES_${PN} = "/firmware" -SYSROOT_DIRS += "/firmware" -# Skip QA check for relocations in .text of elf binaries -INSANE_SKIP_${PN} = "textrel" - -do_deploy() { - # Copy the images to deploy directory - cp -rf ${D}/firmware/* ${DEPLOYDIR}/ -} -addtask deploy after do_install
meta-arm/recipes-bsp/scp-firmware/scp-firmware_git.bb +72 -1
79 lines not on this page · raw message
Signature · 1 line
2.26.2
PATCH 2/9 arm/scp-firmware: oe_runmake already passes EXTRA_OEMAKE
From: Ross Burton <[email protected]>
oe_runmake adds EXTRA_OEMAKE to the arguments, so there's no need to do it again.
--- meta-arm/recipes-bsp/scp-firmware/scp-firmware_git.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta-arm/recipes-bsp/scp-firmware/scp-firmware_git.bb +1 -1
@@ -66,7 +66,7 @@ EXTRA_OEMAKE = "${SCP_COMP_STR} \ " do_compile() { - oe_runmake -C "${S}" ${EXTRA_OEMAKE} + oe_runmake -C "${S}" } do_compile[cleandirs] += "${B}"
Signature · 1 line
2.26.2
PATCH 3/9 arm/scp-firmware: always compile verbosely
In reply to Ross BurtonFrom: Ross Burton <[email protected]>
The only downside of verbose builds is that the compile logs are larger, but non-verbose logs are useless for debugging mysterious build failures.
Remove the option and always do a verbose build.
--- meta-arm/recipes-bsp/scp-firmware/scp-firmware_git.bb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
meta-arm/recipes-bsp/scp-firmware/scp-firmware_git.bb +1 -3
@@ -21,7 +21,6 @@ SRCREV_FORMAT = "scp_cmsis" PROVIDES += "virtual/control-processor-firmware" SCP_BUILD_RELEASE ?= "1" -SCP_COMPILE_VERBOSE ?= "0" SCP_PLATFORM ?= "invalid" SCP_COMPILER ?= "arm-none-eabi" SCP_LOG_LEVEL ?= "WARN"
@@ -29,7 +28,6 @@ SCP_LOG_LEVEL ?= "WARN" DEPENDS += "virtual/arm-none-eabi-gcc-native" SCP_BUILD_STR = "${@bb.utils.contains('SCP_BUILD_RELEASE', '1', 'release', 'debug', d)}" -SCP_COMP_STR = "${@bb.utils.contains('SCP_COMPILE_VERBOSE', '0', '', 'V=1', d)}" inherit python3native inherit deploy
@@ -54,7 +52,7 @@ DEBUG_PREFIX_MAP_pn-scp = "\ # No configure do_configure[noexec] = "1" -EXTRA_OEMAKE = "${SCP_COMP_STR} \ +EXTRA_OEMAKE = "V=1 \ BUILD_PATH='${B}' \ PRODUCT='${SCP_PLATFORM}' \ MODE='${SCP_BUILD_STR}' \
Signature · 1 line
2.26.2
PATCH 4/9 arm/scp-firmware: use gitsm fetcher
In reply to Ross BurtonFrom: Ross Burton <[email protected]>
The standard git fetcher ignores submodules but as scp-firmware uses submodules it should use the gitsm: fetcher to automatically fetch cmsis instead of doing it manually.
--- .../recipes-bsp/scp-firmware/scp-firmware_git.bb | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-)
meta-arm/recipes-bsp/scp-firmware/scp-firmware_git.bb +3 -13
@@ -3,20 +3,10 @@ DESCRIPTION = "Firmware for SCP and MCP software reference implementation" HOMEPAGE = "https://github.com/ARM-software/SCP-firmware" LICENSE = "BSD-3-Clause & Apache-2.0" - -# SCP LIC_FILES_CHKSUM = "file://license.md;beginline=5;md5=9db9e3d2fb8d9300a6c3d15101b19731" -# CMSIS -LIC_FILES_CHKSUM += "file://cmsis/LICENSE.txt;md5=e3fc50a88d0a364313df4b21ef20c29e" - -SRC_URI = "\ - git://github.com/ARM-software/SCP-firmware.git;protocol=https;name=scp;destsuffix=src;nobranch=1 \ - git://github.com/ARM-software/CMSIS_5.git;protocol=https;name=cmsis;destsuffix=src/cmsis;lfs=0;nobranch=1 \ -" -SRCREV_scp = "fd7c83561a7d76c7681d5d017fb23aa3664c028c" -SRCREV_cmsis = "refs/tags/5.2.0" -SRCREV_FORMAT = "scp_cmsis" +SRC_URI = "gitsm://github.com/ARM-software/SCP-firmware.git;protocol=https" +SRCREV = "fd7c83561a7d76c7681d5d017fb23aa3664c028c" PROVIDES += "virtual/control-processor-firmware"
@@ -33,7 +23,7 @@ inherit python3native inherit deploy B = "${WORKDIR}/build" -S = "${WORKDIR}/src" +S = "${WORKDIR}/git" # Allow platform specific copying of only scp or both scp & mcp, default to both FW_TARGETS ?= "scp mcp"
Signature · 1 line
2.26.2
Re: [PATCH 4/9] arm/scp-firmware: use gitsm fetcher
meta-arm/recipes-bsp/scp-firmware/scp-firmware_git.bb DESCRIPTION = "Firmware for SCP and MCP software reference implementation" · line 10
Quoted 5 lines · Ross Burton
meta-arm/recipes-bsp/scp-firmware/scp-firmware_git.bb +0
-4- -# SCP LIC_FILES_CHKSUM = "file://license.md;beginline=5;md5=9db9e3d2fb8d9300a6c3d15101b19731" -# CMSIS -LIC_FILES_CHKSUM += "file://cmsis/LICENSE.txt;md5=e3fc50a88d0a364313df4b21ef20c29e"
I got a bit keen removing things here, v2 incoming.
Ross
PATCH 5/9 arm-bsp/scp-firmware: remove cmsis SRCREV
In reply to Ross BurtonFrom: Ross Burton <[email protected]>
This repository is no longer fetched explicitly by bitbake so remove the SRCREVs.
--- .../recipes-bsp/scp-firmware/scp-firmware-n1sdp.inc | 3 +-- meta-arm-bsp/recipes-bsp/scp-firmware/scp-firmware-tc0.inc | 6 ++---- 2 files changed, 3 insertions(+), 6 deletions(-)
meta-arm-bsp/recipes-bsp/scp-firmware/scp-firmware-n1sdp.inc +1 -2
@@ -1,7 +1,6 @@ # N1SDP specific SCP configurations and build instructions -SRCREV_scp = "fd7c83561a7d76c7681d5d017fb23aa3664c028c" -SRCREV_cmsis = "refs/tags/5.2.0" +SRCREV = "fd7c83561a7d76c7681d5d017fb23aa3664c028c" SCP_PLATFORM = "n1sdp" SCP_LOG_LEVEL = "INFO"
meta-arm-bsp/recipes-bsp/scp-firmware/scp-firmware-tc0.inc +2 -4
@@ -1,9 +1,7 @@ -# TC0 specicif SCP configuration +# TC0 specific SCP configuration # Intermediate SHA with 2.6 baseline version -SRCREV_scp = "ba1db5fb0ee4a520836722f7a694177d461ab716" -# 5.2.0 tag commit -SRCREV_cmsis = "80cc44bba16cb4c8f495b7aa9709d41ac50e9529" +SRCREV = "ba1db5fb0ee4a520836722f7a694177d461ab716" COMPATIBLE_MACHINE = "tc0"
Signature · 1 line
2.26.2
PATCH 6/9 arm-bsp/scp-firmware: use wildcard bbappend
In reply to Ross BurtonFrom: Ross Burton <[email protected]>
This doesn't care what specific version is being appended, so use a wildcard.
---
.../{scp-firmware_git.bbappend => scp-firmware_%.bbappend} | 0
1 file changed, 0 insertions(+), 0 deletions(-)
rename meta-arm-bsp/recipes-bsp/scp-firmware/{scp-firmware_git.bbappend => scp-firmware_%.bbappend} (100%)meta-arm-bsp/recipes-bsp/scp-firmware/scp-firmware_%.bbappend renamed from meta-arm-bsp/recipes-bsp/scp-firmware/scp-firmware_git.bbappend +0 -0
Signature · 1 line
2.26.2
PATCH 7/9 arm/scp-firmware: move to 2.6.0 release tag
In reply to Ross BurtonFrom: Ross Burton <[email protected]>
Instead of an arbitrary commit, set the base recipe to build the 2.6.0 release.
---
.../scp-firmware/{scp-firmware_git.bb => scp-firmware_2.6.0.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename meta-arm/recipes-bsp/scp-firmware/{scp-firmware_git.bb => scp-firmware_2.6.0.bb} (97%)meta-arm/recipes-bsp/scp-firmware/scp-firmware_2.6.0.bb renamed from meta-arm/recipes-bsp/scp-firmware/scp-firmware_git.bb +1 -1
@@ -6,7 +6,7 @@ LICENSE = "BSD-3-Clause & Apache-2.0" LIC_FILES_CHKSUM = "file://license.md;beginline=5;md5=9db9e3d2fb8d9300a6c3d15101b19731" SRC_URI = "gitsm://github.com/ARM-software/SCP-firmware.git;protocol=https" -SRCREV = "fd7c83561a7d76c7681d5d017fb23aa3664c028c" +SRCREV = "db19910aca6d1032eb0329e5fbb70a92b997f6f2" PROVIDES += "virtual/control-processor-firmware"
Signature · 1 line
2.26.2
Re: [meta-arm] [PATCH 7/9] arm/scp-firmware: move to 2.6.0 release tag
Quoted 7 lines · Ross Burton
From: Ross Burton <[email protected]>
Instead of an arbitrary commit, set the base recipe to build the 2.6.0 release.
Change-Id Iec78c6ed903edfd020cca1222770d8ec018ae78aSigned-off-by Ross Burton <[email protected]>
For some reason, this patch did not apply cleanly via git am. I applied it by hand, as it was faily trivial.
Thanks,
Jon
Quoted 26 lines
--- .../scp-firmware/{scp-firmware_git.bb => scp-firmware_2.6.0.bb} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename meta-arm/recipes-bsp/scp-firmware/{scp-firmware_git.bb => scp-firmware_2.6.0.bb} (97%)meta-arm/recipes-bsp/scp-firmware/scp-firmware_2.6.0.bb renamed from meta-arm/recipes-bsp/scp-firmware/scp-firmware_git.bb +1
-1@@ -6,7 +6,7 @@ LICENSE = "BSD-3-Clause & Apache-2.0" LIC_FILES_CHKSUM = "file://license.md;beginline=5;md5=9db9e3d2fb8d9300a6c3d15101b19731" SRC_URI = "gitsm://github.com/ARM-software/SCP-firmware.git;protocol=https" -SRCREV = "fd7c83561a7d76c7681d5d017fb23aa3664c028c" +SRCREV = "db19910aca6d1032eb0329e5fbb70a92b997f6f2" PROVIDES += "virtual/control-processor-firmware"Signature · 1 line
2.26.2
PATCH 8/9 arm-bsp/scp-firmware: use full version number 2.6.0, not 2.6
In reply to Ross BurtonFrom: Ross Burton <[email protected]>
--- meta-arm-bsp/recipes-bsp/scp-firmware/scp-firmware-n1sdp.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta-arm-bsp/recipes-bsp/scp-firmware/scp-firmware-n1sdp.inc +1 -1
@@ -6,7 +6,7 @@ SCP_LOG_LEVEL = "INFO" COMPATIBLE_MACHINE_n1sdp = "n1sdp" -PV = "2.6+git${SRCPV}" +PV = "2.6.0+git${SRCPV}" DEPENDS += "fiptool-native" DEPENDS += "virtual/trusted-firmware-a"
Signature · 1 line
2.26.2
PATCH 9/9 arm-bsp/scp-firmware: bump TC0 SRCREV and fix PV
In reply to Ross BurtonFrom: Ross Burton <[email protected]>
This is 2.6.0, not 2.6.
Also bump the SRCREV to match N1 SDP so that the core code is the same, that BSP uses a newer commit.
--- meta-arm-bsp/recipes-bsp/scp-firmware/scp-firmware-tc0.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
meta-arm-bsp/recipes-bsp/scp-firmware/scp-firmware-tc0.inc +2 -2
@@ -1,11 +1,11 @@ # TC0 specific SCP configuration # Intermediate SHA with 2.6 baseline version -SRCREV = "ba1db5fb0ee4a520836722f7a694177d461ab716" +SRCREV = "fd7c83561a7d76c7681d5d017fb23aa3664c028c" COMPATIBLE_MACHINE = "tc0" SCP_PLATFORM = "tc0" FW_TARGETS = "scp" -PV = "2.6+git${SRCPV}" +PV = "2.6.0+git${SRCPV}"
Signature · 1 line
2.26.2
Quoted 7 lines · Ross Burton
From: Ross Burton <[email protected]>
There's no other recipe that uses scp-firmware.inc, so merge it into the recipe for clarity.
Change-Id Ife1874b54c8b2be2704e1d0f5a7013ff89b8ca6eSigned-off-by Ross Burton <[email protected]>
Series added to master.
Thanks,
Jon
Quoted 175 lines
--- .../recipes-bsp/scp-firmware/scp-firmware.inc | 73 ------------------- .../scp-firmware/scp-firmware_git.bb | 73 ++++++++++++++++++- 2 files changed, 72 insertions(+), 74 deletions(-) delete mode 100644 meta-arm/recipes-bsp/scp-firmware/scp-firmware.incmeta-arm/recipes-bsp/scp-firmware/scp-firmware.inc deleted +0
-73@@ -1,73 +0,0 @@ -SUMMARY = "SCP and MCP Firmware" - -PROVIDES += "virtual/control-processor-firmware" - -SCP_BUILD_RELEASE ?= "1" -SCP_COMPILE_VERBOSE ?= "0" -SCP_PLATFORM ?= "invalid" -SCP_COMPILER ?= "arm-none-eabi" -SCP_LOG_LEVEL ?= "WARN" - -DEPENDS += "virtual/arm-none-eabi-gcc-native" - -SCP_BUILD_STR = "${@bb.utils.contains('SCP_BUILD_RELEASE', '1', 'release', 'debug', d)}" -SCP_COMP_STR = "${@bb.utils.contains('SCP_COMPILE_VERBOSE', '0', '', 'V=1', d)}" - -inherit python3native -inherit deploy - -B = "${WORKDIR}/build" -S = "${WORKDIR}/src" - -# Allow platform specific copying of only scp or both scp & mcp, default to both -FW_TARGETS ?= "scp mcp" - -COMPATIBLE_MACHINE ?= "invalid" - -LDFLAGS[unexport] = "1" - -# The gcc-arm-none-eabi version does not support -fmacro-prefix-max -DEBUG_PREFIX_MAP_pn-scp = "\ - -fdebug-prefix-map=${WORKDIR}=/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR} \ - -fdebug-prefix-map=${STAGING_DIR_HOST}= \ - -fdebug-prefix-map=${STAGING_DIR_NATIVE}= \ -" - -# No configure -do_configure[noexec] = "1" - -EXTRA_OEMAKE = "${SCP_COMP_STR} \ - BUILD_PATH='${B}' \ - PRODUCT='${SCP_PLATFORM}' \ - MODE='${SCP_BUILD_STR}' \ - LOG_LEVEL='${SCP_LOG_LEVEL}' \ - CC='${SCP_COMPILER}-gcc' \ - AR='${SCP_COMPILER}-ar' \ - SIZE='${SCP_COMPILER}-size' \ - OBJCOPY='${SCP_COMPILER}-objcopy' \ - " - -do_compile() { - oe_runmake -C "${S}" ${EXTRA_OEMAKE} -} -do_compile[cleandirs] += "${B}" - -do_install() { - install -d ${D}/firmware - for FW in ${FW_TARGETS}; do - for TYPE in ramfw romfw; do - install -D "${B}/product/${SCP_PLATFORM}/${FW}_${TYPE}/release/bin/${FW}_${TYPE}.bin" "${D}/firmware/" - done - done -} - -FILES_${PN} = "/firmware" -SYSROOT_DIRS += "/firmware" -# Skip QA check for relocations in .text of elf binaries -INSANE_SKIP_${PN} = "textrel" - -do_deploy() { - # Copy the images to deploy directory - cp -rf ${D}/firmware/* ${DEPLOYDIR}/ -} -addtask deploy after do_installmeta-arm/recipes-bsp/scp-firmware/scp-firmware_git.bb +72
-1@@ -1,3 +1,4 @@ +SUMMARY = "SCP and MCP Firmware" DESCRIPTION = "Firmware for SCP and MCP software reference implementation" HOMEPAGE = "https://github.com/ARM-software/SCP-firmware"@@ -17,4 +18,74 @@ SRCREV_scp = "fd7c83561a7d76c7681d5d017fb23aa3664c028c" SRCREV_cmsis = "refs/tags/5.2.0" SRCREV_FORMAT = "scp_cmsis" -require scp-firmware.inc +PROVIDES += "virtual/control-processor-firmware" + +SCP_BUILD_RELEASE ?= "1" +SCP_COMPILE_VERBOSE ?= "0" +SCP_PLATFORM ?= "invalid" +SCP_COMPILER ?= "arm-none-eabi" +SCP_LOG_LEVEL ?= "WARN" + +DEPENDS += "virtual/arm-none-eabi-gcc-native" + +SCP_BUILD_STR = "${@bb.utils.contains('SCP_BUILD_RELEASE', '1', 'release', 'debug', d)}" +SCP_COMP_STR = "${@bb.utils.contains('SCP_COMPILE_VERBOSE', '0', '', 'V=1', d)}" + +inherit python3native +inherit deploy + +B = "${WORKDIR}/build" +S = "${WORKDIR}/src" + +# Allow platform specific copying of only scp or both scp & mcp, default to both +FW_TARGETS ?= "scp mcp" + +COMPATIBLE_MACHINE ?= "invalid" + +LDFLAGS[unexport] = "1" + +# The gcc-arm-none-eabi version does not support -fmacro-prefix-max +DEBUG_PREFIX_MAP_pn-scp = "\ + -fdebug-prefix-map=${WORKDIR}=/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR} \ + -fdebug-prefix-map=${STAGING_DIR_HOST}= \ + -fdebug-prefix-map=${STAGING_DIR_NATIVE}= \ +" + +# No configure +do_configure[noexec] = "1" + +EXTRA_OEMAKE = "${SCP_COMP_STR} \ + BUILD_PATH='${B}' \ + PRODUCT='${SCP_PLATFORM}' \ + MODE='${SCP_BUILD_STR}' \ + LOG_LEVEL='${SCP_LOG_LEVEL}' \ + CC='${SCP_COMPILER}-gcc' \ + AR='${SCP_COMPILER}-ar' \ + SIZE='${SCP_COMPILER}-size' \ + OBJCOPY='${SCP_COMPILER}-objcopy' \ + " + +do_compile() { + oe_runmake -C "${S}" ${EXTRA_OEMAKE} +} +do_compile[cleandirs] += "${B}" + +do_install() { + install -d ${D}/firmware + for FW in ${FW_TARGETS}; do + for TYPE in ramfw romfw; do + install -D "${B}/product/${SCP_PLATFORM}/${FW}_${TYPE}/release/bin/${FW}_${TYPE}.bin" "${D}/firmware/" + done + done +} + +FILES_${PN} = "/firmware" +SYSROOT_DIRS += "/firmware" +# Skip QA check for relocations in .text of elf binaries +INSANE_SKIP_${PN} = "textrel" + +do_deploy() { + # Copy the images to deploy directory + cp -rf ${D}/firmware/* ${DEPLOYDIR}/ +} +addtask deploy after do_installSignature · 1 line
2.26.2