# # set up environment # PATH, CC, CFLAGS, LDFLAGS, TARGETARCH, TOOLS TOOLS ... base directory for cross-compiler installation (e.g. /usr/local) TARGETARCH ... target architecture (e.g. arm-elf) # # cross-compiling bluez-libs # ./configure --host=$TARGETARCH --prefix=\"\"" make make DESTDIR="$TOOLS/$TARGETARCH" install # # cross-compiling bluez-utils # # applications for /bin # BLUEZ_UTILS_PROGS=dund/dund pand/pand hidd/hidd tools/ciptool tools/hcitool tools/l2ping rfcomm/rfcomm tools/sdptool # BLUEZ_UTILS_SPROGS=tools/hciattach tools/hciconfig hcid/hcid sdpd/sdpd # ROOT ... directory for target root filesystem ./configure "--host=$TARGETARCH --prefix=\"\" --with-bluez=$TOOLS/$TARGETARCH/include --with-usb=$TOOLS/$TARGETARCH/include" make install $BLUEZ_UTILS_PROGS $ROOT/bin install $BLUEZ_UTILS_SPROGS $ROOT/sbin