Merge remote-tracking branch 'thingos/dev' into dev

This commit is contained in:
Calin Crisan 2019-06-06 09:46:52 +03:00
commit b8e90f2c3d
5 changed files with 38 additions and 2 deletions

View File

@ -51,7 +51,7 @@ mkfs.vfat -F16 ${loop_dev}
msg "mounting boot loop device"
mkdir -p ${BOOT}
mount -o loop ${loop_dev} ${BOOT}
mount ${loop_dev} ${BOOT}
msg "copying boot filesystem contents"
cp -r ${BOOT_SRC}/* ${BOOT}
@ -75,7 +75,7 @@ tune2fs -O^has_journal ${loop_dev}
msg "mounting root loop device"
mkdir -p ${ROOT}
mount -o loop ${loop_dev} ${ROOT}
mount ${loop_dev} ${ROOT}
msg "copying root filesystem contents"
tar -xpsf ${ROOT_SRC} -C ${ROOT}

View File

@ -831,6 +831,7 @@ menu "External python modules"
source "package/python-bcrypt/Config.in"
source "package/python-beautifulsoup4/Config.in"
source "package/python-bitstring/Config.in"
source "package/python-bluepy/Config.in"
source "package/python-bottle/Config.in"
source "package/python-cached-property/Config.in"
source "package/python-can/Config.in"

View File

@ -0,0 +1,8 @@
config BR2_PACKAGE_PYTHON_BLUEPY
bool "python-bluepy"
depends on BR2_PACKAGE_PYTHON3
select BR2_PACKAGE_BLUEZ5_UTILS
help
Python interface to Bluetooth LE on Linux
https://github.com/IanHarvey/bluepy

View File

@ -0,0 +1 @@
sha256 2a71edafe103565fb990256ff3624c1653036a837dfc90e1e32b839f83971cec bluepy-1.3.0.tar.gz

View File

@ -0,0 +1,26 @@
################################################################################
#
# python-bluepy
#
################################################################################
PYTHON_BLUEPY_VERSION = 1.3.0
PYTHON_BLUEPY_SOURCE = bluepy-$(PYTHON_BLUEPY_VERSION).tar.gz
PYTHON_BLUEPY_SITE = https://files.pythonhosted.org/packages/27/91/6cfca10bee9862f93015413cf9e6a52c3081a71f1518963396a055128f8e
PYTHON_BLUEPY_SETUP_TYPE = setuptools
PYTHON_BLUEPY_LICENSE = GPL-2.0+
PYTHON_BLUEPY_LICENSE_FILES = LICENSE.txt
PYTHON_BLUEPY_ENV = CC=$(TARGET_CROSS)gcc
define PYTHON_BLUEPY_REMOVE_CRAP
$(RM) $(TARGET_DIR)/usr/bin/blescan
$(RM) $(TARGET_DIR)/usr/bin/thingy52
$(RM) $(TARGET_DIR)/usr/bin/sensortag
$(RM) $(TARGET_DIR)/usr/lib/python*/site-packages/bluepy/bluez-src.tgz
$(RM) $(TARGET_DIR)/usr/lib/python*/site-packages/bluepy/*.{h,c}
$(RM) $(TARGET_DIR)/usr/lib/python*/site-packages/bluepy/Makefile
endef
PYTHON_BLUEPY_POST_INSTALL_TARGET_HOOKS += PYTHON_BLUEPY_REMOVE_CRAP
$(eval $(python-package))