diff options
author | Yongqin Liu <yongqin.liu@linaro.org> | 2018-10-16 20:47:45 +0800 |
---|---|---|
committer | Yongqin Liu <yongqin.liu@linaro.org> | 2018-10-16 20:47:45 +0800 |
commit | 518d84c335a0df576dc2d5fa27deac3e57e65c79 (patch) | |
tree | 1b027bb352d9e5fda9b2bfdd8004c7357cc35545 | |
parent | 967af632345524403cb20e0cb2618c5d60ae4926 (diff) | |
download | powertop-2.0-518d84c335a0df576dc2d5fa27deac3e57e65c79.tar.gz |
Android.mk: change to generate the css.h file in out dir
to workaround error like this:
external/powertop/Android.mk:14: error: writing to readonly directory: "external/powertop/src/css.h"
for the PHONY target limitation described here for AOSP master:
https://android.googlesource.com/platform/build/+/HEAD/Changes.md#phony_targets
Change-Id: I2cc801afc05e799001f626c7d59418871c324567
Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
-rw-r--r-- | Android.mk | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -9,7 +9,7 @@ LOCAL_SHARED_LIBRARIES := libnl libncurses CSSTOH_SOURCE := $(LOCAL_PATH)/src/csstoh.c POWERTOP_CSS_SOURCE := $(LOCAL_PATH)/src/powertop.css GEN_CSSTOH := $(LOCAL_PATH)/src/csstoh.sh -GEN_CSS_H := $(LOCAL_PATH)/src/css.h +GEN_CSS_H := $(PRODUCT_OUT)/powertop/include/css.h $(GEN_CSS_H): ./$(GEN_CSSTOH) $(POWERTOP_CSS_SOURCE) $@ @@ -29,6 +29,7 @@ LOCAL_CFLAGS += -Wno-format LOCAL_C_INCLUDES += bionic \ external/libnl/include/ \ external/ncurses/include \ + $(PRODUCT_OUT)/powertop/include \ $(LOCAL_PATH)/src \ $(LOCAL_PATH)/traceevent |