Import buildroot 2016.02.01

This commit is contained in:
2016-02-24 22:35:39 +01:00
parent a6ee09dea4
commit 828befcf3c
7393 changed files with 390887 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
Do not use /usr/include for headers
Using /usr/include is wrong when doing cross-compilation, so get rid
of it, and rely on the compiler to use the appropriate default paths
for headers.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Index: b/setup.py
===================================================================
--- a/setup.py
+++ b/setup.py
@@ -370,7 +370,7 @@
'ext_modules': plat_ext + [
# _fastmath (uses GNU mp library)
Extension("Crypto.PublicKey._fastmath",
- include_dirs=['src/','/usr/include/'],
+ include_dirs=['src/'],
libraries=['gmp'],
sources=["src/_fastmath.c"]),

View File

@@ -0,0 +1,8 @@
config BR2_PACKAGE_PYTHON_PYCRYPTO
bool "python-pycrypto"
select BR2_PACKAGE_GMP
help
PyCrypto is a collection of cryptographic algorithms and
protocols, implemented for use from Python.
http://www.pycrypto.org/

View File

@@ -0,0 +1,2 @@
# Locally calculated after checking pgp signature
sha256 7293c9d7e8af2e44a82f86eb9c3b058880f4bcc884bf3ad6c8a34b64986edde8 pycrypto-2.6.tar.gz

View File

@@ -0,0 +1,46 @@
################################################################################
#
# python-pycrypto
#
################################################################################
PYTHON_PYCRYPTO_VERSION = 2.6
PYTHON_PYCRYPTO_SOURCE = pycrypto-$(PYTHON_PYCRYPTO_VERSION).tar.gz
PYTHON_PYCRYPTO_SITE = http://ftp.dlitz.net/pub/dlitz/crypto/pycrypto
PYTHON_PYCRYPTO_SETUP_TYPE = distutils
PYTHON_PYCRYPTO_LICENSE = Public Domain, Python 2.2 License (HMAC.py, setup.py)
PYTHON_PYCRYPTO_LICENSE_FILES = \
COPYRIGHT LEGAL/copy/LICENSE.libtom \
LEGAL/copy/LICENSE.python-2.2
# The pycrypto package contains a LICENSE.orig file, but our patching
# infrastrucure removes all .orig file, so we must rename that license
# file prior to patching, so it is still available to the legal-info
# infrastructure
define PYTHON_PYCRYPTO_RENAME_LICENSE
mv $(@D)/LEGAL/copy/LICENSE.orig $(@D)/LEGAL/copy/LICENSE.original
endef
PYTHON_PYCRYPTO_POST_EXTRACT_HOOKS += PYTHON_PYCRYPTO_RENAME_LICENSE
PYTHON_PYCRYPTO_LICENSE_FILES += LEGAL/copy/LICENSE.original
PYTHON_PYCRYPTO_DEPENDENCIES = gmp
# The configure step needs to be run outside of the setup.py since it isn't
# run correctly for cross-compiling
define PYTHON_PYCRYPTO_CONFIGURE_CMDS
(cd $(@D) && \
$(TARGET_CONFIGURE_OPTS) \
$(TARGET_CONFIGURE_ARGS) \
./configure \
--target=$(GNU_TARGET_NAME) \
--host=$(GNU_TARGET_NAME) \
--build=$(GNU_HOST_NAME) \
--prefix=/usr \
--exec-prefix=/usr \
--sysconfdir=/etc \
--program-prefix="" \
)
endef
$(eval $(python-package))