Merge "Build the optional 'r' tool separately."
This commit is contained in:
commit
d1d11fcbe5
2 changed files with 11 additions and 5 deletions
|
|
@ -213,10 +213,6 @@ OUR_TOOLS := \
|
||||||
watchprops \
|
watchprops \
|
||||||
wipe \
|
wipe \
|
||||||
|
|
||||||
ifneq (,$(filter userdebug eng,$(TARGET_BUILD_VARIANT)))
|
|
||||||
OUR_TOOLS += r
|
|
||||||
endif
|
|
||||||
|
|
||||||
ALL_TOOLS = $(BSD_TOOLS) $(OUR_TOOLS)
|
ALL_TOOLS = $(BSD_TOOLS) $(OUR_TOOLS)
|
||||||
|
|
||||||
LOCAL_SRC_FILES := \
|
LOCAL_SRC_FILES := \
|
||||||
|
|
@ -277,3 +273,13 @@ ALL_DEFAULT_INSTALLED_MODULES += $(SYMLINKS)
|
||||||
# local module name
|
# local module name
|
||||||
ALL_MODULES.$(LOCAL_MODULE).INSTALLED := \
|
ALL_MODULES.$(LOCAL_MODULE).INSTALLED := \
|
||||||
$(ALL_MODULES.$(LOCAL_MODULE).INSTALLED) $(SYMLINKS)
|
$(ALL_MODULES.$(LOCAL_MODULE).INSTALLED) $(SYMLINKS)
|
||||||
|
|
||||||
|
|
||||||
|
# We only want 'r' on userdebug and eng builds.
|
||||||
|
include $(CLEAR_VARS)
|
||||||
|
LOCAL_SRC_FILES := r.c
|
||||||
|
LOCAL_CFLAGS += $(common_cflags)
|
||||||
|
LOCAL_MODULE := r
|
||||||
|
LOCAL_MODULE_TAGS := debug
|
||||||
|
LOCAL_ADDITIONAL_DEPENDENCIES += $(LOCAL_PATH)/Android.mk
|
||||||
|
include $(BUILD_EXECUTABLE)
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ static int usage()
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
int r_main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
if(argc < 2) return usage();
|
if(argc < 2) return usage();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue