From e14558a83424963d3c241b18b9d14db7566bab64 Mon Sep 17 00:00:00 2001 From: zhangfanfan2 Date: Mon, 19 Apr 2021 11:36:26 +0800 Subject: [PATCH] =?UTF-8?q?rootfsdir.sh=E8=84=9A=E6=9C=AC=E4=B8=ADcp?= =?UTF-8?q?=E6=9C=AA=E8=80=83=E8=99=91=E7=9B=AE=E7=9A=84=E5=9C=B0=E5=9D=80?= =?UTF-8?q?=E6=98=AF=E5=90=A6=E5=AD=98=E5=9C=A8=E4=BB=A5=E5=8F=8A=E6=98=AF?= =?UTF-8?q?=E5=90=A6=E4=B8=8E=E6=BA=90=E5=9C=B0=E5=9D=80=E7=9B=B8=E5=90=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tools/scripts/make_rootfs/rootfsdir.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/scripts/make_rootfs/rootfsdir.sh b/tools/scripts/make_rootfs/rootfsdir.sh index db6b1ff4..e7135ce7 100755 --- a/tools/scripts/make_rootfs/rootfsdir.sh +++ b/tools/scripts/make_rootfs/rootfsdir.sh @@ -39,10 +39,10 @@ ${ROOTFS_DIR}/app ${ROOTFS_DIR}/data ${ROOTFS_DIR}/proc ${ROOTFS_DIR}/dev ${ROOT ${ROOTFS_DIR}/system ${ROOTFS_DIR}/system/internal ${ROOTFS_DIR}/system/external if [ -d "${BIN_DIR}" ] && [ "$(ls -A "${BIN_DIR}")" != "" ]; then cp -f ${BIN_DIR}/* ${ROOTFS_DIR}/bin - if [ -e ${BIN_DIR}/shell ]; then + if [ -e ${BIN_DIR}/shell ] && [ "${BIN_DIR}/shell" != "${OUT_DIR}/bin/shell" ]; then cp -f ${BIN_DIR}/shell ${OUT_DIR}/bin/shell fi - if [ -e ${BIN_DIR}/tftp ]; then + if [ -e ${BIN_DIR}/tftp ] && [ "${BIN_DIR}/tftp" != "${OUT_DIR}/bin/tftp" ]; then cp -f ${BIN_DIR}/tftp ${OUT_DIR}/bin/tftp fi fi