Skip to content

Commit 15bc1a6

Browse files
committed
Fix picotool_DIR passing to universal build
Fixes raspberrypi#531
1 parent 816a198 commit 15bc1a6

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

universal/CMakeLists.txt

+6-1
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@ function (add_universal_target TARGET SOURCE)
4848
endif()
4949

5050
add_custom_target(${TARGET} ALL)
51+
if (picotool_DIR)
52+
set(universal_picotool_DIR ${picotool_DIR})
53+
else()
54+
set(universal_picotool_DIR ${picotool_INSTALL_DIR}/picotool)
55+
endif()
5156

5257
set(DEPS "")
5358
set(BINS "")
@@ -70,7 +75,7 @@ function (add_universal_target TARGET SOURCE)
7075
"-DUNIVERSAL_PROJECT_DIR:FILEPATH=${SOURCE}"
7176
"-DUNIVERSAL_BINARY_DIR:FILEPATH=${CMAKE_CURRENT_BINARY_DIR}/${TARGET}/${platform}"
7277
"-DSOURCE_TARGET=${SOURCE_TARGET}"
73-
"-Dpicotool_DIR=${picotool_INSTALL_DIR}/picotool"
78+
"-Dpicotool_DIR=${universal_picotool_DIR}"
7479
"-Dpioasm_DIR=${PIOASM_INSTALL_DIR}/pioasm"
7580
BUILD_ALWAYS 1 # force dependency checking
7681
INSTALL_COMMAND ""

0 commit comments

Comments
 (0)