tce-load -i compiletc dbus-dev libical3-dev readline-dev udev-dev wget https://www.kernel.org/pub/linux/bluetooth/bluez-5.63.tar.xz wget https://www.linuxfromscratch.org/patches/blfs/svn/bluez-5.63-obexd_without_systemd-1.patch cd bluez-5.63 patch -Np1 -i ../bluez-5.63-obexd_without_systemd-1.patch CC="gcc -flto -march=i486 -mtune=i686 -Os -pipe" CXX="g++ -flto -march=i486 -mtune=i686 -Os -pipe -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local --disable-static --localstatedir=/var --libexecdir=/usr/local/lib --disable-systemd --enable-library --disable-manpages --enable-deprecated find . -name Makefile -type f -exec sed -i 's/-g -O2//g' {} \; make [1m 51.88s] 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