Skip to content

Commit e80fbed

Browse files
committed
multirom: trampoline: Support creating a bootdevice symlink
* Use the MR_DEVICE_BOOTDEVICE := /dev/block/platform... configuration to create a symlink with /dev/block/bootdevice Change-Id: I3e4c6c8e1f9e9861d2f87b689d9633f891f35a6f
1 parent 06c53ae commit e80fbed

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

trampoline/Android.mk

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ endif
3737
ifeq ($(MR_DEV_BLOCK_BOOTDEVICE),true)
3838
LOCAL_CFLAGS += -DMR_DEV_BLOCK_BOOTDEVICE
3939
endif
40+
ifneq ($(MR_DEVICE_BOOTDEVICE),)
41+
LOCAL_CFLAGS += -DMR_DEVICE_BOOTDEVICE="\"$(MR_DEVICE_BOOTDEVICE)\""
42+
endif
4043

4144
ifneq ($(MR_DEVICE_HOOKS),)
4245
ifeq ($(MR_DEVICE_HOOKS_VER),)

trampoline/devices.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -660,6 +660,9 @@ static char **parse_platform_block_device(struct uevent *uevent)
660660
links[link_num] = NULL;
661661
#endif
662662

663+
#ifdef MR_DEVICE_BOOTDEVICE
664+
symlink(MR_DEVICE_BOOTDEVICE, "/dev/block/bootdevice");
665+
#endif
663666
return links;
664667
}
665668

0 commit comments

Comments
 (0)