From 60bf75ae47f9cda059db3a37f715589603924241 Mon Sep 17 00:00:00 2001 From: Anton Hansson Date: Wed, 6 Feb 2019 15:41:36 +0000 Subject: [PATCH] Add bluetooth build config for mainline This matches the build config used on current mainline devices, but should ideally be removed once possible. Bug: 123695868 Test: boot blueline Change-Id: I8fdef9fbe45b75f175afe9350974f54d1ec5e0c8 --- target/board/BoardConfigMainlineCommon.mk | 4 +++ .../bluetooth/bdroid_buildcfg.h | 28 +++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 target/board/mainline_arm64/bluetooth/bdroid_buildcfg.h diff --git a/target/board/BoardConfigMainlineCommon.mk b/target/board/BoardConfigMainlineCommon.mk index 9a4fb3a636..e87bd5e55e 100644 --- a/target/board/BoardConfigMainlineCommon.mk +++ b/target/board/BoardConfigMainlineCommon.mk @@ -31,5 +31,9 @@ BOARD_USES_SYSTEM_OTHER_ODEX := true # Audio: must using XML format for Treblized devices USE_XML_AUDIO_POLICY_CONF := 1 +# Bluetooth defines +# TODO(b/123695868): Remove the need for this +BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := build/make/target/board/mainline_arm64/bluetooth + BOARD_AVB_ENABLE := true BOARD_AVB_ROLLBACK_INDEX := $(PLATFORM_SECURITY_PATCH_TIMESTAMP) diff --git a/target/board/mainline_arm64/bluetooth/bdroid_buildcfg.h b/target/board/mainline_arm64/bluetooth/bdroid_buildcfg.h new file mode 100644 index 0000000000..0ea8fc2747 --- /dev/null +++ b/target/board/mainline_arm64/bluetooth/bdroid_buildcfg.h @@ -0,0 +1,28 @@ +/* + * + * Copyright (c) 2013, The Linux Foundation. All rights reserved. + * Not a Contribution, Apache license notifications and license are retained + * for attribution purposes only. + * + * Copyright (C) 2012 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef _BDROID_BUILDCFG_H +#define _BDROID_BUILDCFG_H + +// VSC spec support +#define BLE_VND_INCLUDED TRUE + +#endif