From ee17021681b8f436bdd9e7fe8688fb44be3bb086 Mon Sep 17 00:00:00 2001 From: Trevor Woerner Date: Mon, 2 Oct 2023 20:22:30 -0400 Subject: [PATCH] u-boot cleanup: move task According to the Yocto Recipe Style Guide[1] the tasks should be at the end. [1] https://docs.yoctoproject.org/dev/contributor-guide/recipe-style-guide.html Reviewed-by: Quentin Schulz Signed-off-by: Trevor Woerner --- recipes-bsp/u-boot/u-boot%.bbappend | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/recipes-bsp/u-boot/u-boot%.bbappend b/recipes-bsp/u-boot/u-boot%.bbappend index f780062..c8444aa 100644 --- a/recipes-bsp/u-boot/u-boot%.bbappend +++ b/recipes-bsp/u-boot/u-boot%.bbappend @@ -1,10 +1,3 @@ -do_compile:append:rock2-square () { - # copy to default search path - if [ "${SPL_BINARY}" = "u-boot-spl-dtb.bin" ]; then - cp ${B}/spl/${SPL_BINARY} ${B} - fi -} - DEPENDS:append:rock-pi-4 = " gnutls-native" # various machines require the pyelftools library for parsing dtb files DEPENDS:append = " python3-pyelftools-native" @@ -25,3 +18,10 @@ EXTRA_OEMAKE:append:px30 = " BL31=${DEPLOY_DIR_IMAGE}/bl31-px30.elf" INIT_FIRMWARE_DEPENDS:px30 = " trusted-firmware-a:do_deploy" do_compile[depends] .= "${INIT_FIRMWARE_DEPENDS}" + +do_compile:append:rock2-square () { + # copy to default search path + if [ "${SPL_BINARY}" = "u-boot-spl-dtb.bin" ]; then + cp ${B}/spl/${SPL_BINARY} ${B} + fi +}