Bump buidlroot version to 2018.02.6
This commit is contained in:
@@ -4,13 +4,17 @@
|
||||
#
|
||||
|
||||
# In order to allow the toolchain to be relocated, we calculate the
|
||||
# HOST_DIR based on this file's location: $(HOST_DIR)/usr/share/buildroot
|
||||
# HOST_DIR based on this file's location: $(HOST_DIR)/share/buildroot
|
||||
# and store it in RELOCATED_HOST_DIR.
|
||||
# All the other variables that need to refer to HOST_DIR will use the
|
||||
# RELOCATED_HOST_DIR variable.
|
||||
string(REPLACE "/usr/share/buildroot" "" RELOCATED_HOST_DIR ${CMAKE_CURRENT_LIST_DIR})
|
||||
string(REPLACE "/share/buildroot" "" RELOCATED_HOST_DIR ${CMAKE_CURRENT_LIST_DIR})
|
||||
|
||||
set(CMAKE_SYSTEM_NAME Linux)
|
||||
# Point cmake to the location where we have our custom modules,
|
||||
# so that it can find our custom platform description.
|
||||
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR})
|
||||
|
||||
set(CMAKE_SYSTEM_NAME Buildroot)
|
||||
set(CMAKE_SYSTEM_PROCESSOR @@CMAKE_SYSTEM_PROCESSOR@@)
|
||||
|
||||
# Set the {C,CXX}FLAGS appended by CMake depending on the build type
|
||||
@@ -44,7 +48,7 @@ set(CMAKE_EXE_LINKER_FLAGS "@@TARGET_LDFLAGS@@" CACHE STRING "Buildroot LDFLAGS
|
||||
|
||||
set(CMAKE_INSTALL_SO_NO_EXE 0)
|
||||
|
||||
set(CMAKE_PROGRAM_PATH "${RELOCATED_HOST_DIR}/usr/bin")
|
||||
set(CMAKE_PROGRAM_PATH "${RELOCATED_HOST_DIR}/bin")
|
||||
set(CMAKE_SYSROOT "${RELOCATED_HOST_DIR}/@@STAGING_SUBDIR@@")
|
||||
set(CMAKE_FIND_ROOT_PATH "${RELOCATED_HOST_DIR}/@@STAGING_SUBDIR@@")
|
||||
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
|
||||
|
||||
Reference in New Issue
Block a user