check if the dir exists when copying board overlay

Signed-off-by: carbon <carbon@milkv.io>
This commit is contained in:
carbon
2024-07-31 15:08:31 +08:00
parent 7135c6d846
commit 16f0113f8a

View File

@ -568,7 +568,9 @@ ifneq ($(wildcard $(TOP_DIR)/device/generic/rootfs_overlay/$(BR_BOARD_TYPE)),)
endif
# copy milkv board overlay files
ifneq ($(wildcard $(TOP_DIR)/device/$(MV_BOARD)/overlay),)
${Q}cp -arf $(TOP_DIR)/device/$(MV_BOARD)/overlay/* $(BR_ROOTFS_DIR)/
endif
# clean this directory for multiple targets
${Q}rm -rf $(BR_OVERLAY_DIR)