mirror of
https://github.com/openharmony/kernel_linux_build.git
synced 2026-07-18 15:54:30 -04:00
kernel.mk: skip applying device patch if file not found
Signed-off-by: Polyos Project <polyos@iscas.ac.cn>
This commit is contained in:
@@ -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),)
|
||||
|
||||
Reference in New Issue
Block a user