mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-28 13:46:32 +00:00
package/glibc: install utilities into their standard locations
As pointed out by Carlos, ldconfig normally goes into /sbin, and getconf + ldd into /usr/bin, so do that here as well instead of installing everything to /bin. Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
parent
01134ca99a
commit
e487649e2e
@ -144,15 +144,20 @@ GLIBC_LIBS_LIB += libthread_db.so.*
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(BR2_PACKAGE_GLIBC_UTILS),y)
|
ifeq ($(BR2_PACKAGE_GLIBC_UTILS),y)
|
||||||
GLIBC_TARGET_UTILS_BIN = posix/getconf elf/ldconfig elf/ldd
|
GLIBC_TARGET_UTILS_USR_BIN = posix/getconf elf/ldd
|
||||||
|
GLIBC_TARGET_UTILS_SBIN = elf/ldconfig
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
define GLIBC_INSTALL_TARGET_CMDS
|
define GLIBC_INSTALL_TARGET_CMDS
|
||||||
for libpattern in $(GLIBC_LIBS_LIB); do \
|
for libpattern in $(GLIBC_LIBS_LIB); do \
|
||||||
$(call copy_toolchain_lib_root,$$libpattern) ; \
|
$(call copy_toolchain_lib_root,$$libpattern) ; \
|
||||||
done
|
done
|
||||||
$(foreach util,$(GLIBC_TARGET_UTILS_BIN), \
|
$(foreach util,$(GLIBC_TARGET_UTILS_USR_BIN), \
|
||||||
$(INSTALL) -D -m 0755 $(@D)/build/$(util) $(TARGET_DIR)/bin/$(notdir $(util))
|
$(INSTALL) -D -m 0755 $(@D)/build/$(util) $(TARGET_DIR)/usr/bin/$(notdir $(util))
|
||||||
|
)
|
||||||
|
$(foreach util,$(GLIBC_TARGET_UTILS_SBIN), \
|
||||||
|
$(INSTALL) -D -m 0755 $(@D)/build/$(util) $(TARGET_DIR)/sbin/$(notdir $(util))
|
||||||
)
|
)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user