diff options
Diffstat (limited to 'zephyr/cmake/linker')
-rw-r--r-- | zephyr/cmake/linker/ld/linker_flags.cmake | 7 | ||||
-rw-r--r-- | zephyr/cmake/linker/ld/target.cmake | 7 | ||||
-rw-r--r-- | zephyr/cmake/linker/lld/linker_flags.cmake | 9 | ||||
-rw-r--r-- | zephyr/cmake/linker/lld/target.cmake | 26 |
4 files changed, 0 insertions, 49 deletions
diff --git a/zephyr/cmake/linker/ld/linker_flags.cmake b/zephyr/cmake/linker/ld/linker_flags.cmake deleted file mode 100644 index c80d1d2452..0000000000 --- a/zephyr/cmake/linker/ld/linker_flags.cmake +++ /dev/null @@ -1,7 +0,0 @@ -# Copyright 2020 The Chromium OS Authors. All rights reserved. -# Use of this source code is governed by a BSD-style license that can be -# found in the LICENSE file. - -# Zephyr cmake system looks into ${TOOLCHAIN_ROOT}, but we just send -# this out to the copy in ${ZEPHYR_BASE}. -include("${ZEPHYR_BASE}/cmake/linker/ld/linker_flags.cmake") diff --git a/zephyr/cmake/linker/ld/target.cmake b/zephyr/cmake/linker/ld/target.cmake deleted file mode 100644 index 0e2ad1f4d7..0000000000 --- a/zephyr/cmake/linker/ld/target.cmake +++ /dev/null @@ -1,7 +0,0 @@ -# Copyright 2020 The Chromium OS Authors. All rights reserved. -# Use of this source code is governed by a BSD-style license that can be -# found in the LICENSE file. - -# Zephyr cmake system looks into ${TOOLCHAIN_ROOT}, but we just send -# this out to the copy in ${ZEPHYR_BASE}. -include("${ZEPHYR_BASE}/cmake/linker/ld/target.cmake") diff --git a/zephyr/cmake/linker/lld/linker_flags.cmake b/zephyr/cmake/linker/lld/linker_flags.cmake deleted file mode 100644 index 5055e4c5a4..0000000000 --- a/zephyr/cmake/linker/lld/linker_flags.cmake +++ /dev/null @@ -1,9 +0,0 @@ -# Copyright 2020 The Chromium OS Authors. All rights reserved. -# Use of this source code is governed by a BSD-style license that can be -# found in the LICENSE file. - -# Include definitions for bfd as a base. -include("${ZEPHYR_BASE}/cmake/linker/ld/linker_flags.cmake") -# ld/linker_flags.cmake includes ${LINKER}/${COMPILER}/linker_flags.cmake but -# that doesn't exist for ldd, so import the path that actually exists. -include("${ZEPHYR_BASE}/cmake/linker/ld/${COMPILER}/linker_flags.cmake" OPTIONAL) diff --git a/zephyr/cmake/linker/lld/target.cmake b/zephyr/cmake/linker/lld/target.cmake deleted file mode 100644 index 1bbc6f479d..0000000000 --- a/zephyr/cmake/linker/lld/target.cmake +++ /dev/null @@ -1,26 +0,0 @@ -# Copyright 2020 The Chromium OS Authors. All rights reserved. -# Use of this source code is governed by a BSD-style license that can be -# found in the LICENSE file. - -# Include definitions for bfd as a base. We need to pretend that -# LINKER=ld to do this. -set(LINKER ld) -include("${ZEPHYR_BASE}/cmake/linker/ld/target.cmake") -set(LINKER lld) - -# Override the path to the linker. -set(CMAKE_LINKER "${CROSS_COMPILE}ld.lld") - -# Zephyr CMake system expects this macro to be defined to provide -# default linker flags. -macro(toolchain_ld_base) - # For linker scripts, we pretend to bfd-like - set_property(GLOBAL PROPERTY PROPERTY_LINKER_SCRIPT_DEFINES - -D__GCC_LINKER_CMD__) - - # Default flags - zephyr_ld_options( - ${TOOLCHAIN_LD_FLAGS} - -Wl,--gc-sections - --build-id=none) -endmacro() |