summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Quattlebaum <rquattle@google.com>2018-02-02 15:51:03 -0800
committerRobert Quattlebaum <rquattle@google.com>2018-02-02 15:55:45 -0800
commitce0c6366980ec3ee29a52baa7fdaab293365f404 (patch)
treea8657b3789c7cb5e9bcac8e60c4efef7fbb0a91a
parent123cb622bb6ac3f42db2ff67e4676b4e0910a376 (diff)
downloadlowpan-ce0c6366980ec3ee29a52baa7fdaab293365f404.tar.gz
Don't add rule for lowpan_hdlc_adapter if not building lowpan support
This avoids breaking the build if the LoWPAN HAL isn't available on a given branch. Bug: b/70238897 Change-Id: I28d360aec9eedc43716fa5650538dbd3c2a6ebe6
-rw-r--r--build/wpantund.mk2
-rw-r--r--lowpan_hdlc_adapter/Android.mk2
2 files changed, 4 insertions, 0 deletions
diff --git a/build/wpantund.mk b/build/wpantund.mk
index 2e504c1..029ff6c 100644
--- a/build/wpantund.mk
+++ b/build/wpantund.mk
@@ -13,6 +13,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
+LOWPAN_HAL_ENABLED = 1
+
PRODUCT_PACKAGES += \
wpantund
diff --git a/lowpan_hdlc_adapter/Android.mk b/lowpan_hdlc_adapter/Android.mk
index ece994c..8b96da4 100644
--- a/lowpan_hdlc_adapter/Android.mk
+++ b/lowpan_hdlc_adapter/Android.mk
@@ -16,6 +16,7 @@
LOCAL_PATH:= $(call my-dir)
+ifeq ($(LOWPAN_HAL_ENABLED), 1)
include $(CLEAR_VARS)
LOCAL_MODULE := lowpan_hdlc_adapter
LOCAL_MODULE_TAGS := optional
@@ -37,3 +38,4 @@ LOCAL_SHARED_LIBRARIES += \
android.hardware.lowpan@1.0
include $(BUILD_EXECUTABLE)
+endif