summaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorLojewski, Evan <github@meklort.com>2019-05-11 17:40:57 -0600
committerLojewski, Evan <github@meklort.com>2019-05-11 17:40:57 -0600
commit889a9e53b6ad5d45a2ac3fe99c853c4d03753a2d (patch)
treeb6cf7eee3f0777317a200c8cc346d8b93bf66a06 /cmake
parent447079c15d52cce3a97bbd223194121f7ed609ef (diff)
downloadbcm5719-ortega-889a9e53b6ad5d45a2ac3fe99c853c4d03753a2d.tar.gz
bcm5719-ortega-889a9e53b6ad5d45a2ac3fe99c853c4d03753a2d.zip
Update cross compilation to use ld from compiler, remove system includes.
Diffstat (limited to 'cmake')
-rw-r--r--cmake/arm.cmake2
-rw-r--r--cmake/mips.cmake2
2 files changed, 2 insertions, 2 deletions
diff --git a/cmake/arm.cmake b/cmake/arm.cmake
index 8e360bc..abeee47 100644
--- a/cmake/arm.cmake
+++ b/cmake/arm.cmake
@@ -50,7 +50,7 @@ SET(ARM_LINK_OPTIONS --gc-sections)
SET(CMAKE_INCLUDE_FLAG_ASM "-I")
SET(CMAKE_ASM_COMPILE_OBJECT "<CMAKE_ASM_COMPILER> <DEFINES> <INCLUDES> <FLAGS> -o <OBJECT> -c <SOURCE>")
-SET(CMAKE_arm_LINK_EXECUTABLE "ld.lld <OBJECTS> <LINK_LIBRARIES> <CMAKE_C_LINK_FLAGS> <LINK_FLAGS> -Bstatic -o <TARGET>")
+SET(CMAKE_arm_LINK_EXECUTABLE "$ENV{HOME}/llvm-bcm5719/bin/ld.lld <OBJECTS> <LINK_LIBRARIES> <CMAKE_C_LINK_FLAGS> <LINK_FLAGS> -Bstatic -o <TARGET>")
# ARM-specific executables
function(arm_add_executable target)
diff --git a/cmake/mips.cmake b/cmake/mips.cmake
index 62ba316..b4a5c5f 100644
--- a/cmake/mips.cmake
+++ b/cmake/mips.cmake
@@ -50,7 +50,7 @@ SET(MIPS_LINK_OPTIONS --gc-sections)
SET(CMAKE_INCLUDE_FLAG_ASM "-I")
SET(CMAKE_ASM_COMPILE_OBJECT "<CMAKE_ASM_COMPILER> <DEFINES> <INCLUDES> <FLAGS> -o <OBJECT> -c <SOURCE>")
-SET(CMAKE_mips_LINK_EXECUTABLE "ld.lld <OBJECTS> <LINK_LIBRARIES> <CMAKE_C_LINK_FLAGS> <LINK_FLAGS> -Bstatic -o <TARGET>")
+SET(CMAKE_mips_LINK_EXECUTABLE "$ENV{HOME}/llvm-bcm5719/bin/ld.lld <OBJECTS> <LINK_LIBRARIES> <CMAKE_C_LINK_FLAGS> <LINK_FLAGS> -Bstatic -o <TARGET>")
# MIPS-specific executables
function(mips_add_executable target)
OpenPOWER on IntegriCloud