diff --git a/package/skeleton-common/skeleton-common.mk b/package/skeleton-common/skeleton-common.mk index e9b87c3fd3..e94dd6e14d 100644 --- a/package/skeleton-common/skeleton-common.mk +++ b/package/skeleton-common/skeleton-common.mk @@ -75,16 +75,16 @@ endef SKELETON_COMMON_TARGET_FINALIZE_HOOKS += SKELETON_COMMON_SET_ROOT_PASSWD ifeq ($(BR2_SYSTEM_BIN_SH_NONE),y) -define SKELETON_COMMON_BIN_SH +define SKELETON_COMMON_SET_BIN_SH rm -f $(TARGET_DIR)/bin/sh endef else ifneq ($(SKELETON_COMMON_BIN_SH),) -define SKELETON_COMMON_BIN_SH +define SKELETON_COMMON_SET_BIN_SH ln -sf $(SKELETON_COMMON_BIN_SH) $(TARGET_DIR)/bin/sh endef endif endif -SKELETON_COMMON_TARGET_FINALIZE_HOOKS += SKELETON_COMMON_BIN_SH +SKELETON_COMMON_TARGET_FINALIZE_HOOKS += SKELETON_COMMON_SET_BIN_SH $(eval $(generic-package))