mirror of
https://github.com/MiyooCFW/buildroot.git
synced 2025-09-27 22:24:19 +03:00
bump version to 2022.02.9
add miyoo_defconfig
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
From bf9f0d619e2e0a424e471a2f9235d26ece5b348c Mon Sep 17 00:00:00 2001
|
||||
From: "Arnout Vandecappelle (Essensium/Mind)" <arnout@mind.be>
|
||||
Date: Fri, 7 Jan 2022 19:32:18 +0100
|
||||
Subject: [PATCH] pybind11/commands.py: support STAGING_DIR
|
||||
|
||||
In Buildroot, we install build-time python scripts in the host directory
|
||||
(otherwise they can't be run with host python), but when running
|
||||
pybind11 --includes it should return the staging directory.
|
||||
|
||||
Patch commands.py to use the STAGING_DIR environment variable instead of
|
||||
the current directory, if it is set.
|
||||
|
||||
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
|
||||
Upstream-Status: N/A, Buildroot specific
|
||||
---
|
||||
pybind11/commands.py | 3 ++-
|
||||
1 file changed, 2 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/pybind11/commands.py b/pybind11/commands.py
|
||||
index 11f81d2..8c4876d 100644
|
||||
--- a/pybind11/commands.py
|
||||
+++ b/pybind11/commands.py
|
||||
@@ -1,7 +1,8 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
import os
|
||||
|
||||
-DIR = os.path.abspath(os.path.dirname(__file__))
|
||||
+DIR = os.environ.get('STAGING_DIR') or \
|
||||
+ os.path.abspath(os.path.dirname(__file__))
|
||||
|
||||
|
||||
def get_include(user=False):
|
||||
--
|
||||
2.31.1
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Locally calculated
|
||||
sha256 97504db65640570f32d3fdf701c25a340c8643037c3b69aec469c10c93dc8504 python-pybind-2.5.0.tar.gz
|
||||
sha256 057fb68dafd972bc13afb855f3b0d8cf0fa1a78ef053e815d9af79be7ff567cb python-pybind-2.9.0.tar.gz
|
||||
# License files, locally calculated
|
||||
sha256 9a37ea54aa3cf12c7f3292799f20822ffd4b9b7142b36a7a9997b28c39264dc9 LICENSE
|
||||
sha256 83965b843b98f670d3a85bd041ed4b372c8ec50d7b4a5995a83ac697ba675dcb LICENSE
|
||||
|
||||
@@ -4,10 +4,25 @@
|
||||
#
|
||||
################################################################################
|
||||
|
||||
PYTHON_PYBIND_VERSION = 2.5.0
|
||||
PYTHON_PYBIND_VERSION = 2.9.0
|
||||
PYTHON_PYBIND_SITE = $(call github,pybind,pybind11,v$(PYTHON_PYBIND_VERSION))
|
||||
PYTHON_PYBIND_LICENSE = BSD-3-Clause
|
||||
PYTHON_PYBIND_LICENSE_FILES = LICENSE
|
||||
PYTHON_PYBIND_SETUP_TYPE = setuptools
|
||||
PYTHON_PYBIND_INSTALL_STAGING = YES
|
||||
PYTHON_PYBIND_INSTALL_TARGET = NO # Header-only library
|
||||
PYTHON_PYBIND_DEPENDENCIES = python3
|
||||
|
||||
$(eval $(python-package))
|
||||
PYTHON_PYBIND_CONF_OPTS = \
|
||||
-DPYBIND11_INSTALL=ON \
|
||||
-DPYBIND11_TEST=OFF \
|
||||
-DPYBIND11_NOPYTHON=ON
|
||||
|
||||
PYTHON_PYBIND_INSTALL_PATH = $(HOST_DIR)/usr/lib/python$(PYTHON3_VERSION_MAJOR)/site-packages/pybind11
|
||||
|
||||
define PYTHON_PYBIND_INSTALL_MODULE
|
||||
mkdir -p $(PYTHON_PYBIND_INSTALL_PATH)
|
||||
cp -dpf $(@D)/pybind11/*.py $(PYTHON_PYBIND_INSTALL_PATH)
|
||||
endef
|
||||
PYTHON_PYBIND_POST_INSTALL_STAGING_HOOKS += PYTHON_PYBIND_INSTALL_MODULE
|
||||
|
||||
$(eval $(cmake-package))
|
||||
|
||||
Reference in New Issue
Block a user