Home Assistant - Cross compile for Python3 module( Pycryptodome)

Hi, I want to install home assistant to Openwrt. Create Virutual Environment Python 3 and install Home Assistant successfully, but when start Home Assistant first time( hass --open-ui) , Home Assistant will install some more module which is not available. So I want Cross compile python3 module to ipk to manual setup on Openwrt
I install SDK, PATH location
here are link to Module: https://pypi.org/project/pycryptodomex/3.4.1/
My Makefile Content here(edited from python3-bottle openwrt package)

#
# Copyright (C) 2015 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
#pycryptodome-3.3.1.tar.gz
include $(TOPDIR)/rules.mk

PKG_NAME:=python3-pycryptodome
PKG_VERSION:=3.3.1
PKG_RELEASE:=1

PKG_LICENSE:=MIT
PKG_LICENSE_FILES:=LICENSE
#PKG_CPE_ID:=cpe:/a:pycryptodomepy:pycryptodome
#pycryptodome-3.8.1.tar.gz
PKG_MAINTAINER:=Josef Schlehofer <josef.schlehofer@nic.cz>

PKG_SOURCE:=pycryptodome-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/d2/50/6e4f3b4a77a430639feb6e37f5514fd537f011c0c8ce698f40731d4066b1/
PKG_HASH:=1b52d5643e243a6d5ba4b5706e6ae59ee61b14e800ff812c1e47ec4dfe8e4761
PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-pycryptodome-$(PKG_VERSION)

include $(INCLUDE_DIR)/package.mk
#include ../python3-package.mk

PKG_UNPACK=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)

define Package/python3-pycryptodome
	SECTION:=lang
	CATEGORY:=Languages
	SUBMENU:=Python
	TITLE:=pycryptodome is a fast, simple and lightweight WSGI micro web-framework for Python
	URL:=https://pycryptodomepy.org
	DEPENDS:=+python3
	VARIANT:=python3
endef

define Package/python3-pycryptodome/description
 pycryptodome is a fast, simple and lightweight WSGI micro web-framework for Python.
 It is distributed as a single file module and has no dependencies other than the
 Python Standard Library.
endef

$(eval $(call Py3Package,python3-pycryptodome))
$(eval $(call BuildPackage,python3-pycryptodome))
#$(eval $(call BuildPackage,python3-pycryptodome-src))

make package/python3-pycryptodome/download V=sc               OK, succesful, file downloaded
make package/pythone3-pycryptodome/prepare V=sc 

WARNING: Makefile 'package/linux/Makefile' has a dependency on 'r8169-firmware', which does not exist
WARNING: Makefile 'package/linux/Makefile' has a dependency on 'e100-firmware', which does not exist
WARNING: Makefile 'package/linux/Makefile' has a dependency on 'bnx2-firmware', which does not exist
WARNING: Makefile 'package/linux/Makefile' has a dependency on 'ar3k-firmware', which does not exist
WARNING: Makefile 'package/linux/Makefile' has a dependency on 'mwifiex-sdio-firmware', which does not exist
WARNING: Makefile 'package/linux/Makefile' has a dependency on 'kmod-phy-bcm-ns-usb2', which does not exist
WARNING: Makefile 'package/linux/Makefile' has a dependency on 'edgeport-firmware', which does not exist
WARNING: Makefile 'package/linux/Makefile' has a dependency on 'kmod-phy-bcm-ns-usb3', which does not exist
WARNING: Makefile 'package/linux/Makefile' has a dependency on 'prism54-firmware', which does not exist
WARNING: Makefile 'package/linux/Makefile' has a dependency on 'rtl8192su-firmware', which does not exist
WARNING: Makefile 'package/python3-pycryptodome/Makefile' has a dependency on 'python3', which does not exist
tmp/.config-package.in:36:warning: ignoring type redefinition of 'PACKAGE_libc' from 'boolean' to 'tristate'
tmp/.config-package.in:64:warning: ignoring type redefinition of 'PACKAGE_libgcc' from 'boolean' to 'tristate'
tmp/.config-package.in:149:warning: ignoring type redefinition of 'PACKAGE_libpthread' from 'boolean' to 'tristate'
#
# configuration written to .config
#
make[1]: Entering directory '/home/tr4usut/sdk'
make[2]: Entering directory '/home/tr4usut/sdk/package/python3-pycryptodome'
make[2]: Leaving directory '/home/tr4usut/sdk/package/python3-pycryptodome'
time: package/python3-pycryptodome/python3/prepare#0.03#0.01#0.22
make[1]: Leaving directory '/home/tr4usut/sdk' 
###############################Seem OK###########################

