external-system_0.1.0.bb 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. SUMMARY = "External system Cortex-M3 Firmware"
  2. DESCRIPTION = "Firmware to be loaded and run in External System Harness in\
  3. support to the main application CPU."
  4. HOMEPAGE = "https://git.linaro.org/landing-teams/working/arm/external-system.git"
  5. DEPENDS = "gcc-arm-none-eabi-native"
  6. INHIBIT_DEFAULT_DEPS = "1"
  7. LICENSE = "BSD-3-Clause & Apache-2.0"
  8. LIC_FILES_CHKSUM = "file://license.md;md5=e44b2531cd6ffe9dece394dbe988d9a0 \
  9. file://cmsis/LICENSE.txt;md5=e3fc50a88d0a364313df4b21ef20c29e"
  10. SRC_URI = "gitsm://git.gitlab.arm.com/arm-reference-solutions/corstone1000/external_system/rtx.git;protocol=https;branch=master \
  11. file://0001-tools-gen_module_code-atomically-rewrite-the-generat.patch"
  12. SRCREV = "8c9dca74b104ff6c9722fb0738ba93dd3719c080"
  13. PV .= "+git"
  14. COMPATIBLE_MACHINE = "(corstone1000)"
  15. PACKAGE_ARCH = "${MACHINE_ARCH}"
  16. # PRODUCT is passed to the Makefile to specify the platform to be used.
  17. PRODUCT = "corstone-1000"
  18. B = "${WORKDIR}/build"
  19. # remove once arm-none-eabi-gcc updates to 13 or newer like poky
  20. DEBUG_PREFIX_MAP:remove = "-fcanon-prefix-map"
  21. LDFLAGS[unexport] = "1"
  22. do_compile() {
  23. oe_runmake -C ${S} V=y \
  24. BUILD_PATH=${B} \
  25. PRODUCT=${PRODUCT} \
  26. CROSS_COMPILE=arm-none-eabi- \
  27. all
  28. }
  29. do_compile[cleandirs] = "${B}"
  30. do_install() {
  31. install -D -p -m 0644 ${B}/product/${PRODUCT}/firmware/release/bin/firmware.bin ${D}${nonarch_base_libdir}/firmware/es_flashfw.bin
  32. install -D -p -m 0644 ${B}/product/${PRODUCT}/firmware/release/bin/firmware.elf ${D}${nonarch_base_libdir}/firmware/es_flashfw.elf
  33. }
  34. FILES:${PN} = "${nonarch_base_libdir}/firmware/es_flashfw.bin"
  35. FILES:${PN}-elf = "${nonarch_base_libdir}/firmware/es_flashfw.elf"
  36. PACKAGES += "${PN}-elf"
  37. INSANE_SKIP:${PN}-elf += "arch"
  38. SYSROOT_DIRS += "${nonarch_base_libdir}/firmware"
  39. inherit deploy
  40. do_deploy() {
  41. cp -rf ${D}${nonarch_base_libdir}/firmware/* ${DEPLOYDIR}/
  42. }
  43. addtask deploy after do_install