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
6 Currently, we add a custom command that installs the dtoverlay pre/post
7 scripts in ${CMAKE_BINARY_DIR}/../../bin
11 - this points outside of the package directory.; it even points two
14 - when doing cross-compilation, this is definitely not the place where
15 the /bin directory really is;
17 - the scripts are already properly installed without this code.
19 Remove that code, it serves no purpose and breaks for cross-compilation.
21 Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
23 host_applications/linux/apps/dtoverlay/CMakeLists.txt | 8 --------
24 1 file changed, 8 deletions(-)
26 diff --git a/host_applications/linux/apps/dtoverlay/CMakeLists.txt b/host_applications/linux/apps/dtoverlay/CMakeLists.txt
27 index 9009200..dd48d83 100755
28 --- a/host_applications/linux/apps/dtoverlay/CMakeLists.txt
29 +++ b/host_applications/linux/apps/dtoverlay/CMakeLists.txt
30 @@ -22,12 +22,4 @@ add_custom_command(TARGET dtoverlay POST_BUILD COMMAND ln;-sf;dtoverlay;dtparam)
31 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/dtparam DESTINATION bin)
33 set(DTOVERLAY_SCRIPTS dtoverlay-pre dtoverlay-post)
34 -foreach(_script ${DTOVERLAY_SCRIPTS})
37 - COMMAND ${CMAKE_COMMAND}
38 - -E copy ${CMAKE_CURRENT_SOURCE_DIR}/${_script}
39 - ${CMAKE_BINARY_DIR}/../../bin/${_script}
42 install(PROGRAMS ${DTOVERLAY_SCRIPTS} DESTINATION bin)