0009-fix-cmake-dependency-race.patch 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. From f324e2724973aa76d054c3662d5d0903fd405390 Mon Sep 17 00:00:00 2001
  2. From: Khem Raj <raj.khem@gmail.com>
  3. Date: Sat, 6 Feb 2016 13:12:47 -0800
  4. Subject: [PATCH] fix cmake dependency race
  5. Fixes errors like
  6. /a/builder/mnt/build-oe/tmp-glibc/work/raspberrypi2-oe-linux-gnueabi/userland/git-r5/git/interface/vmcs_host/vc_vchi_dispmanx.h:72:66:
  7. fatal error: interface/vmcs_host/wayland-dispmanx-server-protocol.h: No
  8. such file or directory
  9. compilation terminated.
  10. interface/khronos/CMakeFiles/EGL_static.dir/build.make:773: recipe for
  11. target 'interface/khronos/CMakeFiles/EGL_static.dir/ext/egl_wayland.c.o'
  12. failed
  13. make[2]: ***
  14. [interface/khronos/CMakeFiles/EGL_static.dir/ext/egl_wayland.c.o] Error 1
  15. Signed-off-by: Khem Raj <raj.khem@gmail.com>
  16. ---
  17. Upstream-Status: Pending
  18. interface/vcos/pthreads/CMakeLists.txt | 8 ++++++++
  19. interface/vmcs_host/CMakeLists.txt | 8 --------
  20. interface/vmcs_host/vc_vchi_dispmanx.h | 2 +-
  21. 3 files changed, 9 insertions(+), 9 deletions(-)
  22. diff --git a/interface/vcos/pthreads/CMakeLists.txt b/interface/vcos/pthreads/CMakeLists.txt
  23. index 1d81ca3..d6cd415 100644
  24. --- a/interface/vcos/pthreads/CMakeLists.txt
  25. +++ b/interface/vcos/pthreads/CMakeLists.txt
  26. @@ -33,6 +33,14 @@ set (SOURCES
  27. ../generic/vcos_generic_blockpool.c
  28. )
  29. +if (BUILD_WAYLAND)
  30. +wayland_add_protocol_server(
  31. + SOURCES
  32. + ../../../interface/wayland/dispmanx.xml
  33. + dispmanx
  34. +)
  35. +endif ()
  36. +
  37. if (VCOS_PTHREADS_BUILD_SHARED)
  38. add_library (vcos SHARED ${SOURCES})
  39. target_link_libraries (vcos pthread dl rt)
  40. diff --git a/interface/vmcs_host/CMakeLists.txt b/interface/vmcs_host/CMakeLists.txt
  41. index 552312a..775742d 100755
  42. --- a/interface/vmcs_host/CMakeLists.txt
  43. +++ b/interface/vmcs_host/CMakeLists.txt
  44. @@ -15,14 +15,6 @@ set(VCHOSTIF_SOURCE
  45. # ${VMCS_TARGET}/vmcs_main.c
  46. # vc_vchi_haud.c
  47. -if (BUILD_WAYLAND)
  48. -wayland_add_protocol_server(
  49. - VCHOSTIF_SOURCE
  50. - ../../interface/wayland/dispmanx.xml
  51. - dispmanx
  52. -)
  53. -endif ()
  54. -
  55. add_library(vchostif ${VCHOSTIF_SOURCE})
  56. #add_library(bufman vc_vchi_bufman.c )
  57. diff --git a/interface/vmcs_host/vc_vchi_dispmanx.h b/interface/vmcs_host/vc_vchi_dispmanx.h
  58. index f0bae30..8c44c58 100644
  59. --- a/interface/vmcs_host/vc_vchi_dispmanx.h
  60. +++ b/interface/vmcs_host/vc_vchi_dispmanx.h
  61. @@ -69,7 +69,7 @@ typedef struct {
  62. #ifdef BUILD_WAYLAND
  63. /* XXX: This should be in a private header that can be included from EGL and vc_* */
  64. #include <wayland-server.h>
  65. -#include "interface/vmcs_host/wayland-dispmanx-server-protocol.h"
  66. +#include "interface/vcos/pthreads/wayland-dispmanx-server-protocol.h"
  67. struct wl_dispmanx_server_buffer {
  68. struct wl_resource *resource;
  69. struct wl_dispmanx *dispmanx;