From 16f0113f8a5e215e8828e30b465755d177bd0d1a Mon Sep 17 00:00:00 2001 From: carbon Date: Wed, 31 Jul 2024 15:08:31 +0800 Subject: [PATCH] check if the dir exists when copying board overlay Signed-off-by: carbon --- build/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build/Makefile b/build/Makefile index 5349b87f6..c253ba6a9 100644 --- a/build/Makefile +++ b/build/Makefile @@ -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)