2
1

0006-host-apps-dtoverlay-don-t-install-script-in-random-l.patch 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. From a5a4e361c8116ca9228a896f672102c02be56bb7 Mon Sep 17 00:00:00 2001
  2. From: "Yann E. MORIN" <yann.morin.1998@free.fr>
  3. Date: Tue, 7 Mar 2017 22:01:39 +0100
  4. Subject: [PATCH] host-apps/dtoverlay: don't install script in random location
  5. Currently, we add a custom command that installs the dtoverlay pre/post
  6. scripts in ${CMAKE_BINARY_DIR}/../../bin
  7. However:
  8. - this points outside of the package directory.; it even points two
  9. directories higher;
  10. - when doing cross-compilation, this is definitely not the place where
  11. the /bin directory really is;
  12. - the scripts are already properly installed without this code.
  13. Remove that code, it serves no purpose and breaks for cross-compilation.
  14. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
  15. ---
  16. host_applications/linux/apps/dtoverlay/CMakeLists.txt | 8 --------
  17. 1 file changed, 8 deletions(-)
  18. diff --git a/host_applications/linux/apps/dtoverlay/CMakeLists.txt b/host_applications/linux/apps/dtoverlay/CMakeLists.txt
  19. index 9009200..dd48d83 100755
  20. --- a/host_applications/linux/apps/dtoverlay/CMakeLists.txt
  21. +++ b/host_applications/linux/apps/dtoverlay/CMakeLists.txt
  22. @@ -22,12 +22,4 @@ add_custom_command(TARGET dtoverlay POST_BUILD COMMAND ln;-sf;dtoverlay;dtparam)
  23. install(FILES ${CMAKE_CURRENT_BINARY_DIR}/dtparam DESTINATION bin)
  24. set(DTOVERLAY_SCRIPTS dtoverlay-pre dtoverlay-post)
  25. -foreach(_script ${DTOVERLAY_SCRIPTS})
  26. - add_custom_command(
  27. - TARGET dtoverlay
  28. - COMMAND ${CMAKE_COMMAND}
  29. - -E copy ${CMAKE_CURRENT_SOURCE_DIR}/${_script}
  30. - ${CMAKE_BINARY_DIR}/../../bin/${_script}
  31. - )
  32. -endforeach()
  33. install(PROGRAMS ${DTOVERLAY_SCRIPTS} DESTINATION bin)
  34. --
  35. 2.7.4