|
@ -453,6 +453,18 @@ define TOOLCHAIN_EXTERNAL_INSTALL_SYSROOT_LIBS |
|
|
$(call copy_toolchain_sysroot,$${SYSROOT_DIR},$${ARCH_SYSROOT_DIR},$${ARCH_SUBDIR},$${ARCH_LIB_DIR},$${SUPPORT_LIB_DIR}) |
|
|
$(call copy_toolchain_sysroot,$${SYSROOT_DIR},$${ARCH_SYSROOT_DIR},$${ARCH_SUBDIR},$${ARCH_LIB_DIR},$${SUPPORT_LIB_DIR}) |
|
|
endef |
|
|
endef |
|
|
|
|
|
|
|
|
|
|
|
define TOOLCHAIN_EXTERNAL_FIX_SYMLINK_IN_STAGING |
|
|
|
|
|
for link in $$(find $(STAGING_DIR) -type l); do \
|
|
|
|
|
|
target=$$(readlink $${link}) ; \
|
|
|
|
|
|
if [ "$${target}" == "$${target$(SHARP_SIGN)/}" ] ; then \
|
|
|
|
|
|
continue ; \
|
|
|
|
|
|
fi ; \
|
|
|
|
|
|
relpath="$(call relpath_prefix,$${target$(SHARP_SIGN)/})" ; \
|
|
|
|
|
|
echo "Fixing symlink $${link} from $${target} to $${relpath}$${target$(SHARP_SIGN)/}" ; \
|
|
|
|
|
|
ln -sf $${relpath}$${target$(SHARP_SIGN)/} $${link} ; \
|
|
|
|
|
|
done |
|
|
|
|
|
endef |
|
|
|
|
|
|
|
|
# Create a symlink from (usr/)$(ARCH_LIB_DIR) to lib.
|
|
|
# Create a symlink from (usr/)$(ARCH_LIB_DIR) to lib.
|
|
|
# Note: the skeleton package additionally creates lib32->lib or lib64->lib
|
|
|
# Note: the skeleton package additionally creates lib32->lib or lib64->lib
|
|
|
# (as appropriate)
|
|
|
# (as appropriate)
|
|
@ -595,6 +607,15 @@ $(2)_TOOLCHAIN_WRAPPER_ARGS += $$(TOOLCHAIN_EXTERNAL_TOOLCHAIN_WRAPPER_ARGS) |
|
|
|
|
|
|
|
|
$(2)_BUILD_CMDS = $$(TOOLCHAIN_WRAPPER_BUILD) |
|
|
$(2)_BUILD_CMDS = $$(TOOLCHAIN_WRAPPER_BUILD) |
|
|
|
|
|
|
|
|
|
|
|
ifeq ($(BR2_ROOTFS_SKELETON_CUSTOM),y) |
|
|
|
|
|
define $(2)_INSTALL_STAGING_CMDS |
|
|
|
|
|
$$(TOOLCHAIN_WRAPPER_INSTALL) |
|
|
|
|
|
$$(TOOLCHAIN_EXTERNAL_FIX_SYMLINK_IN_STAGING) |
|
|
|
|
|
$$(TOOLCHAIN_EXTERNAL_INSTALL_WRAPPER) |
|
|
|
|
|
$$(TOOLCHAIN_EXTERNAL_INSTALL_GDBINIT) |
|
|
|
|
|
$$(TOOLCHAIN_EXTERNAL_FIXUP_PRETTY_PRINTER_LOADER) |
|
|
|
|
|
endef |
|
|
|
|
|
else |
|
|
define $(2)_INSTALL_STAGING_CMDS |
|
|
define $(2)_INSTALL_STAGING_CMDS |
|
|
$$(TOOLCHAIN_WRAPPER_INSTALL) |
|
|
$$(TOOLCHAIN_WRAPPER_INSTALL) |
|
|
$$(TOOLCHAIN_EXTERNAL_CREATE_STAGING_LIB_SYMLINK) |
|
|
$$(TOOLCHAIN_EXTERNAL_CREATE_STAGING_LIB_SYMLINK) |
|
@ -603,10 +624,16 @@ define $(2)_INSTALL_STAGING_CMDS |
|
|
$$(TOOLCHAIN_EXTERNAL_INSTALL_GDBINIT) |
|
|
$$(TOOLCHAIN_EXTERNAL_INSTALL_GDBINIT) |
|
|
$$(TOOLCHAIN_EXTERNAL_FIXUP_PRETTY_PRINTER_LOADER) |
|
|
$$(TOOLCHAIN_EXTERNAL_FIXUP_PRETTY_PRINTER_LOADER) |
|
|
endef |
|
|
endef |
|
|
|
|
|
endif |
|
|
|
|
|
|
|
|
# Even though we're installing things in both the staging, the host
|
|
|
# Even though we're installing things in both the staging, the host
|
|
|
# and the target directory, we do everything within the
|
|
|
# and the target directory, we do everything within the
|
|
|
# install-staging step, arbitrarily.
|
|
|
# install-staging step, arbitrarily.
|
|
|
|
|
|
ifeq ($(BR2_ROOTFS_SKELETON_CUSTOM),y) |
|
|
|
|
|
define $(2)_INSTALL_TARGET_CMDS |
|
|
|
|
|
|
|
|
|
|
|
endef |
|
|
|
|
|
else |
|
|
define $(2)_INSTALL_TARGET_CMDS |
|
|
define $(2)_INSTALL_TARGET_CMDS |
|
|
$$(TOOLCHAIN_EXTERNAL_CREATE_TARGET_LIB_SYMLINK) |
|
|
$$(TOOLCHAIN_EXTERNAL_CREATE_TARGET_LIB_SYMLINK) |
|
|
$$(TOOLCHAIN_EXTERNAL_INSTALL_TARGET_LIBS) |
|
|
$$(TOOLCHAIN_EXTERNAL_INSTALL_TARGET_LIBS) |
|
@ -614,6 +641,7 @@ define $(2)_INSTALL_TARGET_CMDS |
|
|
$$(TOOLCHAIN_EXTERNAL_FIXUP_UCLIBCNG_LDSO) |
|
|
$$(TOOLCHAIN_EXTERNAL_FIXUP_UCLIBCNG_LDSO) |
|
|
$$(TOOLCHAIN_EXTERNAL_INSTALL_TARGET_LDD) |
|
|
$$(TOOLCHAIN_EXTERNAL_INSTALL_TARGET_LDD) |
|
|
endef |
|
|
endef |
|
|
|
|
|
endif |
|
|
|
|
|
|
|
|
# Call the generic package infrastructure to generate the necessary
|
|
|
# Call the generic package infrastructure to generate the necessary
|
|
|
# make targets
|
|
|
# make targets
|
|
|