tce-load -i compiletc dbus-dev libical3-dev readline-dev udev-lib-dev wget https://www.kernel.org/pub/linux/bluetooth/bluez-5.55.tar.xz cd bluez-5.55 CC="gcc -flto -mtune=generic -Os -pipe" CXX="g++ -flto -mtune=generic -Os -pipe -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local --disable-static --localstatedir=/var --libexecdir=/usr/local/lib --disable-systemd --enable-library find . -name Makefile -type f -exec sed -i 's/-g -O2//g' {} \; make [1m 17.47s] sudo make install sudo install -dm755 /usr/local/etc/bluetooth sudo install -m644 src/main.conf /usr/local/etc/bluetooth/main.conf sudo install -m644 profiles/input/input.conf /usr/local/etc/bluetooth/input.conf sudo install -m644 profiles/network/network.conf /usr/local/etc/bluetooth/network.conf cat > /etc/bluetooth/rfcomm.conf << "EOF" # Start rfcomm.conf # Set up the RFCOMM configuration of the Bluetooth subsystem in the Linux kernel. # Use one line per command # See the rfcomm man page for options # End of rfcomm.conf EOF cat > /etc/bluetooth/uart.conf << "EOF" # Start uart.conf # Attach serial devices via UART HCI to BlueZ stack # Use one line per device # See the hciattach man page for options # End of uart.conf EOF