mirror of
https://github.com/thead-yocto-mirror/meta-openembedded
synced 2026-06-21 08:52:21 +02:00
merge in thead-V1.1.2 changes
Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
This commit is contained in:
26
meta-gnome/recipes-core/images/core-image-gnome.bb
Normal file
26
meta-gnome/recipes-core/images/core-image-gnome.bb
Normal file
@@ -0,0 +1,26 @@
|
||||
require core-image-minimal-gnome.bb
|
||||
|
||||
SUMMARY = "Basic desktop image for ice boards"
|
||||
|
||||
IMAGE_FEATURES += "splash package-management x11 ssh-server-openssh \
|
||||
tools-debug dev-pkgs debug-tweaks"
|
||||
|
||||
IMAGE_INSTALL += "gpgme gnupg"
|
||||
|
||||
|
||||
# boot to desktop
|
||||
SYSTEMD_DEFAULT_TARGET = "graphical.target"
|
||||
|
||||
# Gstreamer Packages
|
||||
IMAGE_INSTALL += " ffmpeg \
|
||||
gstreamer1.0 \
|
||||
gstreamer1.0-plugins-base \
|
||||
gstreamer1.0-plugins-bad \
|
||||
gstreamer1.0-plugins-good \
|
||||
gstreamer1.0-plugins-ugly \
|
||||
gstreamer1.0-libav \
|
||||
gstreamer1.0-rtsp-server \
|
||||
json-glib \
|
||||
libdaemon \
|
||||
jansson \
|
||||
"
|
||||
25
meta-gnome/recipes-core/images/core-image-minimal-gnome.bb
Normal file
25
meta-gnome/recipes-core/images/core-image-minimal-gnome.bb
Normal file
@@ -0,0 +1,25 @@
|
||||
DESCRIPTION = "A GNOME minimal demo image."
|
||||
|
||||
IMAGE_INSTALL += "packagegroup-core-boot \
|
||||
packagegroup-core-x11 \
|
||||
packagegroup-gnome-desktop \
|
||||
weston \
|
||||
glmark2 \
|
||||
gnome-calculator \
|
||||
gnome-calendar \
|
||||
gnome-settings-daemon \
|
||||
packagegroup-core-x11-base \
|
||||
packagegroup-core-x11-xserver \
|
||||
kernel-modules \
|
||||
"
|
||||
|
||||
inherit features_check
|
||||
REQUIRED_DISTRO_FEATURES = "x11"
|
||||
|
||||
IMAGE_LINGUAS ?= " "
|
||||
|
||||
LICENSE = "MIT"
|
||||
|
||||
export IMAGE_BASENAME = "core-image-minimal-gnome"
|
||||
|
||||
inherit core-image
|
||||
@@ -28,6 +28,7 @@ EXTRA_OECMAKE = " \
|
||||
-DENABLE_GOA=OFF \
|
||||
-DENABLE_GOOGLE_AUTH=OFF \
|
||||
-DENABLE_WEATHER=OFF \
|
||||
-DENABLE_GOOGLE=OFF \
|
||||
-DVAPIGEN=${STAGING_BINDIR_NATIVE}/vapigen \
|
||||
${@bb.utils.contains('GI_DATA_ENABLED', 'True', '-DENABLE_INTROSPECTION=ON -DENABLE_VALA_BINDINGS=ON', '-DENABLE_INTROSPECTION=OFF', d)} \
|
||||
-D${LKSTRFTIME} \
|
||||
|
||||
26
meta-gnome/recipes-gnome/images/core-image-gnome.bb
Executable file
26
meta-gnome/recipes-gnome/images/core-image-gnome.bb
Executable file
@@ -0,0 +1,26 @@
|
||||
require core-image-minimal-gnome.bb
|
||||
|
||||
SUMMARY = "Basic desktop image for ice boards"
|
||||
|
||||
IMAGE_FEATURES += "splash package-management x11 ssh-server-openssh \
|
||||
tools-debug dev-pkgs debug-tweaks"
|
||||
|
||||
IMAGE_INSTALL += "gpgme gnupg"
|
||||
|
||||
|
||||
# boot to desktop
|
||||
SYSTEMD_DEFAULT_TARGET = "graphical.target"
|
||||
|
||||
# Gstreamer Packages
|
||||
IMAGE_INSTALL += " ffmpeg \
|
||||
gstreamer1.0 \
|
||||
gstreamer1.0-plugins-base \
|
||||
gstreamer1.0-plugins-bad \
|
||||
gstreamer1.0-plugins-good \
|
||||
gstreamer1.0-plugins-ugly \
|
||||
gstreamer1.0-libav \
|
||||
gstreamer1.0-rtsp-server \
|
||||
json-glib \
|
||||
libdaemon \
|
||||
jansson \
|
||||
"
|
||||
21
meta-gnome/recipes-gnome/images/core-image-minimal-gnome.bb
Executable file
21
meta-gnome/recipes-gnome/images/core-image-minimal-gnome.bb
Executable file
@@ -0,0 +1,21 @@
|
||||
DESCRIPTION = "A GNOME minimal demo image."
|
||||
|
||||
IMAGE_INSTALL += "packagegroup-core-boot \
|
||||
packagegroup-core-x11 \
|
||||
packagegroup-gnome-desktop \
|
||||
weston \
|
||||
packagegroup-core-x11-base \
|
||||
packagegroup-core-x11-xserver \
|
||||
kernel-modules \
|
||||
"
|
||||
|
||||
inherit features_check
|
||||
REQUIRED_DISTRO_FEATURES = "x11"
|
||||
|
||||
IMAGE_LINGUAS ?= " "
|
||||
|
||||
LICENSE = "MIT"
|
||||
|
||||
export IMAGE_BASENAME = "core-image-minimal-gnome"
|
||||
|
||||
inherit core-image
|
||||
@@ -39,7 +39,7 @@ S = "${WORKDIR}/OpenIPMI-${PV}"
|
||||
SRC_URI[md5sum] = "532404c9df7d0e8bde975b95b9e6775b"
|
||||
SRC_URI[sha256sum] = "f6d0fd4c0a74b05f80907229d0b270f54ca23294bcc11979f8b8d12766786945"
|
||||
|
||||
inherit autotools-brokensep pkgconfig python3native perlnative update-rc.d systemd cpan-base python3targetconfig
|
||||
inherit autotools-brokensep pkgconfig python3native perlnative update-rc.d systemd cpan-base
|
||||
|
||||
CFLAGS += "-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64"
|
||||
|
||||
|
||||
104
meta-oe/recipes-bsp/pciutils/pciutils/configure.patch
Normal file
104
meta-oe/recipes-bsp/pciutils/pciutils/configure.patch
Normal file
@@ -0,0 +1,104 @@
|
||||
Upstream-Status: Inappropriate [embedded specific]
|
||||
|
||||
#
|
||||
# Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher
|
||||
#
|
||||
---
|
||||
|
||||
7/30/2010 - rebased to 3.1.5 by Qing He <qing.he@intel.com>
|
||||
1/22/2012 - rebased to 3.1.9 by Shane Wang <shane.wang@intel.com>
|
||||
|
||||
diff -r af2b10cc3c14 Makefile
|
||||
--- a/Makefile Sun Jan 22 18:36:34 2012 +0800
|
||||
+++ b/Makefile Sun Jan 22 18:38:54 2012 +0800
|
||||
@@ -37,7 +37,6 @@
|
||||
# Commands
|
||||
INSTALL=install
|
||||
DIRINSTALL=install -d
|
||||
-STRIP=-s
|
||||
CC=$(CROSS_COMPILE)gcc
|
||||
AR=$(CROSS_COMPILE)ar
|
||||
RANLIB=$(CROSS_COMPILE)ranlib
|
||||
@@ -86,7 +85,7 @@
|
||||
example.o: example.c $(PCIINC)
|
||||
|
||||
%: %.o
|
||||
- $(CC) $(LDFLAGS) $(TARGET_ARCH) $^ $(LDLIBS) -o $@
|
||||
+ $(CC) $(LDFLAGS) $(TARGET_ARCH) $^ $(LIB_LDLIBS) -o $@
|
||||
|
||||
%.8 %.7: %.man
|
||||
M=`echo $(DATE) | sed 's/-01-/-January-/;s/-02-/-February-/;s/-03-/-March-/;s/-04-/-April-/;s/-05-/-May-/;s/-06-/-June-/;s/-07-/-July-/;s/-08-/-August-/;s/-09-/-September-/;s/-10-/-October-/;s/-11-/-November-/;s/-12-/-December-/;s/\(.*\)-\(.*\)-\(.*\)/\3 \2 \1/'` ; sed <$< >$@ "s/@TODAY@/$$M/;s/@VERSION@/pciutils-$(VERSION)/;s#@IDSDIR@#$(IDSDIR)#"
|
||||
@@ -101,7 +100,7 @@
|
||||
install: all
|
||||
# -c is ignored on Linux, but required on FreeBSD
|
||||
$(DIRINSTALL) -m 755 $(DESTDIR)$(SBINDIR) $(DESTDIR)$(IDSDIR) $(DESTDIR)$(MANDIR)/man8 $(DESTDIR)$(MANDIR)/man7
|
||||
- $(INSTALL) -c -m 755 $(STRIP) lspci setpci $(DESTDIR)$(SBINDIR)
|
||||
+ $(INSTALL) -c -m 755 lspci setpci $(DESTDIR)$(SBINDIR)
|
||||
$(INSTALL) -c -m 755 update-pciids $(DESTDIR)$(SBINDIR)
|
||||
$(INSTALL) -c -m 644 $(PCI_IDS) $(DESTDIR)$(IDSDIR)
|
||||
$(INSTALL) -c -m 644 lspci.8 setpci.8 update-pciids.8 $(DESTDIR)$(MANDIR)/man8
|
||||
diff -r af2b10cc3c14 lib/configure
|
||||
--- a/lib/configure Sun Jan 22 18:36:34 2012 +0800
|
||||
+++ b/lib/configure Sun Jan 22 18:38:54 2012 +0800
|
||||
@@ -14,6 +14,10 @@
|
||||
fi
|
||||
}
|
||||
|
||||
+VERSION=$1
|
||||
+IDSDIR=$2
|
||||
+DNS=yes
|
||||
+
|
||||
if [ -z "$VERSION" -o -z "$IDSDIR" ] ; then
|
||||
echo >&2 "Please run the configure script from the top-level Makefile"
|
||||
exit 1
|
||||
@@ -21,8 +25,8 @@
|
||||
|
||||
echo_n "Configuring libpci for your system..."
|
||||
if [ -z "$HOST" ] ; then
|
||||
- sys=`uname -s`
|
||||
- rel=`uname -r`
|
||||
+ sys=${3:-`uname -s`}
|
||||
+ rel=
|
||||
realsys="$sys"
|
||||
if [ "$sys" = "AIX" -a -x /usr/bin/oslevel -a -x /usr/sbin/lsattr ]
|
||||
then
|
||||
@@ -30,7 +34,7 @@
|
||||
proc=`/usr/sbin/lsdev -C -c processor -S available -F name | head -1`
|
||||
cpu=`/usr/sbin/lsattr -F value -l $proc -a type | sed 's/_.*//'`
|
||||
else
|
||||
- cpu=`uname -m | sed 's/^i.86$/i386/;s/^sun4u$/sparc64/;s/^i86pc$/i386/;s/^BePC$/i386/;s/^BeMac$/powerpc/;s/^BeBox$/powerpc/'`
|
||||
+ cpu=${4:-`uname -m | sed 's/^i.86$/i386/;s/^sun4u$/sparc64/;s/^i86pc$/i386/;s/^BePC$/i386/;s/^BeMac$/powerpc/;s/^BeBox$/powerpc/'`}
|
||||
fi
|
||||
if [ "$sys" = "GNU/kFreeBSD" -o "$sys" = "DragonFly" ]
|
||||
then
|
||||
@@ -40,7 +44,7 @@
|
||||
then
|
||||
sys=cygwin
|
||||
fi
|
||||
- HOST=${3:-$cpu-$sys}
|
||||
+ HOST=$cpu-$sys
|
||||
fi
|
||||
[ -n "$RELEASE" ] && rel="${RELEASE}"
|
||||
# CAVEAT: tr on Solaris is a bit weird and the extra [] is otherwise harmless.
|
||||
@@ -49,6 +53,21 @@
|
||||
sys=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
||||
echo " $host $rel $cpu $sys"
|
||||
|
||||
+if [ "$host" = "linux--gnueabi" ]
|
||||
+then
|
||||
+ sys=linux
|
||||
+fi
|
||||
+
|
||||
+if [ "$host" = "linux--uclibc" ]
|
||||
+then
|
||||
+ sys=linux
|
||||
+fi
|
||||
+
|
||||
+if [ "$host" = "linux--uclibceabi" ]
|
||||
+then
|
||||
+ sys=linux
|
||||
+fi
|
||||
+
|
||||
c=config.h
|
||||
m=config.mk
|
||||
echo >$c '#define PCI_CONFIG_H'
|
||||
37
meta-oe/recipes-bsp/pciutils/pciutils/guess-fix.patch
Normal file
37
meta-oe/recipes-bsp/pciutils/pciutils/guess-fix.patch
Normal file
@@ -0,0 +1,37 @@
|
||||
the original guess algorithm is broken for many archs
|
||||
for example, the following two would break:
|
||||
arm-linux-gnueabi --> sys=gnueabi
|
||||
x86_64-unknown-pc-linux-gnu --> sys = pc-linux-gnu
|
||||
|
||||
use a simpler scheme here and hope it works for all the cases
|
||||
|
||||
Upstream-Status: Pending
|
||||
|
||||
7/30/2010 - created by Qing He <qing.he@intel.com>
|
||||
|
||||
diff --git a/lib/configure b/lib/configure
|
||||
index 4318b05..84f6acb 100755
|
||||
--- a/lib/configure
|
||||
+++ b/lib/configure
|
||||
@@ -53,20 +53,7 @@ cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
||||
sys=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
||||
echo " $host $rel $cpu $sys"
|
||||
|
||||
-if [ "$host" = "linux--gnueabi" ]
|
||||
-then
|
||||
- sys=linux
|
||||
-fi
|
||||
-
|
||||
-if [ "$host" = "linux--uclibc" ]
|
||||
-then
|
||||
- sys=linux
|
||||
-fi
|
||||
-
|
||||
-if [ "$host" = "linux--uclibceabi" ]
|
||||
-then
|
||||
- sys=linux
|
||||
-fi
|
||||
+{ echo "$host" | grep linux; } && sys=linux
|
||||
|
||||
c=config.h
|
||||
m=config.mk
|
||||
92
meta-oe/recipes-bsp/pciutils/pciutils/lib-build-fix.patch
Normal file
92
meta-oe/recipes-bsp/pciutils/pciutils/lib-build-fix.patch
Normal file
@@ -0,0 +1,92 @@
|
||||
Link directly to lib/libpci.so.3.1.5 will hard code this versioned
|
||||
string into lspci and other utilities, which is not desirable and
|
||||
won't work. In the other hand, linking to a symbolic link lib/libpci.so
|
||||
doesn't have this issue.
|
||||
|
||||
Upstream-Status: Pending
|
||||
|
||||
7/30/2010 - created by Qing He <qing.he@intel.com>
|
||||
|
||||
diff --git a/Makefile b/Makefile
|
||||
index 74c570a..31337e0 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -56,9 +56,9 @@ PCIINC_INS=lib/config.h lib/header.h lib/pci.h lib/types.h
|
||||
|
||||
export
|
||||
|
||||
-all: lib/$(PCILIB) lspci setpci example lspci.8 setpci.8 pcilib.7 update-pciids update-pciids.8 $(PCI_IDS)
|
||||
+all: lib/$(PCILIB_DEV) lspci setpci example lspci.8 setpci.8 pcilib.7 update-pciids update-pciids.8 $(PCI_IDS)
|
||||
|
||||
-lib/$(PCILIB): $(PCIINC) force
|
||||
+lib/$(PCILIB) lib/$(PCILIB_DEV): $(PCIINC) force
|
||||
$(MAKE) -C lib all
|
||||
|
||||
force:
|
||||
@@ -66,8 +66,8 @@ force:
|
||||
lib/config.h lib/config.mk:
|
||||
cd lib && ./configure
|
||||
|
||||
-lspci: lspci.o ls-vpd.o ls-caps.o ls-ecaps.o ls-kernel.o ls-tree.o ls-map.o common.o lib/$(PCILIB)
|
||||
-setpci: setpci.o common.o lib/$(PCILIB)
|
||||
+lspci: lspci.o ls-vpd.o ls-caps.o ls-ecaps.o ls-kernel.o ls-tree.o ls-map.o common.o lib/$(PCILIB_DEV)
|
||||
+setpci: setpci.o common.o lib/$(PCILIB_DEV)
|
||||
|
||||
LSPCIINC=lspci.h pciutils.h $(PCIINC)
|
||||
lspci.o: lspci.c $(LSPCIINC)
|
||||
@@ -89,7 +89,7 @@ update-pciids: update-pciids.sh
|
||||
chmod +x $@
|
||||
|
||||
# The example of use of libpci
|
||||
-example: example.o lib/$(PCILIB)
|
||||
+example: example.o lib/$(PCILIB_DEV)
|
||||
example.o: example.c $(PCIINC)
|
||||
|
||||
%: %.o
|
||||
diff --git a/lib/Makefile b/lib/Makefile
|
||||
index 1eb06a5..a8dab56 100644
|
||||
--- a/lib/Makefile
|
||||
+++ b/lib/Makefile
|
||||
@@ -42,7 +42,7 @@ ifdef PCI_HAVE_PM_NBSD_LIBPCI
|
||||
OBJS += nbsd-libpci
|
||||
endif
|
||||
|
||||
-all: $(PCILIB) $(PCILIBPC)
|
||||
+all: $(PCILIB_DEV) $(PCILIBPC)
|
||||
|
||||
ifeq ($(SHARED),no)
|
||||
$(PCILIB): $(addsuffix .o,$(OBJS))
|
||||
@@ -53,6 +53,9 @@ else
|
||||
CFLAGS += -fPIC -fvisibility=hidden
|
||||
$(PCILIB): $(addsuffix .o,$(OBJS))
|
||||
$(CC) -shared $(LDFLAGS) $(SONAME) -Wl,--version-script=libpci.ver -o $@ $^ $(LIB_LDLIBS)
|
||||
+
|
||||
+$(PCILIB_DEV): $(PCILIB)
|
||||
+ ln -s $< $@
|
||||
endif
|
||||
|
||||
$(PCILIBPC): libpci.pc.in
|
||||
diff --git a/lib/configure b/lib/configure
|
||||
index 27388bc..6c508cf 100755
|
||||
--- a/lib/configure
|
||||
+++ b/lib/configure
|
||||
@@ -216,16 +216,18 @@ fi
|
||||
echo "Checking whether to build a shared library... $SHARED (set manually)"
|
||||
if [ "$SHARED" = no ] ; then
|
||||
echo >>$m 'PCILIB=$(LIBNAME).a'
|
||||
+ echo >>$m 'PCILIB_DEV=$(LIBNAME).a'
|
||||
echo >>$m 'LDLIBS=$(WITH_LIBS)'
|
||||
echo >>$m 'LIB_LDLIBS='
|
||||
else
|
||||
echo >>$m 'PCILIB=$(LIBNAME).so.$(VERSION)'
|
||||
+ echo >>$m 'PCILIB_DEV=$(LIBNAME).so'
|
||||
# We link the dependencies _to_ the library, so we do not need explicit deps in .pc
|
||||
echo >>$m 'LDLIBS='
|
||||
echo >>$m 'LIB_LDLIBS=$(WITH_LIBS)'
|
||||
echo >>$c '#define PCI_SHARED_LIB'
|
||||
if [ "$SHARED" = yes ] ; then
|
||||
- echo >>$m 'SONAME=-Wl,-soname,$(LIBNAME).so$(ABI_VERSION)'
|
||||
+ echo >>$m 'SONAME=-Wl,-soname -Wl,$(LIBNAME).so$(ABI_VERSION)'
|
||||
fi
|
||||
fi
|
||||
echo >>$m 'PCILIBPC=$(LIBNAME).pc'
|
||||
26
meta-oe/recipes-bsp/pciutils/pciutils/makefile.patch
Normal file
26
meta-oe/recipes-bsp/pciutils/pciutils/makefile.patch
Normal file
@@ -0,0 +1,26 @@
|
||||
Upstream-Status: Inappropriate [configuration]
|
||||
|
||||
Signed-off-by: Ionut Radu <ionutx.radu@intel.com>
|
||||
|
||||
Index: pciutils-3.2.0/Makefile
|
||||
===================================================================
|
||||
--- pciutils-3.2.0.orig/Makefile
|
||||
+++ pciutils-3.2.0/Makefile
|
||||
@@ -35,7 +35,7 @@ SHAREDIR=$(PREFIX)/share
|
||||
IDSDIR=$(SHAREDIR)
|
||||
MANDIR:=$(shell if [ -d $(PREFIX)/share/man ] ; then echo $(PREFIX)/share/man ; else echo $(PREFIX)/man ; fi)
|
||||
INCDIR=$(PREFIX)/include
|
||||
-LIBDIR=$(PREFIX)/lib
|
||||
+LIBDIR=$(libdir)
|
||||
PKGCFDIR=$(LIBDIR)/pkgconfig
|
||||
|
||||
# Commands
|
||||
@@ -94,7 +94,7 @@ example: example.o lib/$(PCILIB_DEV)
|
||||
example.o: example.c $(PCIINC)
|
||||
|
||||
%: %.o
|
||||
- $(CC) $(LDFLAGS) $(TARGET_ARCH) $^ $(LIB_LDLIBS) -o $@
|
||||
+ $(CC) $(LDFLAGS) $(TARGET_ARCH) $^ $(LIB_LDLIBS) $(LDLIBS) -o $@
|
||||
|
||||
%.8 %.7: %.man
|
||||
M=`echo $(DATE) | sed 's/-01-/-January-/;s/-02-/-February-/;s/-03-/-March-/;s/-04-/-April-/;s/-05-/-May-/;s/-06-/-June-/;s/-07-/-July-/;s/-08-/-August-/;s/-09-/-September-/;s/-10-/-October-/;s/-11-/-November-/;s/-12-/-December-/;s/\(.*\)-\(.*\)-\(.*\)/\3 \2 \1/'` ; sed <$< >$@ "s/@TODAY@/$$M/;s/@VERSION@/pciutils-$(VERSION)/;s#@IDSDIR@#$(IDSDIR)#"
|
||||
66
meta-oe/recipes-bsp/pciutils/pciutils_3.2.1.bb
Normal file
66
meta-oe/recipes-bsp/pciutils/pciutils_3.2.1.bb
Normal file
@@ -0,0 +1,66 @@
|
||||
SUMMARY = "PCI utilities"
|
||||
DESCRIPTION = 'The PCI Utilities package contains a library for portable access \
|
||||
to PCI bus configuration space and several utilities based on this library.'
|
||||
HOMEPAGE = "http://atrey.karlin.mff.cuni.cz/~mj/pciutils.shtml"
|
||||
SECTION = "console/utils"
|
||||
|
||||
LICENSE = "GPLv2+"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
|
||||
DEPENDS = "zlib kmod"
|
||||
|
||||
SRC_URI = "${KERNELORG_MIRROR}/software/utils/pciutils/pciutils-${PV}.tar.bz2 \
|
||||
file://configure.patch \
|
||||
file://lib-build-fix.patch \
|
||||
file://guess-fix.patch \
|
||||
file://makefile.patch"
|
||||
|
||||
SRC_URI[md5sum] = "425b1acad6854cc2bbb06ac8e48e76fc"
|
||||
SRC_URI[sha256sum] = "12d52b19042e2fd058af12e7d877bbbce72213cb3a0b5ec7ff0703ac09e3dcde"
|
||||
|
||||
inherit multilib_header
|
||||
|
||||
PARALLEL_MAKE = ""
|
||||
|
||||
PCI_CONF_FLAG = "ZLIB=yes DNS=yes SHARED=yes"
|
||||
|
||||
# see configure.patch
|
||||
do_configure () {
|
||||
(
|
||||
cd lib && \
|
||||
${PCI_CONF_FLAG} ./configure ${PV} ${datadir} ${TARGET_OS} ${TARGET_ARCH}
|
||||
)
|
||||
}
|
||||
|
||||
do_compile:prepend () {
|
||||
# Avoid this error: ln: failed to create symbolic link `libpci.so': File exists
|
||||
rm -f ${S}/lib/libpci.so
|
||||
}
|
||||
|
||||
export PREFIX = "${prefix}"
|
||||
export SBINDIR = "${sbindir}"
|
||||
export SHAREDIR = "${datadir}"
|
||||
export MANDIR = "${mandir}"
|
||||
|
||||
EXTRA_OEMAKE += "${PCI_CONF_FLAG}"
|
||||
|
||||
# The configure script breaks if the HOST variable is set
|
||||
HOST[unexport] = "1"
|
||||
|
||||
do_install () {
|
||||
oe_runmake DESTDIR=${D} install install-lib
|
||||
|
||||
install -d ${D}${bindir}
|
||||
ln -s ../sbin/lspci ${D}${bindir}/lspci
|
||||
|
||||
oe_multilib_header pci/config.h
|
||||
}
|
||||
|
||||
PACKAGES =+ "${PN}-ids libpci libpci-dev libpci-dbg"
|
||||
FILES:${PN}-ids = "${datadir}/pci.ids*"
|
||||
FILES:libpci = "${libdir}/libpci.so.*"
|
||||
FILES:libpci-dbg = "${libdir}/.debug"
|
||||
FILES:libpci-dev = "${libdir}/libpci.a ${libdir}/libpci.la ${libdir}/libpci.so \
|
||||
${includedir}/pci ${libdir}/pkgconfig"
|
||||
SUMMARY:${PN}-ids = "PCI utilities - device ID database"
|
||||
DESCRIPTION:${PN}-ids = "Package providing the PCI device ID database for pciutils."
|
||||
RDEPENDS:${PN} += "${PN}-ids"
|
||||
@@ -36,7 +36,7 @@ LEAD_SONAME = "libpq.so"
|
||||
# LDFLAGS for shared libraries
|
||||
export LDFLAGS_SL = "${LDFLAGS}"
|
||||
|
||||
inherit autotools pkgconfig perlnative python3native python3targetconfig useradd update-rc.d systemd gettext cpan-base
|
||||
inherit autotools pkgconfig perlnative python3native useradd update-rc.d systemd gettext cpan-base
|
||||
|
||||
CFLAGS += "-I${STAGING_INCDIR}/${PYTHON_DIR} -I${STAGING_INCDIR}/tcl8.6"
|
||||
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
android-gadget-start
|
||||
adbd > /dev/null 2>&1 &
|
||||
echo "android adb tools ready"
|
||||
@@ -0,0 +1,56 @@
|
||||
#!/bin/sh
|
||||
|
||||
#START=80
|
||||
#STOP=99
|
||||
|
||||
#USE_PROCD=1
|
||||
#PROG=/bin/adbd
|
||||
#OOM_ADJ=-17
|
||||
#ADB_TRANSPORT_PORT=5555
|
||||
SERIALNUMBER="20080411"
|
||||
|
||||
#get_serialnumber() {
|
||||
# str=`cat /proc/cmdline |tr ' ' '\n' | grep 'androidboot.serialno' | awk -F "=" '{print $2}'`
|
||||
# [ -z $str ] || SERIALNUMBER=$str
|
||||
#}
|
||||
|
||||
#[ -e /bin/setusbconfig ] && {
|
||||
# /bin/setusbconfig adb
|
||||
# }
|
||||
|
||||
[ -d /sys/kernel/config/usb_gadget/g1 ] || {
|
||||
mount -t configfs none /sys/kernel/config
|
||||
mkdir -p /sys/kernel/config/usb_gadget/g1
|
||||
echo "0x18d1" > /sys/kernel/config/usb_gadget/g1/idVendor
|
||||
echo "0xD002" > /sys/kernel/config/usb_gadget/g1/idProduct
|
||||
mkdir /sys/kernel/config/usb_gadget/g1/strings/0x409
|
||||
echo "Allwinner" > /sys/kernel/config/usb_gadget/g1/strings/0x409/manufacturer
|
||||
echo "Tina" > /sys/kernel/config/usb_gadget/g1/strings/0x409/product
|
||||
}
|
||||
[ -d /sys/kernel/config/usb_gadget/g1/configs/c.1 ] || {
|
||||
mkdir /sys/kernel/config/usb_gadget/g1/configs/c.1
|
||||
echo 0xc0 > /sys/kernel/config/usb_gadget/g1/configs/c.1/bmAttributes
|
||||
echo 500 > /sys/kernel/config/usb_gadget/g1/configs/c.1/MaxPower
|
||||
mkdir /sys/kernel/config/usb_gadget/g1/configs/c.1/strings/0x409
|
||||
}
|
||||
[ -d /sys/kernel/config/usb_gadget/g1/functions/ffs.adb ] || {
|
||||
mkdir /sys/kernel/config/usb_gadget/g1/functions/ffs.adb
|
||||
}
|
||||
[ -e /sys/kernel/config/usb_gadget/g1/configs/c.1/ffs.adb ] || {
|
||||
ln -s /sys/kernel/config/usb_gadget/g1/functions/ffs.adb/ /sys/kernel/config/usb_gadget/g1/configs/c.1/ffs.adb
|
||||
}
|
||||
[ -d /dev/usb-ffs/adb ] || {
|
||||
mkdir /dev/usb-ffs
|
||||
mkdir /dev/usb-ffs/adb
|
||||
mount -o uid=2000,gid=2000 -t functionfs adb /dev/usb-ffs/adb/
|
||||
}
|
||||
|
||||
#get_serialnumber
|
||||
echo $SERIALNUMBER > /sys/kernel/config/usb_gadget/g1/strings/0x409/serialnumber
|
||||
#procd_open_instance
|
||||
#procd_set_param oom_score_adj $OOM_ADJ
|
||||
#[ -n $ADB_TRANSPORT_PORT ] && {
|
||||
# procd_set_param env ADB_TRANSPORT_PORT="$v"
|
||||
#}
|
||||
#procd_set_param command $PROG -D
|
||||
#procd_close_instance
|
||||
@@ -3,13 +3,25 @@ SECTION = "console/utils"
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
|
||||
|
||||
SRC_URI = "file://android-gadget-setup"
|
||||
SRC_URI = "file://android-gadget-setup \
|
||||
file://android-gadget-start \
|
||||
file://android-gadget-init \
|
||||
"
|
||||
|
||||
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
||||
DEPENDS:append = " update-rc.d-native"
|
||||
|
||||
do_install() {
|
||||
install -d ${D}${bindir}
|
||||
install -m 0755 ${WORKDIR}/android-gadget-setup ${D}${bindir}
|
||||
install -m 0755 ${WORKDIR}/android-gadget-start ${D}${bindir}
|
||||
|
||||
if ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then
|
||||
install -d ${D}${sysconfdir}/init.d
|
||||
install -m 0755 ${WORKDIR}/android-gadget-init ${D}${sysconfdir}/init.d
|
||||
update-rc.d -r ${D} android-gadget-init start 10 5 3 2 .
|
||||
fi
|
||||
|
||||
}
|
||||
|
||||
python () {
|
||||
|
||||
@@ -0,0 +1,96 @@
|
||||
# Makefile for adbd
|
||||
|
||||
SRCDIR ?= $(S)
|
||||
|
||||
VPATH += $(SRCDIR)
|
||||
adbd_SRC_FILES += adb.c
|
||||
adbd_SRC_FILES += backup_service.c
|
||||
adbd_SRC_FILES += fdevent.c
|
||||
adbd_SRC_FILES += transport.c
|
||||
adbd_SRC_FILES += transport_local.c
|
||||
adbd_SRC_FILES += transport_usb.c
|
||||
adbd_SRC_FILES += adb_auth_client.c
|
||||
adbd_SRC_FILES += sockets.c
|
||||
adbd_SRC_FILES += services.c
|
||||
adbd_SRC_FILES += file_sync_service.c
|
||||
adbd_SRC_FILES += jdwp_service.c
|
||||
adbd_SRC_FILES += framebuffer_service.c
|
||||
adbd_SRC_FILES += remount_service.c
|
||||
adbd_SRC_FILES += utils.c
|
||||
adbd_SRC_FILES += log_service.c
|
||||
adbd_SRC_FILES += usb_linux_client.c
|
||||
adbd_OBJS := $(adbd_SRC_FILES:.c=.o)
|
||||
|
||||
VPATH += $(SRCDIR)/libs/libcutils
|
||||
libcutils_SRC_FILES += array.c
|
||||
libcutils_SRC_FILES += buffer.c
|
||||
libcutils_SRC_FILES += hashmap.c
|
||||
libcutils_SRC_FILES += native_handle.c
|
||||
libcutils_SRC_FILES += socket_inaddr_any_server.c
|
||||
libcutils_SRC_FILES += socket_local_client.c
|
||||
libcutils_SRC_FILES += socket_local_server.c
|
||||
libcutils_SRC_FILES += socket_loopback_client.c
|
||||
libcutils_SRC_FILES += socket_loopback_server.c
|
||||
libcutils_SRC_FILES += socket_network_client.c
|
||||
libcutils_SRC_FILES += sockets.c
|
||||
libcutils_SRC_FILES += config_utils.c
|
||||
libcutils_SRC_FILES += cpu_info.c
|
||||
libcutils_SRC_FILES += load_file.c
|
||||
libcutils_SRC_FILES += list.c
|
||||
libcutils_SRC_FILES += open_memstream.c
|
||||
libcutils_SRC_FILES += strdup16to8.c
|
||||
libcutils_SRC_FILES += strdup8to16.c
|
||||
libcutils_SRC_FILES += record_stream.c
|
||||
libcutils_SRC_FILES += process_name.c
|
||||
libcutils_SRC_FILES += qsort_r_compat.c
|
||||
libcutils_SRC_FILES += threads.c
|
||||
libcutils_SRC_FILES += sched_policy.c
|
||||
libcutils_SRC_FILES += iosched_policy.c
|
||||
libcutils_SRC_FILES += str_parms.c
|
||||
libcutils_SRC_FILES += properties.c
|
||||
libcutils_SRC_FILES += abort_socket.c
|
||||
libcutils_SRC_FILES += fs.c
|
||||
libcutils_SRC_FILES += selector.c
|
||||
libcutils_SRC_FILES += tztime.c
|
||||
libcutils_SRC_FILES += multiuser.c
|
||||
libcutils_SRC_FILES += zygote.c
|
||||
libcutils_SRC_FILES += android_reboot.c
|
||||
libcutils_SRC_FILES += debugger.c
|
||||
libcutils_SRC_FILES += klog.c
|
||||
libcutils_SRC_FILES += mq.c
|
||||
libcutils_SRC_FILES += partition_utils.c
|
||||
libcutils_SRC_FILES += qtaguid.c
|
||||
libcutils_SRC_FILES += uevent.c
|
||||
libcutils_SRC_FILES += misc_rw.c
|
||||
libcutils_SRC_FILES += memory.c
|
||||
libcutils_OBJS := $(libcutils_SRC_FILES:.c=.o)
|
||||
|
||||
|
||||
CFLAGS += -std=gnu11
|
||||
CFLAGS += -DANDROID
|
||||
CFLAGS += -DADB_HOST=0
|
||||
CFLAGS += -D_XOPEN_SOURCE -D_GNU_SOURCE
|
||||
CFLAGS += -DALLOW_ADBD_ROOT=1
|
||||
CFLAGS += -DALLOW_ADBD_DISABLE_VERITY=1
|
||||
CFLAGS += -DPROP_NAME_MAX=32
|
||||
CFLAGS += -DPROP_VALUE_MAX=92
|
||||
CFLAGS += -DAUDITD_LOG_TAG=1003
|
||||
# CFLAGS += -DHOST
|
||||
CFLAGS += -DANDROID_SMP=0
|
||||
CFLAGS += -I$(SRCDIR)
|
||||
CFLAGS += -I$(SRCDIR)/libs/libcutils
|
||||
CFLAGS += -I$(SRCDIR)/libs/libmincrypt
|
||||
LDFLAGS += -L$(SRCDIR)
|
||||
|
||||
LIBS += libmincrypt.a libcutils.a -lpthread -lbsd -lpcre -lresolv -lcrypto
|
||||
|
||||
all: adbd
|
||||
|
||||
adbd: $(adbd_OBJS)
|
||||
$(CC) -o $@ $(LDFLAGS) $(adbd_OBJS) $(LIBS) $(LDFLAGS)
|
||||
|
||||
libcutils.a: $(libcutils_OBJS)
|
||||
$(AR) rcs $@ $(libcutils_OBJS)
|
||||
|
||||
clean:
|
||||
$(RM) *.o *.a adbd
|
||||
@@ -1,13 +1,14 @@
|
||||
[Unit]
|
||||
Description=Android Debug Bridge
|
||||
ConditionPathExists=/var/usb-debugging-enabled
|
||||
#ConditionPathExists=/var/usb-debugging-enabled
|
||||
Before=android-system.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
Restart=on-failure
|
||||
ExecStartPre=-/usr/bin/android-gadget-setup adb
|
||||
ExecStart=/usr/bin/adbd
|
||||
#Restart=on-failure
|
||||
#ExecStartPre=-/usr/bin/android-gadget-setup adb
|
||||
ExecStartPre=-/usr/bin/android-gadget-start
|
||||
ExecStart=/bin/adbd
|
||||
|
||||
[Install]
|
||||
WantedBy=basic.target
|
||||
|
||||
98
meta-oe/recipes-devtools/android-tools/android-tools_10.bb
Normal file
98
meta-oe/recipes-devtools/android-tools/android-tools_10.bb
Normal file
@@ -0,0 +1,98 @@
|
||||
LICENSE = "GPL-2.0"
|
||||
LIC_FILES_CHKSUM = "file://NOTICE;md5=9e0b836a755c0780e75388254f9bb2e4"
|
||||
|
||||
DEPENDS = "libbsd libpcre zlib libcap"
|
||||
DEPENDS:append:class-target = " openssl"
|
||||
|
||||
SRC_URI = " \
|
||||
git://git@gitee.com/thead-yocto/d1_adbd.git;branch=master;protocol=http \
|
||||
file://adbd-new.mk;subdir=${BPN} \
|
||||
file://android-tools-adbd.service"
|
||||
|
||||
SRCREV="${AUTOREV}"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
B = "${WORKDIR}/${BPN}"
|
||||
|
||||
# http://errors.yoctoproject.org/Errors/Details/133881/
|
||||
|
||||
inherit systemd
|
||||
|
||||
#SYSTEMD_PACKAGES = "${PN}-adbd"
|
||||
#SYSTEMD_SERVICE:${PN}-adbd = "android-tools-adbd.service"
|
||||
SYSTEMD_SERVICE:${PN} = "android-tools-adbd.service"
|
||||
|
||||
# Find libbsd headers during native builds
|
||||
CC:append:class-native = " -I${STAGING_INCDIR}"
|
||||
CC:append:class-nativesdk = " -I${STAGING_INCDIR}"
|
||||
|
||||
TOOLS = "adbd-new"
|
||||
|
||||
do_compile() {
|
||||
# Setting both variables below causing our makefiles to not work with
|
||||
# implicit make rules
|
||||
export SRCDIR=${S}
|
||||
case "${HOST_ARCH}" in
|
||||
arm)
|
||||
export android_arch=linux-arm
|
||||
;;
|
||||
aarch64)
|
||||
export android_arch=linux-arm64
|
||||
;;
|
||||
riscv64)
|
||||
export android_arch=linux-riscv64
|
||||
;;
|
||||
mips|mipsel)
|
||||
export android_arch=linux-mips
|
||||
;;
|
||||
mips64|mips64el)
|
||||
export android_arch=linux-mips64
|
||||
;;
|
||||
powerpc|powerpc64)
|
||||
export android_arch=linux-ppc
|
||||
;;
|
||||
i586|i686|x86_64)
|
||||
export android_arch=linux-x86
|
||||
;;
|
||||
esac
|
||||
|
||||
for tool in ${TOOLS}; do
|
||||
mkdir -p ${B}/${tool}
|
||||
cp -af ${S}/*.a ${B}/${tool}
|
||||
cp -af ${S}/adb_shell ${B}/${tool}
|
||||
cp -af ${S}/adb_profile ${B}/${tool}
|
||||
#oe_runmake
|
||||
oe_runmake -f ${B}/${tool}.mk -C ${B}/${tool}
|
||||
done
|
||||
}
|
||||
|
||||
do_install() {
|
||||
bbplain "copy the adbd: ${B}, ${D}, ${base_bindir}"
|
||||
install -d ${D}${base_bindir}
|
||||
install -m 0755 ${B}/adbd-new/adbd ${D}${base_bindir}
|
||||
install -m 0755 ${B}/adbd-new/adb_shell ${D}${base_bindir}
|
||||
install -d ${D}${sysconfdir}
|
||||
install -m 0755 ${B}/adbd-new/adb_profile ${D}${sysconfdir}
|
||||
|
||||
|
||||
# Outside the if statement to avoid errors during do_package
|
||||
bbplain "try to copy adbd service"
|
||||
bbplain "bpn is ${BPN}, bn is ${PN}"
|
||||
|
||||
install -D -p -m 0644 ${WORKDIR}/android-tools-adbd.service \
|
||||
${D}${systemd_unitdir}/system/android-tools-adbd.service
|
||||
}
|
||||
|
||||
#PACKAGES =+ "${PN}-fstools ${PN}-adbd"
|
||||
PACKAGES =+ "${PN}-fstools"
|
||||
|
||||
RDEPENDS:${BPN} = "${BPN}-conf"
|
||||
#RDEPENDS:${PN}-adbd = "${PN}-conf"
|
||||
RDEPENDS:${PN}-fstools = "bash"
|
||||
|
||||
#FILES:${PN}-adbd = "\
|
||||
# ${bindir}/adbd \
|
||||
# ${systemd_unitdir}/system/android-tools-adbd.service \
|
||||
#"
|
||||
|
||||
BBCLASSEXTEND = "cross"
|
||||
@@ -6,7 +6,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=ebb5c50ab7cab4baeffba14977030c07 \
|
||||
|
||||
DEPENDS = "libxml2 glib-2.0 swig python3"
|
||||
|
||||
inherit autotools pkgconfig python3native python3targetconfig
|
||||
inherit autotools pkgconfig python3native
|
||||
|
||||
SRCREV = "c5a30e9267068436a75b5d00fcbf95cb9c1f4dcd"
|
||||
SRC_URI = "git://github.com/libimobiledevice/libplist;protocol=https;branch=master"
|
||||
|
||||
@@ -17,7 +17,7 @@ SRC_URI = " \
|
||||
SRC_URI[md5sum] = "d16abc21f6575bb08894efedbed484a2"
|
||||
SRC_URI[sha256sum] = "0a0e1d8e52833bc352d454d8242da03b82c0efc41323fb66f7435e5b39734a4f"
|
||||
|
||||
S = "${WORKDIR}/SourceHanSansCN"
|
||||
S = "${WORKDIR}/branches"
|
||||
|
||||
do_install() {
|
||||
install -d ${D}${sysconfdir}/fonts/conf.d/
|
||||
|
||||
35
meta-python/recipes-devtools/python/python-pytest.inc
Normal file
35
meta-python/recipes-devtools/python/python-pytest.inc
Normal file
@@ -0,0 +1,35 @@
|
||||
SUMMARY = "Simple powerful teting with python"
|
||||
HOMEPAGE = "http://pytest.org"
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=c39b24965f4aef64222cb35de9d47cc4"
|
||||
|
||||
SRC_URI[md5sum] = "1b83a25d45fad893f430fc5031653c56"
|
||||
SRC_URI[sha256sum] = "117bad36c1a787e1a8a659df35de53ba05f9f3398fb9e4ac17e80ad5903eb8c5"
|
||||
|
||||
SRC_URI:append = " file://0001-setup.py-remove-the-setup_requires-for-setuptools-scm.patch \
|
||||
file://pytest_version_fix.patch "
|
||||
|
||||
inherit update-alternatives
|
||||
|
||||
RDEPENDS:${PN}:class-target += " \
|
||||
${PYTHON_PN}-attrs \
|
||||
${PYTHON_PN}-debugger \
|
||||
${PYTHON_PN}-doctest \
|
||||
${PYTHON_PN}-json \
|
||||
${PYTHON_PN}-pluggy \
|
||||
${PYTHON_PN}-py \
|
||||
${PYTHON_PN}-setuptools \
|
||||
${PYTHON_PN}-six \
|
||||
"
|
||||
|
||||
FILESEXTRAPATHS:prepend := "${THISDIR}/python-pytest:"
|
||||
|
||||
ALTERNATIVE:${PN} += "py.test pytest"
|
||||
|
||||
NATIVE_LINK_NAME[pytest] = "${bindir}/pytest"
|
||||
ALTERNATIVE_TARGET[pytest] = "${bindir}/pytest"
|
||||
|
||||
ALTERNATIVE_LINK_NAME[py.test] = "${bindir}/py.test"
|
||||
ALTERNATIVE_TARGET[py.test] = "${bindir}/py.test"
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
@@ -0,0 +1,32 @@
|
||||
From 24a901fd17926e8e05be4ed2e01b0113a2e3a852 Mon Sep 17 00:00:00 2001
|
||||
From: Derek Straka <derek@asterius.io>
|
||||
Date: Tue, 19 Dec 2017 11:36:39 -0500
|
||||
Subject: [PATCH] [PATCH 1/1] setup.py: remove the setup_requires for
|
||||
setuptools-scm
|
||||
|
||||
The setup_requires argument forces the download of the egg file for setuptools-scm
|
||||
during the do_compile phase. This download is incompatible with the typical fetch
|
||||
and mirror structure. The only usage of scm is the generation of the _version.py
|
||||
file and in the release tarball it is already correctly created
|
||||
|
||||
Upstream-Status: Inappropriate [oe specific]
|
||||
|
||||
Signed-off-by: Derek Straka <derek@asterius.io>
|
||||
---
|
||||
setup.py | 1 -
|
||||
1 file changed, 1 deletion(-)
|
||||
|
||||
diff --git a/setup.py b/setup.py
|
||||
index 3eb38ef..1163202 100644
|
||||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
@@ -82,7 +82,6 @@ def main():
|
||||
keywords="test unittest",
|
||||
cmdclass={'test': PyTest},
|
||||
# the following should be enabled for release
|
||||
- setup_requires=['setuptools-scm'],
|
||||
python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*',
|
||||
install_requires=install_requires,
|
||||
extras_require=extras_require,
|
||||
--
|
||||
2.7.4
|
||||
@@ -0,0 +1,51 @@
|
||||
Upstream-Status: Inappropriate (OE specific)
|
||||
|
||||
python-pytest: remove fetch during do_compile phase
|
||||
commit: c974fbf9ebf185552ab65301e07af44f36517abf
|
||||
|
||||
introduced an issue by making the version 0.0.0
|
||||
this fixes that
|
||||
|
||||
Signed-off-by: Armin Kuster <akuster@mvista.com>
|
||||
|
||||
Index: pytest-3.2.2/setup.py
|
||||
===================================================================
|
||||
--- pytest-3.2.2.orig/setup.py
|
||||
+++ pytest-3.2.2/setup.py
|
||||
@@ -1,5 +1,6 @@
|
||||
import os
|
||||
import sys
|
||||
+import re
|
||||
import setuptools
|
||||
import pkg_resources
|
||||
from setuptools import setup, Command
|
||||
@@ -22,6 +23,18 @@ classifiers = [
|
||||
with open('README.rst') as fd:
|
||||
long_description = fd.read()
|
||||
|
||||
+def read(*names, **kwargs):
|
||||
+ with open(os.path.join( *names), 'r') as fp:
|
||||
+ return fp.read()
|
||||
+
|
||||
+def find_version(*file_paths):
|
||||
+ version_file = read(*file_paths)
|
||||
+ version_match = re.search(r"^version = ['\']([^'\"]*)['\']",
|
||||
+ version_file, re.M)
|
||||
+
|
||||
+ if version_match:
|
||||
+ return version_match.group(1)
|
||||
+ raise RuntimeError("Unable to find version string.")
|
||||
|
||||
def get_environment_marker_support_level():
|
||||
"""
|
||||
@@ -59,9 +72,7 @@ def main():
|
||||
name='pytest',
|
||||
description='pytest: simple powerful testing with Python',
|
||||
long_description=long_description,
|
||||
- use_scm_version={
|
||||
- 'write_to': '_pytest/_version.py',
|
||||
- },
|
||||
+ version=find_version("_pytest", "_version.py"),
|
||||
url='http://pytest.org',
|
||||
license='MIT license',
|
||||
platforms=['unix', 'linux', 'osx', 'cygwin', 'win32'],
|
||||
@@ -0,0 +1,11 @@
|
||||
SUMMARY = "Aliyun Python SDK is the official software development kit. It makes things easy to integrate your Python application, library, or script with Aliyun services."
|
||||
HOMEPAGE = "https://pypi.org/project/aliyun-python-sdk-core/"
|
||||
SECTION = "devel/python"
|
||||
LICENSE = "Apache-2.0"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=fdec12b464a317e8c3aa36497bc97e8d"
|
||||
|
||||
SRC_URI[sha256sum] = "20bd54984fa316da700c7f355a51ab0b816690e2a0fcefb7b5ef013fed0da928"
|
||||
|
||||
inherit pypi setuptools3
|
||||
|
||||
RDEPENDS:${PN} += "python3-jmespath python3-cryptography"
|
||||
@@ -0,0 +1,11 @@
|
||||
SUMMARY = "Aliyun Python SDK is the official software development kit. It makes things easy to integrate your Python application, library, or script with Aliyun services.."
|
||||
HOMEPAGE = "https://pypi.org/project/aliyun-python-sdk-kms/"
|
||||
SECTION = "devel/python"
|
||||
LICENSE = "Apache"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=24b76166491e4a1f8ec8cf6c0b355baf"
|
||||
|
||||
SRC_URI[sha256sum] = "a372737715682014bace68bd40fe83332f4fd925009a3eb110d41bc66f270e7a"
|
||||
|
||||
inherit pypi setuptools3
|
||||
|
||||
RDEPENDS:${PN} += "python3-aliyun-python-sdk-core"
|
||||
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
pytest -o log_cli=true -o log_cli_level=INFO | sed -e 's/\[...%\]//g'| sed -e 's/PASSED/PASS/g'| sed -e 's/FAILED/FAIL/g'|sed -e 's/SKIPPED/SKIP/g'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS"){printf "%s: %s\n", $NF, $0}else{print}}'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS") {$NF="";print $0}else{print}}'
|
||||
@@ -0,0 +1,25 @@
|
||||
DESCRIPTION = "Powerful Python library for atomic file writes"
|
||||
HOMEPAGE = "https://github.com/untitaker/python-atomicwrites"
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=91cc36cfafeefb7863673bcfcb1d4da4"
|
||||
|
||||
SRC_URI[md5sum] = "b5cc15c8f9f180a48665f9aacf91d817"
|
||||
SRC_URI[sha256sum] = "ae70396ad1a434f9c7046fd2dd196fc04b12f9e91ffb859164193be8b6168a7a"
|
||||
|
||||
inherit pypi setuptools3 ptest
|
||||
|
||||
SRC_URI += " \
|
||||
file://run-ptest \
|
||||
"
|
||||
|
||||
RDEPENDS:${PN}-ptest += " \
|
||||
${PYTHON_PN}-pytest \
|
||||
${PYTHON_PN}-unixadmin \
|
||||
"
|
||||
|
||||
do_install_ptest() {
|
||||
install -d ${D}${PTEST_PATH}/tests
|
||||
cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
|
||||
}
|
||||
|
||||
RDEPENDS:${PN} = "${PYTHON_PN}-misc"
|
||||
20
meta-python/recipes-devtools/python/python3-attrs_20.3.0.bb
Normal file
20
meta-python/recipes-devtools/python/python3-attrs_20.3.0.bb
Normal file
@@ -0,0 +1,20 @@
|
||||
DESCRIPTION = "Classes Without Boilerplate"
|
||||
HOMEPAGE = "http://www.attrs.org/"
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=d4ab25949a73fe7d4fdee93bcbdbf8ff"
|
||||
|
||||
SRC_URI[sha256sum] = "832aa3cde19744e49938b91fea06d69ecb9e649c93ba974535d08ad92164f700"
|
||||
SRC_URI[md5sum] = "4fe38f89297b2b446d83190fce189f29"
|
||||
|
||||
inherit pypi setuptools3
|
||||
|
||||
RDEPENDS:${PN}:class-target += " \
|
||||
${PYTHON_PN}-crypt \
|
||||
${PYTHON_PN}-ctypes \
|
||||
"
|
||||
RDEPENDS:${PN}:class-nativesdk += " \
|
||||
${PYTHON_PN}-crypt \
|
||||
${PYTHON_PN}-ctypes \
|
||||
"
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
@@ -0,0 +1,18 @@
|
||||
DESCRIPTION = "Read metadata from Python packages"
|
||||
HOMEPAGE = "https://pypi.org/project/importlib-metadata/"
|
||||
LICENSE = "Apache-2.0"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=e88ae122f3925d8bde8319060f2ddb8e"
|
||||
|
||||
inherit pypi setuptools3
|
||||
|
||||
SRC_URI = "https://files.pythonhosted.org/packages/56/1f/74c3e29389d34feea2d62ba3de1169efea2566eb22e9546d379756860525/importlib_metadata-2.0.0.tar.gz"
|
||||
S = "${WORKDIR}/importlib_metadata-${PV}"
|
||||
SRC_URI[md5sum] = "3dd91821c930a3c3633e99a7025aa9c2"
|
||||
SRC_URI[sha256sum] = "77a540690e24b0305878c37ffd421785a6f7e53c8b5720d211b211de8d0e95da"
|
||||
|
||||
DEPENDS += "${PYTHON_PN}-setuptools-scm-native"
|
||||
RDEPENDS:${PN} += "${PYTHON_PN}-zipp ${PYTHON_PN}-pathlib2"
|
||||
RDEPENDS:${PN}:append:class-target = " python3-misc"
|
||||
RDEPENDS:${PN}:append:class-nativesdk = " python3-misc"
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
@@ -0,0 +1,9 @@
|
||||
SUMMARY = "A small and simple INI-file parser module"
|
||||
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=a6bb0320b04a0a503f12f69fea479de9"
|
||||
|
||||
SRC_URI[md5sum] = "0b7f3be87481211c183eae095bcea6f1"
|
||||
SRC_URI[sha256sum] = "bc3af051d7d14b2ee5ef9969666def0cd1a000e121eaea580d4a313df4b37f32"
|
||||
|
||||
inherit pypi setuptools3
|
||||
@@ -4,7 +4,7 @@ SECTION = "devel/python"
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=2683790f5fabb41a3f75b70558799eb4"
|
||||
|
||||
SRC_URI[sha256sum] = "90261b206d6defd58fdd5e85f478bf633a2901798906be2ad389150c5c60edbe"
|
||||
SRC_URI[sha256sum] = "b85d0567b8666149a93172712e68920734333c0ce7e89b78b3e987f71e5ed4f9"
|
||||
|
||||
inherit pypi setuptools3
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
pytest -o log_cli=true -o log_cli_level=INFO | sed -e 's/\[...%\]//g'| sed -e 's/PASSED/PASS/g'| sed -e 's/FAILED/FAIL/g'|sed -e 's/SKIPED/SKIP/g'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS"){printf "%s: %s\n", $NF, $0}else{print}}'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS") {$NF="";print $0}else{print}}'
|
||||
@@ -0,0 +1,24 @@
|
||||
DESCRIPTION = "More routines for operating on iterables, beyond itertools"
|
||||
HOMEPAGE = "https://github.com/erikrose/more-itertools"
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=3396ea30f9d21389d7857719816f83b5"
|
||||
|
||||
SRC_URI[md5sum] = "2588b5a7042576b99574779582be9292"
|
||||
SRC_URI[sha256sum] = "6f83822ae94818eae2612063a5101a7311e68ae8002005b5e05f03fd74a86a20"
|
||||
|
||||
inherit pypi setuptools3 ptest
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
|
||||
SRC_URI += " \
|
||||
file://run-ptest \
|
||||
"
|
||||
|
||||
RDEPENDS:${PN}-ptest += " \
|
||||
${PYTHON_PN}-pytest \
|
||||
"
|
||||
|
||||
do_install_ptest() {
|
||||
install -d ${D}${PTEST_PATH}/tests
|
||||
cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
|
||||
}
|
||||
11
meta-python/recipes-devtools/python/python3-oss2_2.18.0.bb
Normal file
11
meta-python/recipes-devtools/python/python3-oss2_2.18.0.bb
Normal file
@@ -0,0 +1,11 @@
|
||||
SUMMARY = "Alibaba Cloud Object Storage Python SDK 2.x. This version is not compatible with the previous version (Version 0.x). The package name is oss2 to avoid conflict with previous versions."
|
||||
HOMEPAGE = "https://pypi.org/project/oss2/"
|
||||
SECTION = "devel/python"
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=6b3b4a911517b57999a946a456701c4f"
|
||||
|
||||
SRC_URI[sha256sum] = "335c52bec7d8f7ee05f3e816d18a125a86a0a6d014c9e9045ca3b91a2484bbd4"
|
||||
|
||||
inherit pypi setuptools3
|
||||
|
||||
RDEPENDS:${PN} += "python3-aliyun-python-sdk-kms"
|
||||
@@ -0,0 +1,14 @@
|
||||
DESCRIPTION = "Core utilities for Python packages"
|
||||
HOMEPAGE = "https://github.com/pypa/packaging"
|
||||
LICENSE = "Apache-2.0 & BSD"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=faadaedca9251a90b205c9167578ce91"
|
||||
|
||||
SRC_URI[md5sum] = "3208229da731c5d8e29d4d8941e75005"
|
||||
SRC_URI[sha256sum] = "4357f74f47b9c12db93624a82154e9b120fa8293699949152b22065d556079f8"
|
||||
|
||||
inherit pypi setuptools3
|
||||
|
||||
BBCLASSEXTEND = "native"
|
||||
|
||||
DEPENDS += "${PYTHON_PN}-setuptools-scm-native"
|
||||
RDEPENDS:${PN} += "${PYTHON_PN}-six ${PYTHON_PN}-pyparsing"
|
||||
@@ -0,0 +1,13 @@
|
||||
DESCRIPTION = "Object-oriented filesystem paths"
|
||||
HOMEPAGE = "https://github.com/mcmtroffaes/pathlib2"
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE.rst;md5=042856c23a3e903b33bf361ea1cbe29a"
|
||||
|
||||
SRC_URI[md5sum] = "f2bd0a363eb0f8fa0556f35c1d9e66fb"
|
||||
SRC_URI[sha256sum] = "6cd9a47b597b37cc57de1c05e56fb1a1c9cc9fab04fe78c29acd090418529868"
|
||||
|
||||
inherit pypi setuptools3
|
||||
|
||||
RDEPENDS:${PN} += "${PYTHON_PN}-six ${PYTHON_PN}-ctypes"
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
pytest -o log_cli=true -o log_cli_level=INFO | sed -e 's/\[...%\]//g'| sed -e 's/PASSED/PASS/g'| sed -e 's/FAILED/FAIL/g'|sed -e 's/SKIPPED/SKIP/g'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS"){printf "%s: %s\n", $NF, $0}else{print}}'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS") {$NF="";print $0}else{print}}'
|
||||
27
meta-python/recipes-devtools/python/python3-pluggy_0.13.1.bb
Normal file
27
meta-python/recipes-devtools/python/python3-pluggy_0.13.1.bb
Normal file
@@ -0,0 +1,27 @@
|
||||
SUMMARY = "Plugin and hook calling mechanisms for python"
|
||||
HOMEPAGE = "https://github.com/pytest-dev/pluggy"
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=1c8206d16fd5cc02fa9b0bb98955e5c2"
|
||||
|
||||
SRC_URI[md5sum] = "7f610e28b8b34487336b585a3dfb803d"
|
||||
SRC_URI[sha256sum] = "15b2acde666561e1298d71b523007ed7364de07029219b604cf808bfa1c765b0"
|
||||
|
||||
DEPENDS += "${PYTHON_PN}-setuptools-scm-native"
|
||||
RDEPENDS:${PN} += "${PYTHON_PN}-importlib-metadata \
|
||||
${PYTHON_PN}-more-itertools \
|
||||
"
|
||||
|
||||
inherit pypi ptest setuptools3
|
||||
|
||||
SRC_URI += " \
|
||||
file://run-ptest \
|
||||
"
|
||||
|
||||
RDEPENDS:${PN}-ptest += " \
|
||||
${PYTHON_PN}-pytest \
|
||||
"
|
||||
|
||||
do_install_ptest() {
|
||||
install -d ${D}${PTEST_PATH}/testing
|
||||
cp -rf ${S}/testing/* ${D}${PTEST_PATH}/testing/
|
||||
}
|
||||
15
meta-python/recipes-devtools/python/python3-py_1.9.0.bb
Normal file
15
meta-python/recipes-devtools/python/python3-py_1.9.0.bb
Normal file
@@ -0,0 +1,15 @@
|
||||
SUMMARY = "Library with cross-python path, ini-parsing, io, code, log facilities"
|
||||
HOMEPAGE = "http://py.readthedocs.io/"
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=a6bb0320b04a0a503f12f69fea479de9"
|
||||
|
||||
SRC_URI[md5sum] = "b80db4e61eef724f49feb4d20b649e62"
|
||||
SRC_URI[sha256sum] = "9ca6883ce56b4e8da7e79ac18787889fa5206c79dcc67fb065376cd2fe03f342"
|
||||
|
||||
DEPENDS += "${PYTHON_PN}-setuptools-scm-native"
|
||||
|
||||
inherit pypi setuptools3
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
|
||||
RDEPENDS:${PN} += "${PYTHON_PN}-netclient"
|
||||
@@ -0,0 +1,36 @@
|
||||
From ead04f2da75efeca3369feff6161ea4a8baecbc9 Mon Sep 17 00:00:00 2001
|
||||
From: Yuan Chao <yuanc.fnst@cn.fujitsu.com>
|
||||
Date: Wed, 28 Aug 2019 16:12:27 +0900
|
||||
Subject: [PATCH] setup.py: remove the setup_requires for setuptools-scm
|
||||
|
||||
The setup_requires argument forces the download of the egg file for setuptools-scm
|
||||
during the do_compile phase. This download is incompatible with the typical fetch
|
||||
and mirror structure. The only usage of scm is the generation of the _version.py
|
||||
file and in the release tarball it is already correctly created
|
||||
|
||||
Upstream-Status: Inappropriate [oe specific]
|
||||
|
||||
Signed-off-by: Derek Straka <derek@asterius.io>
|
||||
|
||||
Signed-off-by: Yuan Chao <yuanc.fnst@cn.fujitsu.com>
|
||||
|
||||
Rebase for pytest 6.1.0.
|
||||
|
||||
Signed-off-by: Kai Kang <kai.kang@windriver.com>
|
||||
|
||||
---
|
||||
setup.cfg | 1 -
|
||||
1 file changed, 1 deletion(-)
|
||||
|
||||
diff --git a/setup.cfg b/setup.cfg
|
||||
index 6ed0792..0137090 100644
|
||||
--- a/setup.cfg
|
||||
+++ b/setup.cfg
|
||||
@@ -53,7 +53,6 @@ package_dir =
|
||||
=src
|
||||
setup_requires =
|
||||
setuptools>=>=42.0
|
||||
- setuptools-scm>=3.4
|
||||
zip_safe = no
|
||||
|
||||
[options.entry_points]
|
||||
39
meta-python/recipes-devtools/python/python3-pytest_6.2.2.bb
Normal file
39
meta-python/recipes-devtools/python/python3-pytest_6.2.2.bb
Normal file
@@ -0,0 +1,39 @@
|
||||
SUMMARY = "Simple powerful testing with python"
|
||||
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=81eb9f71d006c6b268cf4388e3c98f7b"
|
||||
|
||||
SRC_URI:append = " file://0001-setup.py-remove-the-setup_requires-for-setuptools-scm.patch "
|
||||
|
||||
SRC_URI[sha256sum] = "9d1edf9e7d0b84d72ea3dbcdfd22b35fb543a5e8f2a60092dd578936bf63d7f9"
|
||||
|
||||
inherit update-alternatives pypi setuptools3
|
||||
|
||||
RDEPENDS:${PN}:class-target += " \
|
||||
${PYTHON_PN}-atomicwrites \
|
||||
${PYTHON_PN}-attrs \
|
||||
${PYTHON_PN}-debugger \
|
||||
${PYTHON_PN}-doctest \
|
||||
${PYTHON_PN}-importlib-metadata \
|
||||
${PYTHON_PN}-iniconfig \
|
||||
${PYTHON_PN}-json \
|
||||
${PYTHON_PN}-more-itertools \
|
||||
${PYTHON_PN}-packaging \
|
||||
${PYTHON_PN}-pathlib2 \
|
||||
${PYTHON_PN}-pluggy \
|
||||
${PYTHON_PN}-py \
|
||||
${PYTHON_PN}-setuptools \
|
||||
${PYTHON_PN}-six \
|
||||
${PYTHON_PN}-toml \
|
||||
${PYTHON_PN}-wcwidth \
|
||||
"
|
||||
|
||||
ALTERNATIVE:${PN} += "py.test pytest"
|
||||
|
||||
NATIVE_LINK_NAME[pytest] = "${bindir}/pytest"
|
||||
ALTERNATIVE_TARGET[pytest] = "${bindir}/pytest"
|
||||
|
||||
ALTERNATIVE_LINK_NAME[py.test] = "${bindir}/py.test"
|
||||
ALTERNATIVE_TARGET[py.test] = "${bindir}/py.test"
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
@@ -0,0 +1,21 @@
|
||||
SUMMARY = "the blessed package to manage your versions by scm tags"
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://PKG-INFO;beginline=8;endline=8;md5=8227180126797a0148f94f483f3e1489"
|
||||
|
||||
SRC_URI[md5sum] = "e6c9fad17c90516d640868eb833d5150"
|
||||
SRC_URI[sha256sum] = "a8994582e716ec690f33fec70cca0f85bd23ec974e3f783233e4879090a7faa8"
|
||||
|
||||
PYPI_PACKAGE = "setuptools_scm"
|
||||
inherit pypi setuptools3
|
||||
|
||||
RDEPENDS:${PN} = "\
|
||||
${PYTHON_PN}-debugger \
|
||||
${PYTHON_PN}-json \
|
||||
${PYTHON_PN}-py \
|
||||
${PYTHON_PN}-setuptools \
|
||||
"
|
||||
RDEPENDS:${PN}:class-native = "\
|
||||
${PYTHON_PN}-setuptools-native \
|
||||
"
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
15
meta-python/recipes-devtools/python/python3-toml_0.10.2.bb
Normal file
15
meta-python/recipes-devtools/python/python3-toml_0.10.2.bb
Normal file
@@ -0,0 +1,15 @@
|
||||
SUMMARY = "Python Library for Tom's Obvious, Minimal Language"
|
||||
HOMEPAGE = "https://github.com/uiri/toml"
|
||||
LICENSE = "MIT"
|
||||
SECTION = "devel/python"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=16c77b2b1050d2f03cb9c2ed0edaf4f0"
|
||||
|
||||
SRC_URI[sha256sum] = "b3bda1d108d5dd99f4a20d24d9c348e91c4db7ab1b749200bded2f839ccbe68f"
|
||||
|
||||
inherit pypi setuptools3
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
|
||||
RDEPENDS:${PN} += " \
|
||||
${PYTHON_PN}-misc \
|
||||
"
|
||||
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
pytest -o log_cli=true -o log_cli_level=INFO | sed -e 's/\[...%\]//g'| sed -e 's/PASSED/PASS/g'| sed -e 's/FAILED/FAIL/g'|sed -e 's/SKIPPED/SKIP/g'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS"){printf "%s: %s\n", $NF, $0}else{print}}'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS") {$NF="";print $0}else{print}}'
|
||||
25
meta-python/recipes-devtools/python/python3-wcwidth_0.2.5.bb
Normal file
25
meta-python/recipes-devtools/python/python3-wcwidth_0.2.5.bb
Normal file
@@ -0,0 +1,25 @@
|
||||
SUMMARY = "Library for building powerful interactive command lines in Python"
|
||||
DESCRIPTION = "Measures the displayed width of unicode strings in a terminal"
|
||||
HOMEPAGE = "https://github.com/jquast/wcwidth"
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=b15979c39a2543892fca8cd86b4b52cb"
|
||||
|
||||
SRC_URI[md5sum] = "a07a75f99d316e14838ac760c831ea37"
|
||||
SRC_URI[sha256sum] = "c4d647b99872929fdb7bdcaa4fbe7f01413ed3d98077df798530e5b04f116c83"
|
||||
|
||||
inherit pypi setuptools3 ptest
|
||||
|
||||
SRC_URI += " \
|
||||
file://run-ptest \
|
||||
"
|
||||
|
||||
RDEPENDS:${PN}-ptest += " \
|
||||
${PYTHON_PN}-pytest \
|
||||
"
|
||||
|
||||
do_install_ptest() {
|
||||
install -d ${D}${PTEST_PATH}/tests
|
||||
cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
|
||||
}
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
19
meta-python/recipes-devtools/python/python3-zipp_3.4.0.bb
Normal file
19
meta-python/recipes-devtools/python/python3-zipp_3.4.0.bb
Normal file
@@ -0,0 +1,19 @@
|
||||
DESCRIPTION = "Backport of pathlib-compatible object wrapper for zip files"
|
||||
HOMEPAGE = "https://github.com/jaraco/zipp"
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=7a7126e068206290f3fe9f8d6c713ea6"
|
||||
|
||||
SRC_URI[md5sum] = "ae81f228995578b840d76d1b7d87fede"
|
||||
SRC_URI[sha256sum] = "ed5eee1974372595f9e416cc7bbeeb12335201d8081ca8a0743c954d4446e5cb"
|
||||
|
||||
DEPENDS += "${PYTHON_PN}-setuptools-scm-native"
|
||||
|
||||
inherit pypi setuptools3
|
||||
|
||||
DEPENDS += "${PYTHON_PN}-toml-native"
|
||||
|
||||
RDEPENDS:${PN} += "${PYTHON_PN}-compression \
|
||||
${PYTHON_PN}-math \
|
||||
${PYTHON_PN}-more-itertools"
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
3
meta-python/recipes-devtools/python/run-ptest
Normal file
3
meta-python/recipes-devtools/python/run-ptest
Normal file
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
python3 -m test -v | sed -u -e '/\.\.\. ok/ s/^/PASS: /g' -r -e '/\.\.\. (ERROR|FAIL)/ s/^/FAIL: /g' -e '/\.\.\. skipped/ s/^/SKIP: /g' -e 's/ \.\.\. ok//g' -e 's/ \.\.\. ERROR//g' -e 's/ \.\.\. FAIL//g' -e 's/ \.\.\. skipped//g'
|
||||
26
meta-xfce/recipes-core/images/core-image-xfce.bb
Normal file
26
meta-xfce/recipes-core/images/core-image-xfce.bb
Normal file
@@ -0,0 +1,26 @@
|
||||
require core-image-minimal-xfce.bb
|
||||
export IMAGE_BASENAME = "core-image-xfce"
|
||||
|
||||
SUMMARY = "Basic desktop image for ice boards"
|
||||
|
||||
IMAGE_FEATURES += "splash package-management x11 ssh-server-openssh \
|
||||
tools-debug dev-pkgs debug-tweaks"
|
||||
|
||||
IMAGE_INSTALL += " gpgme gnupg "
|
||||
|
||||
# boot to desktop
|
||||
SYSTEMD_DEFAULT_TARGET = "graphical.target"
|
||||
|
||||
# Gstreamer Packages
|
||||
IMAGE_INSTALL += " ffmpeg \
|
||||
gstreamer1.0 \
|
||||
gstreamer1.0-plugins-base \
|
||||
gstreamer1.0-plugins-bad \
|
||||
gstreamer1.0-plugins-good \
|
||||
gstreamer1.0-plugins-ugly \
|
||||
gstreamer1.0-libav \
|
||||
gstreamer1.0-rtsp-server \
|
||||
json-glib \
|
||||
libdaemon \
|
||||
jansson \
|
||||
"
|
||||
Reference in New Issue
Block a user