diff options
author | Doug Zongker <dougz@android.com> | 2009-08-06 13:02:19 -0700 |
---|---|---|
committer | Doug Zongker <dougz@android.com> | 2009-08-06 14:39:43 -0700 |
commit | 1046d20624318563aba92cfdd7eb7d39ecc44703 (patch) | |
tree | 95f4e7b76f9e905883c5434d0183bd876c899154 /core/prebuilt.mk | |
parent | 28ab3b12d38f1e613d92fcee251ef064665dd8c9 (diff) | |
download | build-1046d20624318563aba92cfdd7eb7d39ecc44703.zip build-1046d20624318563aba92cfdd7eb7d39ecc44703.tar.gz build-1046d20624318563aba92cfdd7eb7d39ecc44703.tar.bz2 |
add feature to strip "# comment" lines from prebuilt files
Change things so that when $(LOCAL_PREBUILT_STRIP_COMMENTS) is
nonempty, we copy the source file using sed to strip out all the "#
line"-style comments and blank lines, saving considerable system image
space in the case of some wifi configurations.
Bug: 2036961
Diffstat (limited to 'core/prebuilt.mk')
-rw-r--r-- | core/prebuilt.mk | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/core/prebuilt.mk b/core/prebuilt.mk index 2d93162..8eaa922 100644 --- a/core/prebuilt.mk +++ b/core/prebuilt.mk @@ -3,7 +3,7 @@ ## ## Additional inputs from base_rules.make: ## None. -## +## ########################################################### ifneq ($(LOCAL_PREBUILT_LIBS),) @@ -26,8 +26,14 @@ else prebuilt_module_is_a_library := endif +ifneq ($(LOCAL_PREBUILT_STRIP_COMMENTS),) +$(LOCAL_BUILT_MODULE) : $(LOCAL_PATH)/$(LOCAL_SRC_FILES) + $(transform-prebuilt-to-target-strip-comments) +else $(LOCAL_BUILT_MODULE) : $(LOCAL_PATH)/$(LOCAL_SRC_FILES) | $(ACP) $(transform-prebuilt-to-target) +endif + ifneq ($(prebuilt_module_is_a_library),) ifneq ($(LOCAL_IS_HOST_MODULE),) $(transform-host-ranlib-copy-hack) |