3.1 Enabling BlueZ 5.x Package using Build Root Options
Perform the following steps to enable Bluetooth-related packages and tools for SAMA5D4 and ATWILC3000.
- Clone the Buildroot-at91. For more details on cloning and building the buildroot-at9, refer to https://www.at91.com/linux4sam/bin/view/Linux4SAM/BuildRootBuild#How_to_build_Buildroot_for_AT91.
 - Configure the SAMA5D4 Xplained
          defconfig.Go to the directory of the buildroot, then enter the following command:
$make atmel_sama5d4_xplained_defconfig - Configure the menuconfig. Go to the directory of the buildroot, then enter the following command:
$ make menuconfigNote: The WCHAR support (Toolchain > WCHAR) must be enabled, as it has dependency on the BlueZ stack.Figure 3-9. Enable WCHAR Support  - To enable the Bluez5 stack, navigate to
          Target packages > Network Applications, then select the tools as shown in
        the following figure.
Figure 3-10. Enable Bluez Note: Make sure that install deprecated tool is selected; the tool includes the hciattach tool. This is used to enable Bluetooth over UART. - Save the config file, then run the
          
makecommand.After successful completion, the
rootfs.ubifile is generated in the/buildroot-at91/outputfolder. 
