Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OBLFR: use OSS version of bouffalo_sdk tools #80

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions package/blmcusdk/blmcusdk.mk
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,16 @@
#
################################################################################

BLMCUSDK_VERSION = ab70ccc953269bb4a35279000beea9013da5ac1c
BLMCUSDK_SITE = $(call github,bouffalolab,bl_mcu_sdk,$(BLMCUSDK_VERSION))
BLMCUSDK_VERSION = openbouffalo_compat
BLMCUSDK_SITE = $(call github,Pavlos1,bouffalo_sdk_oss,$(BLMCUSDK_VERSION))

BLMCUSDK_LICENSE = Apache-2.0 license
BLMCUSDK_LICENSE_FILES = LICENSE

HOST_BLMCUSDK_DEPENDENCIES = host-cmake host-riscv-unknown-elf-gcc
HOST_BLMCUSDK_DEPENDENCIES = host-cmake host-python-portalocker host-python-serial host-python-ecdsa host-python-six host-python-psutil host-riscv-unknown-elf-gcc host-python-bflb-crypto-plus host-python-psutil host-python-pycklink host-python-pycryptodome host-python-pylink-square

define HOST_BLMCUSDK_INSTALL_CMDS
@mkdir -p $(HOST_DIR)/opt
$(call SYSTEM_RSYNC,$(@D),$(HOST_DIR)/opt/bl_mcu_sdk)
endef

Expand Down
3 changes: 3 additions & 0 deletions package/python-bflb-crypto-plus/python-bflb-crypto-plus.hash
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# md5, sha256 from https://pypi.org/pypi/bflb-crypto-plus/json
md5 96078c60d35d1ac77781deed524cca14 bflb_crypto_plus-1.0.tar.gz
sha256 b1b483874e5d2ecb49f9f85259715ad94b76f9627b3de9fa677f6ca5ce666242 bflb_crypto_plus-1.0.tar.gz
13 changes: 13 additions & 0 deletions package/python-bflb-crypto-plus/python-bflb-crypto-plus.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
################################################################################
#
# python-bflb-crypto-plus
#
################################################################################

PYTHON_BFLB_CRYPTO_PLUS_VERSION = 1.0
PYTHON_BFLB_CRYPTO_PLUS_SOURCE = bflb_crypto_plus-$(PYTHON_BFLB_CRYPTO_PLUS_VERSION).tar.gz
PYTHON_BFLB_CRYPTO_PLUS_SITE = https://files.pythonhosted.org/packages/b1/a4/bda733fe91c9b3424627597768bf8ab2cf683f1e81a88544d126f94536bd
PYTHON_BFLB_CRYPTO_PLUS_SETUP_TYPE = setuptools
PYTHON_BFLB_CRYPTO_PLUS_LICENSE =

$(eval $(host-python-package))
5 changes: 5 additions & 0 deletions package/python-ecdsa/python-ecdsa.hash
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# md5, sha256 from https://pypi.org/pypi/ecdsa/json
md5 cbca26ec29cc50e32e8b070aa2ec0786 ecdsa-0.18.0.tar.gz
sha256 190348041559e21b22a1d65cee485282ca11a6f81d503fddb84d5017e9ed1e49 ecdsa-0.18.0.tar.gz
# Locally computed sha256 checksums
sha256 3eca9845773d2e5b8cc9d8c119d345f00a4806e4bd660d4a3d6cdf9c0e9d8bb2 LICENSE
16 changes: 16 additions & 0 deletions package/python-ecdsa/python-ecdsa.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
################################################################################
#
# python-ecdsa
#
################################################################################

PYTHON_ECDSA_VERSION = 0.18.0
PYTHON_ECDSA_SOURCE = ecdsa-$(PYTHON_ECDSA_VERSION).tar.gz
PYTHON_ECDSA_SITE = https://files.pythonhosted.org/packages/ff/7b/ba6547a76c468a0d22de93e89ae60d9561ec911f59532907e72b0d8bc0f1
PYTHON_ECDSA_SETUP_TYPE = setuptools
PYTHON_ECDSA_LICENSE = MIT
PYTHON_ECDSA_LICENSE_FILES = LICENSE

HOST_PYTHON_ECDSA_DEPENDENCIES = host-python-six

$(eval $(host-python-package))
13 changes: 13 additions & 0 deletions package/python-portalocker/python-portalocker.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
################################################################################
#
# python-portalocker
#
################################################################################

PYTHON_PORTALOCKER_VERSION = v2.0.0
PYTHON_PORTALOCKER_SITE = $(call github,wolph,portalocker,$(PYTHON_PORTALOCKER_VERSION))
PYTHON_PORTALOCKER_SETUP_TYPE = setuptools
PYTHON_PORTALOCKER_LICENSE = BSD-3-CLAUSE
PYTHON_PORTALOCKER_LICENSE_FILES = LICENSE

