package/freescale-imx/imx-gpu-g2d: drop BR2_PACKAGE_IMX_GPU_G2D_EXAMPLES

Arm and aarch64 packages don't contain examples anymore so drop the
config option to install them to prevent build failure when selected:

>>> imx-gpu-g2d 6.4.3.p4.4-arm Installing to target
mkdir -p /home/sszy/br-test-pkg/bootlin-armv7-glibc/target/usr/share/examples/
cp -a /home/sszy/br-test-pkg/bootlin-armv7-glibc/build/imx-gpu-g2d-6.4.3.p4.4-arm/gpu-demos/opt/* /home/sszy/br-test-pkg/bootlin-armv7-glibc/target/usr/share/examples/
cp: cannot stat '/home/sszy/br-test-pkg/bootlin-armv7-glibc/build/imx-gpu-g2d-6.4.3.p4.4-arm/gpu-demos/opt/*': No such file or directory
make: *** [package/pkg-generic.mk:384: /home/sszy/br-test-pkg/bootlin-armv7-glibc/build/imx-gpu-g2d-6.4.3.p4.4-arm/.stamp_target_installed] Error 1

Fixes: b84557b588 ("package/freescale-imx/imx-gpu-g2d: bump version to 6.4.3.p4.4")
Signed-off-by: Sébastien Szymanski <sebastien.szymanski@armadeus.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2023.02.x
Sébastien Szymanski 2023-02-24 11:53:15 +01:00 committed by Thomas Petazzoni
parent 4a99d6611f
commit 333580b680
3 changed files with 6 additions and 17 deletions

View File

@ -146,6 +146,12 @@ endif
comment "Legacy options removed in 2023.02"
config BR2_PACKAGE_IMX_GPU_G2D_EXAMPLES
bool "imx-gpu-g2d examples removed"
select BR2_LEGACY
help
The examples are not provided by NXP anymore.
config BR2_KERNEL_HEADERS_6_0
bool "kernel headers version 6.0.x are no longer supported"
select BR2_LEGACY

View File

@ -18,12 +18,3 @@ config BR2_PACKAGE_IMX_GPU_G2D
This library is provided by NXP as-is and doesn't have an
upstream.
if BR2_PACKAGE_IMX_GPU_G2D
config BR2_PACKAGE_IMX_GPU_G2D_EXAMPLES
bool "install examples"
help
Copy the Vivante G2D examples to the target.
endif

View File

@ -26,15 +26,7 @@ define IMX_GPU_G2D_INSTALL_STAGING_CMDS
cp -a $(@D)/g2d/usr/* $(STAGING_DIR)/usr
endef
ifeq ($(BR2_PACKAGE_IMX_GPU_G2D_EXAMPLES),y)
define IMX_GPU_G2D_INSTALL_EXAMPLES
mkdir -p $(TARGET_DIR)/usr/share/examples/
cp -a $(@D)/gpu-demos/opt/* $(TARGET_DIR)/usr/share/examples/
endef
endif
define IMX_GPU_G2D_INSTALL_TARGET_CMDS
$(IMX_GPU_G2D_INSTALL_EXAMPLES)
cp -a $(@D)/g2d/usr/lib $(TARGET_DIR)/usr
endef