Skip to content

Commit

Permalink
init: Use a relative symlink for ueventd to init
Browse files Browse the repository at this point in the history
make doesn't seem to handle the absolute symlink from
$OUT/root/sbin/ueventd to /init well - it follows the link during
dependency resolution, decides $OUT/root/sbin/ueventd doesn't exist
because /init doesn't exist, and relinks it every time.

Change-Id: I9ca1c14fe5fa80634f51ffc51a7c73146d29d42e
  • Loading branch information
colincross committed Apr 22, 2010
1 parent ebd4613 commit 33680b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions init/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ include $(BUILD_EXECUTABLE)
SYMLINKS := $(TARGET_ROOT_OUT)/sbin/ueventd
$(SYMLINKS): INIT_BINARY := $(LOCAL_MODULE)
$(SYMLINKS): $(LOCAL_INSTALLED_MODULE) $(LOCAL_PATH)/Android.mk
@echo "Symlink: $@ -> /$(INIT_BINARY)"
@echo "Symlink: $@ -> ../$(INIT_BINARY)"
@mkdir -p $(dir $@)
@rm -rf $@
$(hide) ln -sf /$(INIT_BINARY) $@
$(hide) ln -sf ../$(INIT_BINARY) $@

ALL_DEFAULT_INSTALLED_MODULES += $(SYMLINKS)

Expand Down

0 comments on commit 33680b1

Please sign in to comment.