$(eval $(host-python-package))
5 changes: 5 additions & 0 deletions package/python-pycklink/python-pycklink.hash
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# md5, sha256 from https://pypi.org/pypi/pycklink/json
md5 ca6cca962f081382a310a317daf1b1da pycklink-0.1.1.tar.gz
sha256 51bddaef6575e4591eca8ed191b8cc6a3e9f694adc0bc46445149b354baafe4b pycklink-0.1.1.tar.gz
# Locally computed sha256 checksums
sha256 7da384693e018c0ea39f61fa01bbed721229d275ff97f7f0eac48d97cbd3de20 LICENSE
14 changes: 14 additions & 0 deletions package/python-pycklink/python-pycklink.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
################################################################################
#
# python-pycklink
#
################################################################################

PYTHON_PYCKLINK_VERSION = 0.1.1
PYTHON_PYCKLINK_SOURCE = pycklink-$(PYTHON_PYCKLINK_VERSION).tar.gz
PYTHON_PYCKLINK_SITE = https://files.pythonhosted.org/packages/7a/aa/ba1ff6fbfe81db938be73ced378230002eb2bb45cb8f81dd39b79ac6c08f
PYTHON_PYCKLINK_SETUP_TYPE = setuptools
PYTHON_PYCKLINK_LICENSE = MIT
PYTHON_PYCKLINK_LICENSE_FILES = LICENSE

$(eval $(host-python-package))
6 changes: 6 additions & 0 deletions package/python-pycryptodome/python-pycryptodome.hash
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# md5, sha256 from https://pypi.org/pypi/pycryptodome/json
md5 b6f99715010bbb3f5e0400adc0063dfb pycryptodome-3.19.0.tar.gz
sha256 bc35d463222cdb4dbebd35e0784155c81e161b9284e567e7e933d722e533331e pycryptodome-3.19.0.tar.gz
# Locally computed sha256 checksums
sha256 4e04660d77c1c64e89d79537919fb8240fa21484a7e3db29f358b2c7f84ea073 LICENSE.rst
sha256 90f7f2fe5827666516bc10bd27036491290d77662818eace211e007422f59d02 Doc/src/license.rst
14 changes: 14 additions & 0 deletions package/python-pycryptodome/python-pycryptodome.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
################################################################################
#
# python-pycryptodome
#
################################################################################

PYTHON_PYCRYPTODOME_VERSION = 3.19.0
PYTHON_PYCRYPTODOME_SOURCE = pycryptodome-$(PYTHON_PYCRYPTODOME_VERSION).tar.gz
PYTHON_PYCRYPTODOME_SITE = https://files.pythonhosted.org/packages/1a/72/acc37a491b95849b51a2cced64df62aaff6a5c82d26aca10bc99dbda025b
PYTHON_PYCRYPTODOME_SETUP_TYPE = setuptools
PYTHON_PYCRYPTODOME_LICENSE = Public Domain, Apache-2.0, FIXME: please specify the exact BSD version
PYTHON_PYCRYPTODOME_LICENSE_FILES = LICENSE.rst Doc/src/license.rst

$(eval $(host-python-package))
5 changes: 5 additions & 0 deletions package/python-pylink-square/python-pylink-square.hash
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# md5, sha256 from https://pypi.org/pypi/pylink-square/json
md5 1f7376ed1196bd39a83a0887ee27fe7b pylink-square-1.2.0.tar.gz
sha256 736cf9e0272e87cdca1189f632f8d511e8f079c0ab96252fc331189490253ac3 pylink-square-1.2.0.tar.gz
# Locally computed sha256 checksums
sha256 1aaa40c02c54e283ea224eee097864ddb56c521d076d37f8f8baf6479b568ea8 LICENSE.md
14 changes: 14 additions & 0 deletions package/python-pylink-square/python-pylink-square.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
################################################################################
#
# python-pylink-square
#
################################################################################

PYTHON_PYLINK_SQUARE_VERSION = 1.2.0
PYTHON_PYLINK_SQUARE_SOURCE = pylink-square-$(PYTHON_PYLINK_SQUARE_VERSION).tar.gz
PYTHON_PYLINK_SQUARE_SITE = https://files.pythonhosted.org/packages/4d/01/d63b65a9e23da016da962b01cb4c30fd9132ce6408550697169d5a9c9278
PYTHON_PYLINK_SQUARE_SETUP_TYPE = setuptools
PYTHON_PYLINK_SQUARE_LICENSE = Apache 2.0
PYTHON_PYLINK_SQUARE_LICENSE_FILES = LICENSE.md

$(eval $(host-python-package))