package/rpi-firmware: update vcdbg runtime dependencies
PATCH 1/1 package/rpi-firmware: update vcdbg runtime dependencies
We used to select the rpi-userland to make the vcdbg tool work but it conflict with the use of mesa. It implies we can not install vcdbg with mesa libraries but it is false. We could use the prebuilt libraries from the rpi-firmware sources to run vcdbg.
This patch removes the select dependency of rpi-userland package and installs the prebuilt libraries needed by vcdbg only if rpi-userland is not selected.
--- package/rpi-firmware/Config.in | 1 - package/rpi-firmware/rpi-firmware.mk | 11 +++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-)
package/rpi-firmware/Config.in +0 -1
@@ -98,7 +98,6 @@ config BR2_PACKAGE_RPI_FIRMWARE_INSTALL_VCDBG depends on BR2_arm # prebuilt arm binary, rpi-userland depends on BR2_TOOLCHAIN_USES_GLIBC depends on BR2_INSTALL_LIBSTDCPP # rpi-userland - select BR2_PACKAGE_RPI_USERLAND help Install vcdbg, to help debug communication with the GPU.
package/rpi-firmware/rpi-firmware.mk +11 -0
@@ -32,12 +32,23 @@ define RPI_FIRMWARE_INSTALL_DTB_OVERLAYS endef endif +# Install prebuilt libraries if RPI_USERLAND not enabled +ifneq ($(BR2_PACKAGE_RPI_USERLAND),y) +define RPI_FIRMWARE_INSTALL_TARGET_LIB + $(INSTALL) -D -m 0644 $(@D)/$(if BR2_ARM_EABIHF,hardfp/)opt/vc/lib/libvcos.so \ + $(TARGET_DIR)/usr/lib/libvcos.so + $(INSTALL) -D -m 0644 $(@D)/$(if BR2_ARM_EABIHF,hardfp/)opt/vc/lib/libdebug_sym.so \ + $(TARGET_DIR)/usr/lib/libdebug_sym.so +endef +endif + ifeq ($(BR2_PACKAGE_RPI_FIRMWARE_INSTALL_VCDBG),y) define RPI_FIRMWARE_INSTALL_TARGET_CMDS $(INSTALL) -D -m 0700 $(@D)/$(if BR2_ARM_EABIHF,hardfp/)opt/vc/bin/vcdbg \ $(TARGET_DIR)/usr/sbin/vcdbg $(INSTALL) -D -m 0644 $(@D)/$(if BR2_ARM_EABIHF,hardfp/)opt/vc/lib/libelftoolchain.so \ $(TARGET_DIR)/usr/lib/libelftoolchain.so + $(RPI_FIRMWARE_INSTALL_TARGET_LIB) endef endif # INSTALL_VCDBG
Signature · 6 lines
2.25.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 11 lines · Kory Maincent
We used to select the rpi-userland to make the vcdbg tool work but it conflict with the use of mesa. It implies we can not install vcdbg with mesa libraries but it is false. We could use the prebuilt libraries from the rpi-firmware sources to run vcdbg.
This patch removes the select dependency of rpi-userland package and installs the prebuilt libraries needed by vcdbg only if rpi-userland is not selected.
Signed-off-by Kory Maincent <[email protected]>
Review
Quoted 6 lines
--- package/rpi-firmware/Config.in | 1 - package/rpi-firmware/rpi-firmware.mk | 11 +++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-)(quoted diff) +0
-0
b/package/rpi-firmware/Config.in
package/rpi-firmware/
Quoted 12 lines
index
f5a25c5680..d8bcc8ba96100644package/rpi-firmware/Config.in +0
-1@@ -98,7 +98,6 @@ config BR2_PACKAGE_RPI_FIRMWARE_INSTALL_VCDBG depends on BR2_arm # prebuilt arm binary, rpi-userland depends on BR2_TOOLCHAIN_USES_GLIBC depends on BR2_INSTALL_LIBSTDCPP # rpi-userland - select BR2_PACKAGE_RPI_USERLAND help Install vcdbg, to help debug communication with the GPU.package/rpi-firmware/ renamed from package/rpi-firmware/rpi-firmware.mk +0
-0
rpi-firmware.mk
package/rpi-firmware/rpi-firmware.mk define RPI_FIRMWARE_INSTALL_DTB_OVERLAYS · line 38
Quoted 11 lines
index
d74f7155c7..743a259dc3100644package/rpi-firmware/rpi-firmware.mk +4
-0@@ -32,12 +32,23 @@ define RPI_FIRMWARE_INSTALL_DTB_OVERLAYS endef endif +# Install prebuilt libraries if RPI_USERLAND not enabled +ifneq ($(BR2_PACKAGE_RPI_USERLAND),y) +define RPI_FIRMWARE_INSTALL_TARGET_LIB + $(INSTALL) -D -m 0644 $(@D)/$(if
BR2_ARM_EABIHF,hardfp/)opt/vc/lib/libvcos.so \
package/rpi-firmware/rpi-firmware.mk define RPI_FIRMWARE_INSTALL_DTB_OVERLAYS · line 40
Quoted 2 lines
package/rpi-firmware/rpi-firmware.mk +2
-0+ $(TARGET_DIR)/usr/lib/libvcos.so + $(INSTALL) -D -m 0644 $(@D)/$(if
BR2_ARM_EABIHF,hardfp/)opt/vc/lib/libdebug_sym.so \
package/rpi-firmware/rpi-firmware.mk define RPI_FIRMWARE_INSTALL_DTB_OVERLAYS
Quoted 7 lines
package/rpi-firmware/rpi-firmware.mk +4
-0+ $(TARGET_DIR)/usr/lib/libdebug_sym.so +endef +endif + ifeq ($(BR2_PACKAGE_RPI_FIRMWARE_INSTALL_VCDBG),y) define RPI_FIRMWARE_INSTALL_TARGET_CMDS $(INSTALL) -D -m 0700 $(@D)/$(if
BR2_ARM_EABIHF,hardfp/)opt/vc/bin/vcdbg \
package/rpi-firmware/rpi-firmware.mk define RPI_FIRMWARE_INSTALL_DTB_OVERLAYS · line 49
Quoted 2 lines
package/rpi-firmware/rpi-firmware.mk +0
-0$(TARGET_DIR)/usr/sbin/vcdbg $(INSTALL) -D -m 0644 $(@D)/$(if
BR2_ARM_EABIHF,hardfp/)opt/vc/lib/libelftoolchain.so \
Quoted 8 lines
package/rpi-firmware/rpi-firmware.mk +1
-1$(TARGET_DIR)/usr/lib/libelftoolchain.so + $(RPI_FIRMWARE_INSTALL_TARGET_LIB) endef endif # INSTALL_VCDBG --2.25.1
Quoted 4 lines
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Arnout Vandecappelle
AppliedQuoted 10 lines · Kory Maincent
We used to select the rpi-userland to make the vcdbg tool work but it conflict with the use of mesa. It implies we can not install vcdbg with mesa libraries but it is false. We could use the prebuilt libraries from the rpi-firmware sources to run vcdbg.
This patch removes the select dependency of rpi-userland package and installs the prebuilt libraries needed by vcdbg only if rpi-userland is not selected.
Signed-off-by Kory Maincent <[email protected]>
Applied to master, thanks.
Regards,
Arnout
Quoted 36 lines
--- package/rpi-firmware/Config.in | 1 - package/rpi-firmware/rpi-firmware.mk | 11 +++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-)package/rpi-firmware/Config.in +0
-1@@ -98,7 +98,6 @@ config BR2_PACKAGE_RPI_FIRMWARE_INSTALL_VCDBG depends on BR2_arm # prebuilt arm binary, rpi-userland depends on BR2_TOOLCHAIN_USES_GLIBC depends on BR2_INSTALL_LIBSTDCPP # rpi-userland - select BR2_PACKAGE_RPI_USERLAND help Install vcdbg, to help debug communication with the GPU.package/rpi-firmware/rpi-firmware.mk +10
-0@@ -32,12 +32,23 @@ define RPI_FIRMWARE_INSTALL_DTB_OVERLAYS endef endif +# Install prebuilt libraries if RPI_USERLAND not enabled +ifneq ($(BR2_PACKAGE_RPI_USERLAND),y) +define RPI_FIRMWARE_INSTALL_TARGET_LIB + $(INSTALL) -D -m 0644 $(@D)/$(if BR2_ARM_EABIHF,hardfp/)opt/vc/lib/libvcos.so \ + $(TARGET_DIR)/usr/lib/libvcos.so + $(INSTALL) -D -m 0644 $(@D)/$(if BR2_ARM_EABIHF,hardfp/)opt/vc/lib/libdebug_sym.so \ + $(TARGET_DIR)/usr/lib/libdebug_sym.so +endef +endif +
package/rpi-firmware/rpi-firmware.mk define RPI_FIRMWARE_INSTALL_DTB_OVERLAYS · line 54
Quoted 10 lines
package/rpi-firmware/rpi-firmware.mk +1
-0ifeq ($(BR2_PACKAGE_RPI_FIRMWARE_INSTALL_VCDBG),y) define RPI_FIRMWARE_INSTALL_TARGET_CMDS $(INSTALL) -D -m 0700 $(@D)/$(if BR2_ARM_EABIHF,hardfp/)opt/vc/bin/vcdbg \ $(TARGET_DIR)/usr/sbin/vcdbg $(INSTALL) -D -m 0644 $(@D)/$(if BR2_ARM_EABIHF,hardfp/)opt/vc/lib/libelftoolchain.so \ $(TARGET_DIR)/usr/lib/libelftoolchain.so + $(RPI_FIRMWARE_INSTALL_TARGET_LIB) endef endif # INSTALL_VCDBG
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot