kernel.mk: skip applying device patch if file not found

Signed-off-by: Polyos Project <polyos@iscas.ac.cn>
This commit is contained in:
Polyos Project (陈荣)
2024-01-09 14:35:14 +08:00
parent 39e467913b
commit 847b0ad1ed
+1 -1
View File
@@ -91,7 +91,7 @@ endif
ifeq ($(PRODUCT_PATH), vendor/hisilicon/watchos)
$(hide) cd $(KERNEL_SRC_TMP_PATH) && patch -p1 < $(PRODUCT_PATCH_FILE)
else
$(hide) cd $(KERNEL_SRC_TMP_PATH) && patch -p1 < $(DEVICE_PATCH_FILE)
$(hide) cd $(KERNEL_SRC_TMP_PATH) && test -f $(DEVICE_PATCH_FILE) && patch -p1 < $(DEVICE_PATCH_FILE) || true
endif
ifneq ($(findstring $(BUILD_TYPE), small),)