Fix compilation issues while disabling HAL compilation 34/154034/2
authorAnupam Roy <anupam.r@samsung.com>
Thu, 5 Oct 2017 10:40:33 +0000 (16:10 +0530)
committerAnupam Roy <anupam.r@samsung.com>
Thu, 5 Oct 2017 11:01:29 +0000 (16:31 +0530)
commitdac74052075040b216d27bfcd72810fc804d2028
tree395cb62d36195176fd5c013f0c2357927e34a4b4
parent3372723d214dcf339b1f42af111accd46a8da338
Fix compilation issues while disabling HAL compilation

This patch takes care of following:-

1. Removes bt_hal compilation flag as after code 4.0
   synchronization, "bt-service" is removed from compilation
   by default, which means now bluetooth-frwk will build
   with BT OAL by default. BT OAL will either use
   BlueZ HAL or other HAL implementation (possibly in future)

2. Move hardware out of bluez_hal and place it inside BT OAL
   directly. BT OAL compilation should only depend upon
   hardware's BT header files. hardware should not be tied with
   HAL implementation. This is in same line with In AOSP upstream,
   where hardware is provided separately inside libhardware project.
   As a result of this change, BT OAL will now build independently,
   however, it needs either Bluez HAL or other HAL implementation
   library for prividing all BT stack functionalities.

3. Fix few compilation issues in OAL's AVRCP TG and CT files
   if bt_bluez_hal is disabled.

Note: bt_bluez_hal compilation flag is by default ON. If this is disabled
      BT OAL will be built but with no underlying HAL implementation.

Change-Id: I3b9f8f27651b06826702bab10ce734098ef7f660
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
20 files changed:
bt-oal/CMakeLists.txt
bt-oal/bluez_hal/CMakeLists.txt
bt-oal/hardware/bluetooth.h [moved from bt-oal/bluez_hal/hardware/bluetooth.h with 100% similarity]
bt-oal/hardware/bt_av.h [moved from bt-oal/bluez_hal/hardware/bt_av.h with 100% similarity]
bt-oal/hardware/bt_gatt.h [moved from bt-oal/bluez_hal/hardware/bt_gatt.h with 100% similarity]
bt-oal/hardware/bt_gatt_client.h [moved from bt-oal/bluez_hal/hardware/bt_gatt_client.h with 100% similarity]
bt-oal/hardware/bt_gatt_server.h [moved from bt-oal/bluez_hal/hardware/bt_gatt_server.h with 100% similarity]
bt-oal/hardware/bt_gatt_types.h [moved from bt-oal/bluez_hal/hardware/bt_gatt_types.h with 100% similarity]
bt-oal/hardware/bt_hf.h [moved from bt-oal/bluez_hal/hardware/bt_hf.h with 100% similarity]
bt-oal/hardware/bt_hh.h [moved from bt-oal/bluez_hal/hardware/bt_hh.h with 100% similarity]
bt-oal/hardware/bt_hl.h [moved from bt-oal/bluez_hal/hardware/bt_hl.h with 100% similarity]
bt-oal/hardware/bt_rc.h [moved from bt-oal/bluez_hal/hardware/bt_rc.h with 100% similarity]
bt-oal/hardware/bt_sock.h [moved from bt-oal/bluez_hal/hardware/bt_sock.h with 100% similarity]
bt-oal/hardware/hardware.c [moved from bt-oal/bluez_hal/hardware/hardware.c with 100% similarity]
bt-oal/hardware/hardware.h [moved from bt-oal/bluez_hal/hardware/hardware.h with 100% similarity]
bt-oal/include/oal-event.h
bt-oal/oal-adapter-mgr.c
bt-oal/oal-avrcp-ctrl.c
bt-oal/oal-avrcp-tg.c
packaging/bluetooth-frwk.spec