Fix: rsync / on target.
authorRomain Forlot <romain.forlot@iot.bzh>
Wed, 24 May 2017 16:43:43 +0000 (18:43 +0200)
committerRomain Forlot <romain.forlot@iot.bzh>
Wed, 24 May 2017 16:43:43 +0000 (18:43 +0200)
Populate target with the correct path.

Change-Id: I25df58cbc14ca2e0d20450a6be97c635f9c2a4b3
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
cmake/common.cmake

index fadba0e..a78d246 100644 (file)
@@ -168,7 +168,7 @@ macro(remote_targets_populate)
                add_custom_target(remote-target-populate
                        DEPENDS populate
                        COMMAND chmod +x ${CMAKE_CURRENT_BINARY_DIR}/target/start-on-${RSYNC_TARGET}.sh
-                       COMMAND rsync --archive --delete ${PROJECT_PKG_DIR}/ ${RSYNC_TARGET}:${RSYNC_PREFIX}/${PROJECT_NAME}
+                       COMMAND rsync --archive --delete ${PROJECT_PKG_BUILD_DIR}/ ${RSYNC_TARGET}:${RSYNC_PREFIX}/${PROJECT_NAME}
                        COMMENT "${REMOTE_LAUNCH}"
                )
        endif()