diff options
-rwxr-xr-x | extractors/setup-makefiles.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/extractors/setup-makefiles.sh b/extractors/setup-makefiles.sh index 0161cb5..2f3dbc9 100755 --- a/extractors/setup-makefiles.sh +++ b/extractors/setup-makefiles.sh @@ -176,3 +176,14 @@ echo "endif" >> "$PRODUCTMK" # We are done! write_footers + +# Add a guard on the top level +cat << EOF > "$CM_ROOT/vendor/$VENDOR/$DEVICE/Android.mk" +LOCAL_PATH := \$(call my-dir) + +include \$(CLEAR_VARS) + +ifeq (\$(BOARD_USES_QCOM_HARDWARE),true) +include \$(call all-makefiles-under,\$(LOCAL_PATH)) +endif +EOF |