|
@@ -86,7 +86,7 @@ define $(2)_CONFIGURE_CMDS
|
|
rm -f CMakeCache.txt && \
|
|
rm -f CMakeCache.txt && \
|
|
PATH=$$(BR_PATH) \
|
|
PATH=$$(BR_PATH) \
|
|
$$($$(PKG)_CONF_ENV) $$(BR2_CMAKE) $$($$(PKG)_SRCDIR) \
|
|
$$($$(PKG)_CONF_ENV) $$(BR2_CMAKE) $$($$(PKG)_SRCDIR) \
|
|
- -DCMAKE_TOOLCHAIN_FILE="$$(HOST_DIR)/usr/share/buildroot/toolchainfile.cmake" \
|
|
|
|
|
|
+ -DCMAKE_TOOLCHAIN_FILE="$$(HOST_DIR)/share/buildroot/toolchainfile.cmake" \
|
|
-DCMAKE_INSTALL_PREFIX="/usr" \
|
|
-DCMAKE_INSTALL_PREFIX="/usr" \
|
|
-DCMAKE_COLOR_MAKEFILE=OFF \
|
|
-DCMAKE_COLOR_MAKEFILE=OFF \
|
|
-DBUILD_DOC=OFF \
|
|
-DBUILD_DOC=OFF \
|
|
@@ -234,10 +234,10 @@ CMAKE_SYSTEM_PROCESSOR = $(BR2_ARCH)
|
|
endif
|
|
endif
|
|
|
|
|
|
# In order to allow the toolchain to be relocated, we calculate the HOST_DIR
|
|
# In order to allow the toolchain to be relocated, we calculate the HOST_DIR
|
|
-# based on the toolchainfile.cmake file's location: $(HOST_DIR)/usr/share/buildroot
|
|
|
|
|
|
+# based on the toolchainfile.cmake file's location: $(HOST_DIR)/share/buildroot
|
|
# In all the other variables, HOST_DIR will be replaced by RELOCATED_HOST_DIR,
|
|
# In all the other variables, HOST_DIR will be replaced by RELOCATED_HOST_DIR,
|
|
# so we have to strip "$(HOST_DIR)/" from the paths that contain it.
|
|
# so we have to strip "$(HOST_DIR)/" from the paths that contain it.
|
|
-$(HOST_DIR)/usr/share/buildroot/toolchainfile.cmake:
|
|
|
|
|
|
+$(HOST_DIR)/share/buildroot/toolchainfile.cmake:
|
|
@mkdir -p $(@D)
|
|
@mkdir -p $(@D)
|
|
sed \
|
|
sed \
|
|
-e 's#@@STAGING_SUBDIR@@#$(call qstrip,$(STAGING_SUBDIR))#' \
|
|
-e 's#@@STAGING_SUBDIR@@#$(call qstrip,$(STAGING_SUBDIR))#' \
|
|
@@ -254,5 +254,5 @@ $(HOST_DIR)/usr/share/buildroot/toolchainfile.cmake:
|
|
$(TOPDIR)/support/misc/toolchainfile.cmake.in \
|
|
$(TOPDIR)/support/misc/toolchainfile.cmake.in \
|
|
> $@
|
|
> $@
|
|
|
|
|
|
-$(HOST_DIR)/usr/share/buildroot/Platform/Buildroot.cmake:
|
|
|
|
|
|
+$(HOST_DIR)/share/buildroot/Platform/Buildroot.cmake:
|
|
$(Q)$(INSTALL) -D -m 0644 support/misc/Buildroot.cmake $(@)
|
|
$(Q)$(INSTALL) -D -m 0644 support/misc/Buildroot.cmake $(@)
|