Skip to content

Commit

Permalink
LDL-132 Imported and fixed to be able to use the toolchain at the out…
Browse files Browse the repository at this point in the history
…side of the repository.
  • Loading branch information
jsjeong committed Sep 10, 2023
1 parent eace934 commit cae065f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build/BUILD.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

TOOLCHAIN_PATH="${PWD}/../kendryte-toolchain/bin"
TOOLCHAIN_PATH="${TOOLCHAIN_PATH:-${PWD}/../kendryte-toolchain/bin}"

# ==== Build BOOTLOADER0 (runs from low SRAM address) ====

Expand Down
7 changes: 4 additions & 3 deletions lib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ include_directories(${CMAKE_CURRENT_LIST_DIR}/drivers/include ${CMAKE_CURRENT_LI
SET_PROPERTY(SOURCE ${ASSEMBLY_FILES} PROPERTY LANGUAGE C)
SET_SOURCE_FILES_PROPERTIES(${ASSEMBLY_FILES} PROPERTIES COMPILE_FLAGS "-x assembler-with-cpp -D __riscv64")

ADD_LIBRARY(kendryte
${LIB_SRC}
)
#ADD_LIBRARY(kendryte
# ${LIB_SRC}
# )
ADD_LIBRARY(kendryte INTERFACE)
SET_TARGET_PROPERTIES(kendryte PROPERTIES LINKER_LANGUAGE C)

0 comments on commit cae065f

Please sign in to comment.