summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabio Berton <fabio.berton@ossystems.com.br>2020-04-01 16:30:47 -0300
committerAndrei Gherzan <andrei@gherzan.ro>2020-04-03 17:32:19 +0100
commit44d7dd0e4a4ad2fb426772f6d87ca95c9c8152b0 (patch)
tree5b616dd5286ce2698aa5c7b063a2ececd0301fa0
parentacca2a00ebf7b375f4b22274723b46d6a86a2b7e (diff)
downloadmeta-raspberrypi-44d7dd0e4a4ad2fb426772f6d87ca95c9c8152b0.tar.gz
rpi-u-boot-scr: Set u-boot-default-script as provider
Add u-boot-default-script to the PROVIDES variable to make easier to replace boot script in another layer just by changing PREFERRED_PROVIDER_u-boot-default-script variable. Set rpi-u-boot-scr as the default provider for meta-raspberrypi. Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
-rw-r--r--classes/sdcard_image-rpi.bbclass2
-rw-r--r--conf/machine/include/rpi-default-providers.inc2
-rw-r--r--recipes-bsp/rpi-u-boot-scr/rpi-u-boot-scr.bb2
-rw-r--r--recipes-bsp/u-boot/u-boot_%.bbappend2
4 files changed, 6 insertions, 2 deletions
diff --git a/classes/sdcard_image-rpi.bbclass b/classes/sdcard_image-rpi.bbclass
index 177988e..43426b2 100644
--- a/classes/sdcard_image-rpi.bbclass
+++ b/classes/sdcard_image-rpi.bbclass
@@ -58,7 +58,7 @@ do_image_rpi_sdimg[depends] = " \
58 rpi-config:do_deploy \ 58 rpi-config:do_deploy \
59 ${@bb.utils.contains('MACHINE_FEATURES', 'armstub', 'armstubs:do_deploy', '' ,d)} \ 59 ${@bb.utils.contains('MACHINE_FEATURES', 'armstub', 'armstubs:do_deploy', '' ,d)} \
60 ${@bb.utils.contains('RPI_USE_U_BOOT', '1', 'u-boot:do_deploy', '',d)} \ 60 ${@bb.utils.contains('RPI_USE_U_BOOT', '1', 'u-boot:do_deploy', '',d)} \
61 ${@bb.utils.contains('RPI_USE_U_BOOT', '1', 'rpi-u-boot-scr:do_deploy', '',d)} \ 61 ${@bb.utils.contains('RPI_USE_U_BOOT', '1', 'u-boot-default-script:do_deploy', '',d)} \
62" 62"
63 63
64do_image_rpi_sdimg[recrdeps] = "do_build" 64do_image_rpi_sdimg[recrdeps] = "do_build"
diff --git a/conf/machine/include/rpi-default-providers.inc b/conf/machine/include/rpi-default-providers.inc
index d5785fa..181b936 100644
--- a/conf/machine/include/rpi-default-providers.inc
+++ b/conf/machine/include/rpi-default-providers.inc
@@ -11,3 +11,5 @@ PREFERRED_PROVIDER_jpeg ?= "jpeg"
11 11
12PREFERRED_PROVIDER_virtual/libomxil ?= "userland" 12PREFERRED_PROVIDER_virtual/libomxil ?= "userland"
13VIRTUAL-RUNTIME_libomxil = "userland" 13VIRTUAL-RUNTIME_libomxil = "userland"
14
15PREFERRED_PROVIDER_u-boot-default-script ??= "rpi-u-boot-scr"
diff --git a/recipes-bsp/rpi-u-boot-scr/rpi-u-boot-scr.bb b/recipes-bsp/rpi-u-boot-scr/rpi-u-boot-scr.bb
index 593fc90..4cb8978 100644
--- a/recipes-bsp/rpi-u-boot-scr/rpi-u-boot-scr.bb
+++ b/recipes-bsp/rpi-u-boot-scr/rpi-u-boot-scr.bb
@@ -24,3 +24,5 @@ do_deploy() {
24} 24}
25 25
26addtask do_deploy after do_compile before do_build 26addtask do_deploy after do_compile before do_build
27
28PROVIDES += "u-boot-default-script"
diff --git a/recipes-bsp/u-boot/u-boot_%.bbappend b/recipes-bsp/u-boot/u-boot_%.bbappend
index 95015f4..9ce6425 100644
--- a/recipes-bsp/u-boot/u-boot_%.bbappend
+++ b/recipes-bsp/u-boot/u-boot_%.bbappend
@@ -1 +1 @@
DEPENDS_append_rpi = " rpi-u-boot-scr" DEPENDS_append_rpi = " u-boot-default-script"