package/uclibc: also install utils to STAGING_DIR

When BR2_UCLIBC_INSTALL_UTILS is enabled, utils such as getconf, ldd,
locale get installed to TARGET_DIR. However, they do not get installed
to STAGING_DIR, which is annoying as it means that they are not part
of external toolchains built by Buildroot.

This commit adjusts the uclibc package to make sure those tools also
get installed to STAGING_DIR.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
Thomas Petazzoni
2026-02-04 17:24:11 +01:00
committed by Peter Korsgaard
parent 026c635508
commit 272d281ba9
+9
View File
@@ -449,6 +449,14 @@ define UCLIBC_INSTALL_UTILS_TARGET
PREFIX=$(TARGET_DIR) \
utils install_utils
endef
define UCLIBC_INSTALL_UTILS_STAGING
$(MAKE1) -C $(@D) \
CC="$(TARGET_CC)" CPP="$(TARGET_CPP)" LD="$(TARGET_LD)" \
ARCH="$(UCLIBC_TARGET_ARCH)" \
PREFIX=$(STAGING_DIR) \
utils install_utils
endef
endif
define UCLIBC_INSTALL_TARGET_CMDS
@@ -479,6 +487,7 @@ define UCLIBC_INSTALL_STAGING_CMDS
RUNTIME_PREFIX=/ \
install_runtime install_dev
$(UCLIBC_INSTALL_HOST_UTILS)
$(UCLIBC_INSTALL_UTILS_STAGING)
endef
# Checks to give errors that the user can understand