OSDN Git Service

Fix /system/app/$app.odex not updated issue ics-x86
authorChih-Wei Huang <cwhuang@linux.org.tw>
Mon, 15 Apr 2013 09:12:19 +0000 (17:12 +0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Wed, 17 Apr 2013 07:58:16 +0000 (15:58 +0800)
commitcb7e45cf4ab506a74244f189c703659e148edf4c
tree67921dda8c44ae54034f5d95a8e319169a1d75c0
parent62b64cafa94832c75f01b72822c1c6f94d4adf6e
Fix /system/app/$app.odex not updated issue

$(built_odex) depends on $(LOCAL_BUILT_MODULE) but doesn't have any build
recipe. It is built by the rules of $(LOCAL_BUILT_MODULE) that results in
a subtle bug: $(built_odex) is always newer than $(LOCAL_BUILT_MODULE)
if $(LOCAL_BUILT_MODULE) rebuilt. Therefore 'make' thinks the targets
(/system/app/$app.odex) depending on $(built_odex) don't need to be updated.
It seems an allegedly optimization bug of 'make'.

The simple fix is to explicitly add $(LOCAL_BUILT_MODULE) as a dependency
of $(installed_odex).
core/base_rules.mk