mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-29 14:16:31 +00:00
kmod: Fix tool links when BR2_ROOTFS_MERGED_USR
[Peter: use KMOD_BIN_PATH instead of doubling logic, add comment explaining why this is needed] Signed-off-by: Chris Lesiak <chris.lesiak@licor.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
parent
23aa0b4688
commit
2aca24c4d1
@ -46,9 +46,16 @@ KMOD_LICENSE_FILES += COPYING
|
|||||||
# take precedence over busybox implementation
|
# take precedence over busybox implementation
|
||||||
KMOD_DEPENDENCIES += $(if $(BR2_PACKAGE_BUSYBOX),busybox)
|
KMOD_DEPENDENCIES += $(if $(BR2_PACKAGE_BUSYBOX),busybox)
|
||||||
|
|
||||||
|
# /sbin is really /usr/sbin with merged /usr, so adjust relative symlink
|
||||||
|
ifeq ($(BR2_ROOTFS_MERGED_USR),y)
|
||||||
|
KMOD_BIN_PATH = ../bin/kmod
|
||||||
|
else
|
||||||
|
KMOD_BIN_PATH = ../usr/bin/kmod
|
||||||
|
endif
|
||||||
|
|
||||||
define KMOD_INSTALL_TOOLS
|
define KMOD_INSTALL_TOOLS
|
||||||
for i in depmod insmod lsmod modinfo modprobe rmmod; do \
|
for i in depmod insmod lsmod modinfo modprobe rmmod; do \
|
||||||
ln -sf ../usr/bin/kmod $(TARGET_DIR)/sbin/$$i; \
|
ln -sf $(KMOD_BIN_PATH) $(TARGET_DIR)/sbin/$$i; \
|
||||||
done
|
done
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user