Skip to content

Commit 89b26b8

Browse files
authored
Merge pull request #4 from AdrianDC/dev-bootdevice
multirom: trampoline: Support creating a bootdevice symlink
2 parents c45e599 + 12bb315 commit 89b26b8

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)