OSDN Git Service

core/Makefile: fix a dependency issue
authorChih-Wei Huang <cwhuang@linux.org.tw>
Thu, 5 Nov 2009 04:54:36 +0000 (12:54 +0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Wed, 14 Apr 2010 08:16:54 +0000 (16:16 +0800)
The symlinks in /sbin must be created before ramdisk.img being made.

core/Makefile

index 0ac92bf..1f6a8d9 100644 (file)
@@ -260,7 +260,7 @@ BUILT_RAMDISK_TARGET := $(PRODUCT_OUT)/ramdisk.img
 
 # We just build this directly to the install location.
 INSTALLED_RAMDISK_TARGET := $(BUILT_RAMDISK_TARGET)
-$(INSTALLED_RAMDISK_TARGET): $(MKBOOTFS) $(INTERNAL_RAMDISK_FILES) | $(MINIGZIP)
+$(INSTALLED_RAMDISK_TARGET): $(MKBOOTFS) $(INTERNAL_RAMDISK_FILES) | $(MINIGZIP) $(addprefix $(TARGET_OUT)/bin/,$(SBIN_TOOLS))
        $(call pretty,"Target ram disk: $@")
        $(hide) $(MKBOOTFS) $(TARGET_ROOT_OUT) | $(MINIGZIP) > $@