diff options
| author | 2020-07-15 17:27:28 -0700 | |
|---|---|---|
| committer | 2020-07-16 12:34:30 -0700 | |
| commit | 1e6d21787a04b66621a617b00f4e5a9a1757d97c (patch) | |
| tree | 8dd3c0444f5793847550b0506bcff4d6ba3a2798 | |
| parent | 81a092ff88559686d1f16be5a6f21d870c32b87f (diff) | |
Create $OUT/{vendor,odm}/lib before symlink modules
Before creating symlinks $OUT/{vendor,odm}/lib/modules, make sure
parent directory exists first.
Test: build CF
Bug: 156020364
Change-Id: Id2a9e5273aae75944c1b31553fad3703540bf2f4
| -rw-r--r-- | core/Makefile | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/Makefile b/core/Makefile index a202f95d9e..b8401073c1 100644 --- a/core/Makefile +++ b/core/Makefile @@ -2791,6 +2791,7 @@ endif # are not guaranteed to exist on all devices. ifdef BOARD_USES_VENDOR_DLKMIMAGE define create-vendor-vendor_dlkm-symlink +$(hide) mkdir -p $(TARGET_OUT_VENDOR)/lib $(hide) if [ -d $(TARGET_OUT_VENDOR)/lib/modules ] && [ ! -h $(TARGET_OUT_VENDOR)/lib/modules ]; then \ echo 'Non-symlink $(TARGET_OUT_VENDOR)/lib/modules detected!' 1>&2; \ echo 'You cannot install files to $(TARGET_OUT_VENDOR)/lib/modules while building a separate vendor_dlkm.img!' 1>&2; \ @@ -2819,6 +2820,7 @@ endif # are not guaranteed to exist on all devices. ifdef BOARD_USES_ODM_DLKMIMAGE define create-odm-odm_dlkm-symlink +$(hide) mkdir -p $(TARGET_OUT_ODM)/lib $(hide) if [ -d $(TARGET_OUT_ODM)/lib/modules ] && [ ! -h $(TARGET_OUT_ODM)/lib/modules ]; then \ echo 'Non-symlink $(TARGET_OUT_ODM)/lib/modules detected!' 1>&2; \ echo 'You cannot install files to $(TARGET_OUT_ODM)/lib/modules while building a separate odm_dlkm.img!' 1>&2; \ |