package/rpi-userland: fix hello_ applications

The HELLO_ examples fail to run because the librevision.so
library build by the userland package is not included
in the image.

Include this library if BR2_PACKAGE_RPI_USERLAND_HELLO
is selected.

Signed-off-by: Tim Gover <tim.gover@raspberrypi.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Tim Gover 2022-11-02 14:48:58 +00:00 committed by Thomas Petazzoni
parent a353cf8736
commit 5044928bae

View File

@ -25,6 +25,9 @@ define RPI_USERLAND_EXTRA_LIBS_TARGET
$(INSTALL) -m 0644 -D \
$(@D)/build/lib/libilclient.so \
$(TARGET_DIR)/usr/lib/libilclient.so
$(INSTALL) -m 0644 -D \
$(@D)/build/lib/librevision.so \
$(TARGET_DIR)/usr/lib/librevision.so
endef
RPI_USERLAND_POST_INSTALL_TARGET_HOOKS += RPI_USERLAND_EXTRA_LIBS_TARGET
@ -32,6 +35,9 @@ define RPI_USERLAND_EXTRA_LIBS_STAGING
$(INSTALL) -m 0644 -D \
$(@D)/build/lib/libilclient.so \
$(STAGING_DIR)/usr/lib/libilclient.so
$(INSTALL) -m 0644 -D \
$(@D)/build/lib/librevision.so \
$(STAGING_DIR)/usr/lib/librevision.so
endef
RPI_USERLAND_POST_INSTALL_STAGING_HOOKS += RPI_USERLAND_EXTRA_LIBS_STAGING