Skip to content

Commit

Permalink
soong_config: Add TARGET_NEEDS_PLATFORM_TEXT_RELOCATIONS
Browse files Browse the repository at this point in the history
* Soong product variable 'needs_text_relocations'

Change-Id: Ia22c94922f37c49f0d66a67747efa0ee97b4e477
Signed-off-by: Adrian DC <[email protected]>
  • Loading branch information
AdrianDC committed Sep 12, 2017
1 parent 7ef0e17 commit cf7f7d4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build/soong/android/variable.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
package android
type Product_variables struct {
Needs_text_relocations struct {
Cppflags []string
}
}

type ProductVariables struct {
Needs_text_relocations *bool `json:",omitempty"`
}
1 change: 1 addition & 0 deletions build/soong/soong_config.mk
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ lineage_soong:
$(hide) (\
echo '{'; \
echo '"Lineage": {'; \
echo ' "Needs_text_relocations": $(if $(filter true,$(TARGET_NEEDS_PLATFORM_TEXT_RELOCATIONS)),true,false)'; \
echo '},'; \
echo '') > $(SOONG_VARIABLES_TMP)

0 comments on commit cf7f7d4

Please sign in to comment.