mirror of
https://github.com/MiyooCFW/buildroot.git
synced 2025-09-27 22:24:19 +03:00
create rootf's & SDK from 2018.02.9 buildroot (#10)
--------- Co-authored-by: tiopex <tiopxyz@gmail.com> Co-authored-by: tiopex <67048640+tiopex@users.noreply.github.com>
This commit is contained in:
@@ -1,6 +1,18 @@
|
||||
comment "python-sip needs a toolchain w/ C++, threads"
|
||||
depends on BR2_USE_MMU
|
||||
depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS
|
||||
|
||||
comment "python-sip needs qt or qt5"
|
||||
depends on BR2_USE_MMU
|
||||
depends on BR2_INSTALL_LIBSTDCPP && BR2_TOOLCHAIN_HAS_THREADS
|
||||
depends on !BR2_PACKAGE_QT && !BR2_PACKAGE_QT5
|
||||
|
||||
config BR2_PACKAGE_PYTHON_SIP
|
||||
bool "python-sip"
|
||||
depends on BR2_PACKAGE_QT5
|
||||
depends on BR2_INSTALL_LIBSTDCPP # qt
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS # qt
|
||||
depends on BR2_USE_MMU # qt
|
||||
depends on BR2_PACKAGE_QT || BR2_PACKAGE_QT5
|
||||
help
|
||||
SIP is a tool that makes it very easy to create Python
|
||||
bindings for C and C++ libraries. It was originally
|
||||
|
||||
@@ -1,7 +1,4 @@
|
||||
# From https://sourceforge.net/projects/pyqt/files/sip/sip-4.18/
|
||||
md5 78724bf2a79878201c3bc81a1d8248ea sip-4.18.tar.gz
|
||||
md5 78724bf2a79878201c3bc81a1d8248ea sip-4.18.tar.gz
|
||||
# Locally calculated:
|
||||
sha256 f1dc5c81c07a9ad97edcd4a0af964a41e420024ba7ca165afd2b351efd249cb6 sip-4.18.tar.gz
|
||||
sha256 accecbfda71ad4497bce0d451796706e734e405e5ecf3b3f9ee0cc68300a3d9c LICENSE
|
||||
sha256 7ebb61006e46b9e9340dd135d5f4afbbcb1d1d6c6709f74473b35929007b9aeb LICENSE-GPL2
|
||||
sha256 63cb5f5c1ea39b732c495f354f971e40f6db84c567ca5573a68bb65af07741f8 LICENSE-GPL3
|
||||
sha256 f1dc5c81c07a9ad97edcd4a0af964a41e420024ba7ca165afd2b351efd249cb6 sip-4.18.tar.gz
|
||||
|
||||
@@ -10,8 +10,23 @@ PYTHON_SIP_SITE = http://downloads.sourceforge.net/project/pyqt/sip/sip-$(PYTHON
|
||||
PYTHON_SIP_LICENSE = SIP license or GPL-2.0 or GPL-3.0
|
||||
PYTHON_SIP_LICENSE_FILES = LICENSE LICENSE-GPL2 LICENSE-GPL3
|
||||
|
||||
PYTHON_SIP_DEPENDENCIES = python3 qt5base
|
||||
HOST_PYTHON_SIP_DEPENDENCIES = host-python3
|
||||
ifeq ($(BR2_PACKAGE_QT5),y)
|
||||
PYTHON_SIP_DEPENDENCIES = qt5base
|
||||
else
|
||||
PYTHON_SIP_DEPENDENCIES = qt
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_PYTHON),y)
|
||||
PYTHON_SIP_DEPENDENCIES += python
|
||||
HOST_PYTHON_SIP_DEPENDENCIES += host-python
|
||||
PYTHON_SIP_LIB_DIR = usr/lib/python$(PYTHON_VERSION_MAJOR)/site-packages
|
||||
PYTHON_SIP_INCLUDE_DIR = usr/include/python$(PYTHON_VERSION_MAJOR)
|
||||
else ifeq ($(BR2_PACKAGE_PYTHON3),y)
|
||||
PYTHON_SIP_DEPENDENCIES += python3
|
||||
HOST_PYTHON_SIP_DEPENDENCIES += host-python3
|
||||
PYTHON_SIP_LIB_DIR = usr/lib/python$(PYTHON3_VERSION_MAJOR)/site-packages
|
||||
PYTHON_SIP_INCLUDE_DIR = usr/include/python$(PYTHON3_VERSION_MAJOR)m
|
||||
endif
|
||||
|
||||
define HOST_PYTHON_SIP_CONFIGURE_CMDS
|
||||
(cd $(@D); \
|
||||
@@ -30,8 +45,8 @@ define PYTHON_SIP_CONFIGURE_CMDS
|
||||
(cd $(@D); \
|
||||
$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(HOST_DIR)/bin/python configure.py \
|
||||
--bindir $(TARGET_DIR)/usr/bin \
|
||||
--destdir $(TARGET_DIR)/usr/lib/python$(PYTHON3_VERSION_MAJOR)/site-packages \
|
||||
--incdir $(STAGING_DIR)/usr/include/python$(PYTHON3_VERSION_MAJOR) \
|
||||
--destdir $(TARGET_DIR)/$(PYTHON_SIP_LIB_DIR) \
|
||||
--incdir $(STAGING_DIR)/$(PYTHON_SIP_INCLUDE_DIR) \
|
||||
--sipdir $(TARGET_DIR)/usr/share/sip \
|
||||
--sysroot $(STAGING_DIR)/usr \
|
||||
--use-qmake && \
|
||||
|
||||
Reference in New Issue
Block a user