but when i run
 make package/python3-pycryptodome/compile V=sc

it show error:
WARNING: Makefile 'package/linux/Makefile' has a dependency on 'r8169-firmware', which does not exist
WARNING: Makefile 'package/linux/Makefile' has a dependency on 'e100-firmware', which does not exist
WARNING: Makefile 'package/linux/Makefile' has a dependency on 'bnx2-firmware', which does not exist
WARNING: Makefile 'package/linux/Makefile' has a dependency on 'ar3k-firmware', which does not exist
WARNING: Makefile 'package/linux/Makefile' has a dependency on 'mwifiex-sdio-firmware', which does not exist
WARNING: Makefile 'package/linux/Makefile' has a dependency on 'kmod-phy-bcm-ns-usb2', which does not exist
WARNING: Makefile 'package/linux/Makefile' has a dependency on 'edgeport-firmware', which does not exist
WARNING: Makefile 'package/linux/Makefile' has a dependency on 'kmod-phy-bcm-ns-usb3', which does not exist
WARNING: Makefile 'package/linux/Makefile' has a dependency on 'prism54-firmware', which does not exist
WARNING: Makefile 'package/linux/Makefile' has a dependency on 'rtl8192su-firmware', which does not exist
WARNING: Makefile 'package/python3-pycryptodome/Makefile' has a dependency on 'python3', which does not exist
tmp/.config-package.in:36:warning: ignoring type redefinition of 'PACKAGE_libc' from 'boolean' to 'tristate'
tmp/.config-package.in:64:warning: ignoring type redefinition of 'PACKAGE_libgcc' from 'boolean' to 'tristate'
tmp/.config-package.in:149:warning: ignoring type redefinition of 'PACKAGE_libpthread' from 'boolean' to 'tristate'
#
# configuration written to .config
#
make[1]: Entering directory '/home/tr4usut/sdk'
make[2]: Entering directory '/home/tr4usut/sdk/package/toolchain'
echo "libc" >> /home/tr4usut/sdk/staging_dir/target-mipsel_24kc_musl/pkginfo/toolchain.default.install
echo "libgcc" >> /home/tr4usut/sdk/staging_dir/target-mipsel_24kc_musl/pkginfo/toolchain.default.install
echo "libpthread" >> /home/tr4usut/sdk/staging_dir/target-mipsel_24kc_musl/pkginfo/toolchain.default.install
touch -r /home/tr4usut/sdk/build_dir/target-mipsel_24kc_musl/toolchain/.built /home/tr4usut/sdk/build_dir/target-mi
psel_24kc_musl/toolchain/.autoremove 2>/dev/null >/dev/null
find /home/tr4usut/sdk/build_dir/target-mipsel_24kc_musl/toolchain -mindepth 1 -maxdepth 1 -not '(' -type f -and -n
ame '.*' -and -size 0 ')' -and -not -name '.pkgdir' | xargs -r rm -rf
make[2]: Leaving directory '/home/tr4usut/sdk/package/toolchain'
time: package/toolchain/compile#0.04#0.02#0.28
make[2]: Entering directory '/home/tr4usut/sdk/package/python3-pycryptodome'
touch -r /home/tr4usut/sdk/build_dir/target-mipsel_24kc_musl/python3-pycryptodome-3.3.1/.built /home/tr4usut/sdk/bu
ild_dir/target-mipsel_24kc_musl/python3-pycryptodome-3.3.1/.autoremove 2>/dev/null >/dev/null
Makefile:47: recipe for target 'compile' failed
make[2]: [compile] Error 1 (ignored)
find /home/tr4usut/sdk/build_dir/target-mipsel_24kc_musl/python3-pycryptodome-3.3.1 -mindepth 1 -maxdepth 1 -not '(
' -type f -and -name '.*' -and -size 0 ')' -and -not -name '.pkgdir' | xargs -r rm -rf
make[2]: Leaving directory '/home/tr4usut/sdk/package/python3-pycryptodome'
time: package/python3-pycryptodome/python3/compile#0.03#0.01#0.20
make[1]: Leaving directory '/home/tr4usut/sdk'

Error is not clearly. Hope everyone can help. tks

Did you run a build first successfully? Not sure with the SDK ( version? )

buildroot might be easier.... ( for me anyway :wink: )

Are you trying it to have it on OpenWrt 18.06.02 or master?
In OpenWrt master, there are already packages, which you want as python-cryptodome, python-cryptodomex and so on. Also, there should be soon added Home Assistant soon once I finish the tasks, which are mentioned there.

I try on master, problem that available pack is lastest pycrytodome, HA use a older version . wait for your package complete. Tks you.