mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-28 13:46:32 +00:00
skeleton: move LIB_SYMLINK definition from Makefile
Commit 7a6b83a211612ff95a1f5d35b2861ad5655ac8b1 introduced the skeleton package, which took over the lib32/lib64 -> lib symlink creation from the main Makefile. However, the definition of the LIB_SYMLINK variable did not move along, for no real reason. Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Cc: Arnout Vandecappelle <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
d7e7ad4f34
commit
50a93866f0
8
Makefile
8
Makefile
@ -501,14 +501,6 @@ world: target-post-image
|
|||||||
$(BUILD_DIR) $(TARGET_DIR) $(HOST_DIR) $(BINARIES_DIR) $(LEGAL_INFO_DIR) $(REDIST_SOURCES_DIR_TARGET) $(REDIST_SOURCES_DIR_HOST):
|
$(BUILD_DIR) $(TARGET_DIR) $(HOST_DIR) $(BINARIES_DIR) $(LEGAL_INFO_DIR) $(REDIST_SOURCES_DIR_TARGET) $(REDIST_SOURCES_DIR_HOST):
|
||||||
@mkdir -p $@
|
@mkdir -p $@
|
||||||
|
|
||||||
# We make a symlink lib32->lib or lib64->lib as appropriate
|
|
||||||
# MIPS64/n32 requires lib32 even though it's a 64-bit arch.
|
|
||||||
ifeq ($(BR2_ARCH_IS_64)$(BR2_MIPS_NABI32),y)
|
|
||||||
LIB_SYMLINK = lib64
|
|
||||||
else
|
|
||||||
LIB_SYMLINK = lib32
|
|
||||||
endif
|
|
||||||
|
|
||||||
# Populating the staging with the base directories is handled by the skeleton package
|
# Populating the staging with the base directories is handled by the skeleton package
|
||||||
$(STAGING_DIR):
|
$(STAGING_DIR):
|
||||||
@mkdir -p $(STAGING_DIR)
|
@mkdir -p $(STAGING_DIR)
|
||||||
|
@ -77,13 +77,21 @@ define SKELETON_USR_SYMLINKS_OR_DIRS
|
|||||||
endef
|
endef
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# We make a symlink lib32->lib or lib64->lib as appropriate
|
||||||
|
# MIPS64/n32 requires lib32 even though it's a 64-bit arch.
|
||||||
|
ifeq ($(BR2_ARCH_IS_64)$(BR2_MIPS_NABI32),y)
|
||||||
|
SKELETON_LIB_SYMLINK = lib64
|
||||||
|
else
|
||||||
|
SKELETON_LIB_SYMLINK = lib32
|
||||||
|
endif
|
||||||
|
|
||||||
define SKELETON_INSTALL_TARGET_CMDS
|
define SKELETON_INSTALL_TARGET_CMDS
|
||||||
rsync -a --ignore-times $(RSYNC_VCS_EXCLUSIONS) \
|
rsync -a --ignore-times $(RSYNC_VCS_EXCLUSIONS) \
|
||||||
--chmod=u=rwX,go=rX --exclude .empty --exclude '*~' \
|
--chmod=u=rwX,go=rX --exclude .empty --exclude '*~' \
|
||||||
$(SKELETON_PATH)/ $(TARGET_DIR)/
|
$(SKELETON_PATH)/ $(TARGET_DIR)/
|
||||||
$(call SKELETON_USR_SYMLINKS_OR_DIRS,$(TARGET_DIR))
|
$(call SKELETON_USR_SYMLINKS_OR_DIRS,$(TARGET_DIR))
|
||||||
ln -snf lib $(TARGET_DIR)/$(LIB_SYMLINK)
|
ln -snf lib $(TARGET_DIR)/$(SKELETON_LIB_SYMLINK)
|
||||||
ln -snf lib $(TARGET_DIR)/usr/$(LIB_SYMLINK)
|
ln -snf lib $(TARGET_DIR)/usr/$(SKELETON_LIB_SYMLINK)
|
||||||
$(INSTALL) -m 0644 support/misc/target-dir-warning.txt \
|
$(INSTALL) -m 0644 support/misc/target-dir-warning.txt \
|
||||||
$(TARGET_DIR_WARNING_FILE)
|
$(TARGET_DIR_WARNING_FILE)
|
||||||
endef
|
endef
|
||||||
@ -99,8 +107,8 @@ define SKELETON_INSTALL_STAGING_CMDS
|
|||||||
$(INSTALL) -d -m 0755 $(STAGING_DIR)/usr/sbin
|
$(INSTALL) -d -m 0755 $(STAGING_DIR)/usr/sbin
|
||||||
$(INSTALL) -d -m 0755 $(STAGING_DIR)/usr/include
|
$(INSTALL) -d -m 0755 $(STAGING_DIR)/usr/include
|
||||||
$(call SKELETON_USR_SYMLINKS_OR_DIRS,$(STAGING_DIR))
|
$(call SKELETON_USR_SYMLINKS_OR_DIRS,$(STAGING_DIR))
|
||||||
ln -snf lib $(STAGING_DIR)/$(LIB_SYMLINK)
|
ln -snf lib $(STAGING_DIR)/$(SKELETON_LIB_SYMLINK)
|
||||||
ln -snf lib $(STAGING_DIR)/usr/$(LIB_SYMLINK)
|
ln -snf lib $(STAGING_DIR)/usr/$(SKELETON_LIB_SYMLINK)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
SKELETON_TARGET_GENERIC_HOSTNAME = $(call qstrip,$(BR2_TARGET_GENERIC_HOSTNAME))
|
SKELETON_TARGET_GENERIC_HOSTNAME = $(call qstrip,$(BR2_TARGET_GENERIC_HOSTNAME))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user