[ptxdist] [PATCH 6/6] rules/sbsigntools: Add new package.

2021-07-16 Thread Christian Melki
sbsigntools as a target package.
sbsign is a EFI image signer. This is the target package.
Used to sign/resign images on target.

Signed-off-by: Christian Melki 
---
 rules/sbsigntools.in   | 11 +++
 rules/sbsigntools.make | 73 ++
 2 files changed, 84 insertions(+)
 create mode 100644 rules/sbsigntools.in
 create mode 100644 rules/sbsigntools.make

diff --git a/rules/sbsigntools.in b/rules/sbsigntools.in
new file mode 100644
index 0..146549eeb
--- /dev/null
+++ b/rules/sbsigntools.in
@@ -0,0 +1,11 @@
+## SECTION=security
+
+config SBSIGNTOOLS
+   tristate
+   select OPENSSL
+   select LIBUUID
+   select GNU_EFI
+   select BINUTILS
+   prompt "sbsigntools"
+   help
+ Signing utility for UEFI secure boot.
diff --git a/rules/sbsigntools.make b/rules/sbsigntools.make
new file mode 100644
index 0..45b65ebbd
--- /dev/null
+++ b/rules/sbsigntools.make
@@ -0,0 +1,73 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2021 by Christian Melki 
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_SBSIGNTOOLS) += sbsigntools
+
+#
+# Paths and names
+#
+SBSIGNTOOLS_VERSION:= 0.9.4
+SBSIGNTOOLS_MD5:= a0f39307109d32c88ef460de52612f5c
+SBSIGNTOOLS:= sbsigntools-$(SBSIGNTOOLS_VERSION)
+SBSIGNTOOLS_SUFFIX := tar.gz
+SBSIGNTOOLS_URL:= 
https://git.kernel.org/pub/scm/linux/kernel/git/jejb/sbsigntools.git/snapshot/$(SBSIGNTOOLS).$(SBSIGNTOOLS_SUFFIX)
+SBSIGNTOOLS_SOURCE := $(SRCDIR)/$(SBSIGNTOOLS).$(SBSIGNTOOLS_SUFFIX)
+SBSIGNTOOLS_DIR:= $(BUILDDIR)/$(SBSIGNTOOLS)
+SBSIGNTOOLS_LICENSE:= GPL-3.0-only
+SBSIGNTOOLS_LICENSE_FILES  := \
+   file://LICENSE.GPLv3;md5=9eef91148a9b14ec7f9df333daebc746
+
+# 
+# Prepare
+# 
+
+ifdef PTXCONF_ARCH_X86
+SBSIGNTOOLS_ARCH   := i386
+ifdef PTXCONF_ARCH_X86_64
+SBSIGNTOOLS_ARCH   := x86_64
+endif
+endif
+ifdef PTXCONF_ARCH_ARM
+SBSIGNTOOLS_ARCH   := arm
+endif
+ifdef PTXCONF_ARCH_ARM64
+SBSIGNTOOLS_ARCH   := aarch64
+endif
+
+SBSIGNTOOLS_CONF_TOOL  := autoconf
+SBSIGNTOOLS_CONF_OPT   := \
+   $(CROSS_AUTOCONF_USR) \
+   --with-gnu-efi=$(SYSROOT) \
+   --with-efi-arch=$(SBSIGNTOOLS_ARCH)
+
+# 
+# Target-Install
+# 
+
+$(STATEDIR)/sbsigntools.targetinstall:
+   @$(call targetinfo)
+
+   @$(call install_init, sbsigntools)
+   @$(call install_fixup, sbsigntools,PRIORITY,optional)
+   @$(call install_fixup, sbsigntools,SECTION,base)
+   @$(call install_fixup, sbsigntools,AUTHOR,"Christian Melki 
")
+   @$(call install_fixup, sbsigntools,DESCRIPTION,missing)
+   @$(call install_copy, sbsigntools, 0, 0, 0755, -, /usr/bin/sbattach)
+   @$(call install_copy, sbsigntools, 0, 0, 0755, -, /usr/bin/sbkeysync)
+   @$(call install_copy, sbsigntools, 0, 0, 0755, -, /usr/bin/sbsiglist)
+   @$(call install_copy, sbsigntools, 0, 0, 0755, -, /usr/bin/sbsign)
+   @$(call install_copy, sbsigntools, 0, 0, 0755, -, /usr/bin/sbvarsign)
+   @$(call install_copy, sbsigntools, 0, 0, 0755, -, /usr/bin/sbverify)
+   @$(call install_finish, sbsigntools)
+
+   @$(call touch)
+
+# vim: syntax=make
-- 
2.32.0


___
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to 
ptxdist-requ...@pengutronix.de


[ptxdist] [PATCH 5/6] rules/host-sbsigntools: Add new package.

2021-07-16 Thread Christian Melki
sbsigntools as a host package.
sbsign is an EFI image signer for use with secure boot.
Common use is on the host sign to sign the images.
Depends on libuuid, openssl and gnu-efi.

Signed-off-by: Christian Melki 
---
 rules/host-sbsigntools.in   | 10 ++
 rules/host-sbsigntools.make | 26 ++
 2 files changed, 36 insertions(+)
 create mode 100644 rules/host-sbsigntools.in
 create mode 100644 rules/host-sbsigntools.make

diff --git a/rules/host-sbsigntools.in b/rules/host-sbsigntools.in
new file mode 100644
index 0..e523fdce9
--- /dev/null
+++ b/rules/host-sbsigntools.in
@@ -0,0 +1,10 @@
+## SECTION=hosttools_noprompt
+
+config HOST_SBSIGNTOOLS
+   tristate
+   default y if ALLYES
+   select HOST_OPENSSL
+   select HOST_LIBUUID
+   select HOST_GNU_EFI
+   help
+ Signing utility for UEFI secure boot.
diff --git a/rules/host-sbsigntools.make b/rules/host-sbsigntools.make
new file mode 100644
index 0..1308ac2dd
--- /dev/null
+++ b/rules/host-sbsigntools.make
@@ -0,0 +1,26 @@
+# -*-makefile-*-
+# Copyright (C) 2021 by Christian Melki 
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+HOST_PACKAGES-$(PTXCONF_HOST_SBSIGNTOOLS) += host-sbsigntools
+
+# 
+# Prepare
+# 
+
+HOST_SBSIGNTOOLS_ARCH = $(call ptx/force-sh, uname -m)
+
+HOST_SBSIGNTOOLS_CONF_TOOL := autoconf
+
+HOST_SBSIGNTOOLS_CONF_OPT  := \
+   $(HOST_AUTOCONF) \
+   --with-gnu-efi=$(PTXDIST_SYSROOT_HOST) \
+   --with-efi-arch=$(HOST_SBSIGNTOOLS_ARCH)
+
+# vim: syntax=make
-- 
2.32.0


___
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to 
ptxdist-requ...@pengutronix.de


[ptxdist] [PATCH 2/6] rules/gnu-efi: Add new package.

2021-07-16 Thread Christian Melki
Target GNU EFI library. Used for various EFI work.
Depending on your needs, target binaries for EFI stuff might be needed.
This is used by efitools etc.

Signed-off-by: Christian Melki 
---
 rules/gnu-efi.in   |  6 
 rules/gnu-efi.make | 71 ++
 2 files changed, 77 insertions(+)
 create mode 100644 rules/gnu-efi.in
 create mode 100644 rules/gnu-efi.make

diff --git a/rules/gnu-efi.in b/rules/gnu-efi.in
new file mode 100644
index 0..b2119
--- /dev/null
+++ b/rules/gnu-efi.in
@@ -0,0 +1,6 @@
+## SECTION=system_libraries
+menuconfig GNU_EFI
+   tristate
+   prompt "gnu-efi   "
+   help
+ This is gnu-efi, a library for providing EFI functions.
diff --git a/rules/gnu-efi.make b/rules/gnu-efi.make
new file mode 100644
index 0..33a27020b
--- /dev/null
+++ b/rules/gnu-efi.make
@@ -0,0 +1,71 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2021 by Christian Melki 
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_GNU_EFI) += gnu-efi
+
+#
+# Paths and names
+#
+# No tags: use a fake descriptive commit-ish to include the date
+GNU_EFI_VERSION:= 3.0.13
+GNU_EFI_MD5:= 8ec4221f505c78e6fc375c2fd7f0c549
+GNU_EFI:= gnu-efi-$(GNU_EFI_VERSION)
+GNU_EFI_SUFFIX := tar.bz2
+GNU_EFI_URL:= 
https://sourceforge.net/projects/gnu-efi/files/gnu-efi-$(GNU_EFI_VERSION).$(GNU_EFI_SUFFIX)
+GNU_EFI_SOURCE := $(SRCDIR)/$(GNU_EFI).$(GNU_EFI_SUFFIX)
+GNU_EFI_DIR:= $(BUILDDIR)/$(GNU_EFI)
+GNU_EFI_LICENSE:= BSD
+
+# 
+# Compile
+#  
  
+
+ifdef PTXCONF_ARCH_X86 
+GNU_EFI_ARCH = ia32
+ifdef PTXCONF_ARCH_X86_64
+GNU_EFI_ARCH = x86_64
+endif
+endif
+ifdef PTXCONF_ARCH_ARM
+GNU_EFI_ARCH = arm
+endif
+ifdef PTXCONF_ARCH_ARM64
+GNU_EFI_ARCH = aarch64
+endif
+
+GNU_EFI_CONF_TOOL  := NO
+GNU_EFI_MAKE_ENV   := \
+   ARCH=$(GNU_EFI_ARCH) \
+   CROSS_COMPILE=$(COMPILER_PREFIX) \
+   PREFIX=/usr \
+   LIBDIR=/usr/$(CROSS_LIB_DIR)
+
+GNU_EFI_INSTALL_OPT := \
+   INSTALLROOT=$(GNU_EFI_PKGDIR) \
+   PREFIX=/usr \
+   LIBDIR=/usr/$(CROSS_LIB_DIR) \
+   install
+
+# 
+# Target-Install
+# 
+
+$(STATEDIR)/gnu-efi.targetinstall:
+   @$(call targetinfo)
+   @$(call install_init, gnu-efi)
+   @$(call install_fixup, gnu-efi,PRIORITY,optional)
+   @$(call install_fixup, gnu-efi,SECTION,base)
+   @$(call install_fixup, gnu-efi,AUTHOR,"Christian Melki 
")
+   @$(call install_fixup, gnu-efi,DESCRIPTION,missing)
+   @$(call install_finish, gnu-efi)
+   @$(call touch)
+
+# vim: syntax=make
-- 
2.32.0


___
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to 
ptxdist-requ...@pengutronix.de


[ptxdist] [PATCH 4/6] rules/efitools: Add new package.

2021-07-16 Thread Christian Melki
efitools for target. Might be used for reading efivariables
or signing/resigning images on the target. efitools might also
be used for signing EFI images on host.
This is the target package.

Signed-off-by: Christian Melki 
---
 rules/efitools.in   | 11 ++
 rules/efitools.make | 84 +
 2 files changed, 95 insertions(+)
 create mode 100644 rules/efitools.in
 create mode 100644 rules/efitools.make

diff --git a/rules/efitools.in b/rules/efitools.in
new file mode 100644
index 0..1b1b1d0ba
--- /dev/null
+++ b/rules/efitools.in
@@ -0,0 +1,11 @@
+## SECTION=shell_and_console
+
+config EFITOOLS
+   tristate
+   select LIBC_DL
+   select GNU_EFI
+   select OPENSSL
+   select HOST_EFITOOLS
+   prompt "efitools"
+   help
+ Useful tools for manipulating UEFI secure boot platforms
diff --git a/rules/efitools.make b/rules/efitools.make
new file mode 100644
index 0..4e43dc3fd
--- /dev/null
+++ b/rules/efitools.make
@@ -0,0 +1,84 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2021 by Christian Melki 
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_EFITOOLS) += efitools
+
+#
+# Paths and names
+#
+EFITOOLS_VERSION   := 1.9.2
+EFITOOLS_MD5   := a3a3f04ed6aa5486c97dd206edeebe0a
+EFITOOLS   := efitools-$(EFITOOLS_VERSION)
+EFITOOLS_SUFFIX:= tar.gz
+EFITOOLS_URL   := 
https://git.kernel.org/pub/scm/linux/kernel/git/jejb/efitools.git/snapshot/$(EFITOOLS).$(EFITOOLS_SUFFIX)
+EFITOOLS_SOURCE:= $(SRCDIR)/$(EFITOOLS).$(EFITOOLS_SUFFIX)
+EFITOOLS_DIR   := $(BUILDDIR)/$(EFITOOLS)
+EFITOOLS_LICENSE   := GPL-2.0-or-later
+EFITOOLS_LICENSE_FILES := \
+   file://COPYING;md5=97d554a32881fee0aa283d96e47cb24a
+
+# 
+# Prepare
+# 
+
+ifdef PTXCONF_ARCH_X86
+EFITOOLS_ARCH   := ia32
+ifdef PTXCONF_ARCH_X86_64
+EFITOOLS_ARCH   := x86_64
+endif
+endif
+ifdef PTXCONF_ARCH_ARM
+EFITOOLS_ARCH   := arm
+endif
+ifdef PTXCONF_ARCH_ARM64
+EFITOOLS_ARCH   := aarch64
+endif
+
+EFITOOLS_CONF_TOOL := NO
+
+EFITOOLS_MAKE_ENV  := \
+   $(CROSS_ENV) \
+   ARCH=$(EFITOOLS_ARCH) \
+   INCDIR_PREFIX=$(SYSROOT) \
+   CRTPATH_PREFIX=$(SYSROOT) \
+   OPENSSL_LIB=$(PTXDIST_SYSROOT_HOST) \
+   SIGN_EFI_SIG_LIST=$(PTXDIST_SYSROOT_HOST)/usr/bin/sign-efi-sig-list \
+   
CERT_TO_EFI_SIG_LIST=$(PTXDIST_SYSROOT_HOST)/usr/bin/cert-to-efi-sig-list \
+   
CERT_TO_EFI_HASH_LIST=$(PTXDIST_SYSROOT_HOST)/usr/bin/cert-to-efi-hash-list \
+   
HASH_TO_EFI_SIG_LIST=$(PTXDIST_SYSROOT_HOST)/usr/bin/hash-to-efi-sig-list \
+   prefix=/usr
+
+# 
+# Target-Install
+# 
+
+$(STATEDIR)/efitools.targetinstall:
+   @$(call targetinfo)
+
+   @$(call install_init, efitools)
+   @$(call install_fixup, efitools,PRIORITY,optional)
+   @$(call install_fixup, efitools,SECTION,base)
+   @$(call install_fixup, efitools,AUTHOR,"Christian Melki 
")
+   @$(call install_fixup, efitools,DESCRIPTION,missing)
+   @$(call install_copy, efitools, 0, 0, 0755, -, 
/usr/bin/cert-to-efi-hash-list)
+   @$(call install_copy, efitools, 0, 0, 0755, -, 
/usr/bin/cert-to-efi-sig-list)
+   @$(call install_copy, efitools, 0, 0, 0755, -, /usr/bin/efi-readvar)
+   @$(call install_copy, efitools, 0, 0, 0755, -, /usr/bin/efi-updatevar)
+   @$(call install_copy, efitools, 0, 0, 0755, -, /usr/bin/efitool-mkusb)
+   @$(call install_copy, efitools, 0, 0, 0755, -, /usr/bin/flash-var)
+   @$(call install_copy, efitools, 0, 0, 0755, -, 
/usr/bin/hash-to-efi-sig-list)
+   @$(call install_copy, efitools, 0, 0, 0755, -, 
/usr/bin/sig-list-to-certs)
+   @$(call install_copy, efitools, 0, 0, 0755, -, 
/usr/bin/sign-efi-sig-list)
+   @$(call install_finish, efitools)
+
+   @$(call touch)
+
+# vim: syntax=make
-- 
2.32.0


___
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to 
ptxdist-requ...@pengutronix.de


[ptxdist] [PATCH 1/6] rules/host-gnu-efi: Add new package.

2021-07-16 Thread Christian Melki
GNU EFI library as host package.
Used by various tools for various EFI work.

Signed-off-by: Christian Melki 
---
 rules/host-gnu-efi.in   |  7 +++
 rules/host-gnu-efi.make | 33 +
 2 files changed, 40 insertions(+)
 create mode 100644 rules/host-gnu-efi.in
 create mode 100644 rules/host-gnu-efi.make

diff --git a/rules/host-gnu-efi.in b/rules/host-gnu-efi.in
new file mode 100644
index 0..c7f665135
--- /dev/null
+++ b/rules/host-gnu-efi.in
@@ -0,0 +1,7 @@
+## SECTION=hosttools_noprompt
+
+config HOST_GNU_EFI
+   tristate
+   default y if ALLYES
+   help
+ This is gnu-efi, a library for providing EFI functions.
diff --git a/rules/host-gnu-efi.make b/rules/host-gnu-efi.make
new file mode 100644
index 0..d585d6731
--- /dev/null
+++ b/rules/host-gnu-efi.make
@@ -0,0 +1,33 @@
+# -*-makefile-*-
+# Copyright (C) 2021 by Christian Melki 
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+HOST_PACKAGES-$(PTXCONF_HOST_GNU_EFI) += host-gnu-efi
+
+# 
+# Compile
+#  
  
+
+HOST_GNU_EFI_ARCH = $(call ptx/force-sh, uname -m)
+
+HOST_GNU_EFI_CONF_TOOL := NO
+
+HOST_GNU_EFI_MAKE_ENV  := \
+   $(HOST_ENV) \
+   ARCH=$(HOST_GNU_EFI_ARCH) \
+   PREFIX=/usr \
+
+HOST_GNU_EFI_INSTALL_OPT := \
+   $(HOST_ENV) \
+   ARCH=$(HOST_GNU_EFI_ARCH) \
+   INSTALLROOT=$(PTXDIST_SYSROOT_HOST) \
+   PREFIX=/usr \
+   install
+
+# vim: syntax=make
-- 
2.32.0


___
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to 
ptxdist-requ...@pengutronix.de


[ptxdist] [PATCH 3/6] rules/host-efitools: Add new package.

2021-07-16 Thread Christian Melki
Host efitools. Depending on your needs, this might be
used for signing EFI images from host environment or
reading efi variables from a target environment.
This is the host side toolset.

Signed-off-by: Christian Melki 
---
 rules/host-efitools.in   |  9 +
 rules/host-efitools.make | 29 +
 2 files changed, 38 insertions(+)
 create mode 100644 rules/host-efitools.in
 create mode 100644 rules/host-efitools.make

diff --git a/rules/host-efitools.in b/rules/host-efitools.in
new file mode 100644
index 0..6313ca6a3
--- /dev/null
+++ b/rules/host-efitools.in
@@ -0,0 +1,9 @@
+## SECTION=hosttools_noprompt
+
+config HOST_EFITOOLS
+   tristate
+   default y if ALLYES
+   select HOST_OPENSSL
+   select HOST_SBSIGNTOOLS
+   help
+ Required host part to build efitools for target.
diff --git a/rules/host-efitools.make b/rules/host-efitools.make
new file mode 100644
index 0..c668b06d0
--- /dev/null
+++ b/rules/host-efitools.make
@@ -0,0 +1,29 @@
+# -*-makefile-*-
+# Copyright (C) 2021 by Christian Melki 
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+HOST_PACKAGES-$(PTXCONF_HOST_EFITOOLS) += host-efitools
+
+# 
+# Prepare
+# 
+
+HOST_EFITOOLS_ARCH = $(call ptx/force-sh, uname -m)
+
+HOST_EFITOOLS_CONF_TOOL:= NO
+
+HOST_EFITOOLS_MAKE_ENV := \
+   $(HOST_ENV) \
+   ARCH=$(HOST_EFITOOLS_ARCH) \
+   INCDIR_PREFIX=$(PTXDIST_SYSROOT_HOST) \
+   CRTPATH_PREFIX=$(PTXDIST_SYSROOT_HOST) \
+   OPENSSL_LIB=$(PTXDIST_SYSROOT_HOST) \
+   prefix=/usr
+
+# vim: syntax=make
-- 
2.32.0


___
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to 
ptxdist-requ...@pengutronix.de


Re: [ptxdist] [PATCH] rules/qemu: Add new package.

2021-07-16 Thread Alexander Dahl
Hello Christian,

On Fri, Jul 16, 2021 at 02:44:23PM +0200, Christian Melki wrote:
> Work-in-progress. Add target-qemu package.

You can prefix the subject with "WIP:" or use `git format-patch --rfc`
to clearly show the intention, if something is not yet ready for
merging. ;-)

Greets
Alex

> Usecases are among others:
> Higher isolation (security) and target emulation (software longevity).
> 
> Signed-off-by: Christian Melki 
> ---
>  rules/qemu.in   |  51 +
>  rules/qemu.make | 274 
>  2 files changed, 325 insertions(+)
>  create mode 100644 rules/qemu.in
>  create mode 100644 rules/qemu.make
> 
> diff --git a/rules/qemu.in b/rules/qemu.in
> new file mode 100644
> index 0..d627f7a79
> --- /dev/null
> +++ b/rules/qemu.in
> @@ -0,0 +1,51 @@
> +## SECTION=emulators
> +
> +menuconfig QEMU
> + tristate
> + prompt "qemu  "
> + select HOST_MESON
> + select HOST_NINJA
> + select HOST_SYSTEM_PYTHON3
> + select GLIB
> + select LIBCAP_NG
> + select ZLIB
> + select LIBUSB   if QEMU_SYS
> + select PIXMAN   if QEMU_SYS
> + help
> +   QEMU is a generic and open source machine emulator and
> +   virtualizer.  
> +
> +if QEMU
> +
> +config QEMU_TARGETS
> +string
> + prompt "QEMU targets"
> + default "i386 x86_64 arm aarch64"
> + help
> +   The list of QEMU user and system targets you want to build.
> +   Only use the prefixes.
> +
> +config QEMU_FDT
> +   bool
> +   prompt "Enable Device Tree generation."
> +   default y
> +   help
> + Say y to let QEMU construct FDTs and pass them
> +  to the VMs.
> +
> +config QEMU_TOOLS
> + bool
> + prompt "Enable tools"
> + default y
> + help
> +   Say y here to include tools.
> +
> +config QEMU_SYS
> + bool
> + prompt "system emulation"
> +
> +config QEMU_USR
> + bool
> + prompt "user-space emulation"
> +
> +endif
> diff --git a/rules/qemu.make b/rules/qemu.make
> new file mode 100644
> index 0..0a276fbf6
> --- /dev/null
> +++ b/rules/qemu.make
> @@ -0,0 +1,274 @@
> +# -*-makefile-*-
> +#
> +# Copyright (C) 2021 by Christian Melki 
> +#
> +# For further information about the PTXdist project and license conditions
> +# see the README file.
> +#
> +
> +#
> +# We provide this package
> +#
> +PACKAGES-$(PTXCONF_QEMU) += qemu
> +
> +#
> +# Paths and names
> +#
> +QEMU_VERSION:= 6.0.0
> +QEMU_MD5:= cce185dc0119546e395909e8a71a75bb
> +QEMU := qemu-$(QEMU_VERSION)
> +QEMU_SUFFIX  := tar.xz
> +QEMU_URL := https://download.qemu.org/$(QEMU).$(QEMU_SUFFIX)
> +QEMU_SOURCE  := $(SRCDIR)/$(QEMU).$(QEMU_SUFFIX)
> +QEMU_DIR := $(BUILDDIR)/$(QEMU)
> +QEMU_LICENSE := GPL-2.0-only AND GPL-2.0-or-later AND MIT AND BSD-1-Clause 
> AND BSD-2-Clause AND BSD-3-Clause
> +QEMU_BUILD_OOT   := YES
> +
> +# 
> 
> +# Prepare
> +# 
> 
> +
> +ifdef PTXCONF_ARCH_X86
> +QEMU_ARCH   := i386
> +ifdef PTXCONF_ARCH_X86_64
> +QEMU_ARCH   := x86_64
> +endif
> +endif
> +ifdef PTXCONF_ARCH_ARM
> +QEMU_ARCH   := arm
> +endif
> +ifdef PTXCONF_ARCH_ARM64
> +QEMU_ARCH   := aarch64
> +endif
> +
> +#
> +# autoconf
> +#
> +
> +QEMU_MAKE_OPT:= V=$(filter 1,$(PTXDIST_VERBOSE))
> +
> +QEMU_SYS_TARGETS := $(foreach target, $(call 
> remove_quotes,$(PTXCONF_QEMU_TARGETS)), $(patsubst %,%-softmmu,$(target)))
> +QEMU_USR_TARGETS := $(foreach target, $(call 
> remove_quotes,$(PTXCONF_QEMU_TARGETS)), $(patsubst %,%-linux-user,$(target)))
> +
> +QEMU_PATH := PATH=$(CROSS_PATH)
> +
> +QEMU_CONF_TOOL   := autoconf
> +# Note: not realy autoconf:
> +# e.g. there is --enable-debug but not --disable-debug
> +QEMU_CONF_OPT:= \
> + --prefix=/usr \
> + --target-list=" \
> + $(call ptx/ifdef, PTXCONF_QEMU_SYS,$(QEMU_SYS_TARGETS),) \
> + $(call ptx/ifdef, PTXCONF_QEMU_USR,$(QEMU_USR_TARGETS),) \
> + " \
> + --meson=meson \
> + --ninja=ninja \
> + --cross-prefix=$(CROSS_COMPILE) \
> + --disable-sanitizers \
> + --disable-tsan \
> + --disable-strip \
> + --disable-werror \
> + --enable-stack-protector \
> + --audio-drv-list= \
> + --block-drv-rw-whitelist= \
> + --block-drv-ro-whitelist= \
> + --enable-trace-backends=nop \
> + --disable-tcg-interpreter \
> + --enable-malloc-trim \
> + --with-coroutine= \
> + --tls-priority=NORMAL \
> + --disable-plugins \
> + --disable-containers \
> + --$(call ptx/endis, PTXCONF_QEMU_SYS)-system \
> + --disable-user \
> + --$(call ptx/endis, PTXCONF_QEMU_USR)-linux-user \
> + --disable-bsd-user \
> + --disable-docs \
> + --disable-guest-agent \
> + --disable-guest-agent-msi \
> + --enable-pie \
> + 

Re: [ptxdist] Kernel GCC plugins

2021-07-16 Thread Michael Olbrich
On Fri, Jul 16, 2021 at 02:45:40PM +0200, Guillermo Rodriguez Garcia wrote:
> El viernes, 16 de julio de 2021, Alexander Dahl  escribió:
> > On Fri, Jul 16, 2021 at 01:32:29PM +0200, Guillermo Rodriguez Garcia wrote:
> > > I notice that the kernelconfig files changes depending on the host gcc
> > > version; in particular depending on supported gcc plugins.
> > >
> > > However this does not seem to make much sense -- the kernel will not be
> > > built using the host gcc; it will be built using the cross compiler from
> > > the toolchain.
> > >
> > > Is it possible to avoid this?
> >
> > IIRC this was addressed several times in recent ptxdist versions:
> >
> > - ptxdist-2021.04.0-14-g533f7709f ("kernel/kernel-template: set
> > PTXDIST_NO_GCC_PLUGINS=1 in _MAKE_ENV as well")
> > - ptxdist-2021.03.0-69-g7a90f622f ("template: kernel: fix disabling gcc
> > plugins for >= v5.11")
> > - ptxdist-2021.03.0-33-g114fecbd4 ("kernel: really fix disabling gcc
> > plugins for >= v5.11)
> > - ptxdist-2021.02.0-41-gd57abb428 ("kernel: fix disabling gcc plugins for
> > >= v5.11")
> >
> > … and maybe more?
> >
> > Or is yours another problem?
> 
> 
> Do I need to do something special for this to work?
> 
> I’m on ptxdist 2021.07.0 so the above fixes should be merged, yet I am
> still having the problem ..

Is PTXCONF_KERNEL_GCC_PLUGINS disabled? And which kernel version? Maybe the
check changed again.

Michael

-- 
Pengutronix e.K.   | |
Steuerwalder Str. 21   | http://www.pengutronix.de/  |
31137 Hildesheim, Germany  | Phone: +49-5121-206917-0|
Amtsgericht Hildesheim, HRA 2686   | Fax:   +49-5121-206917- |

___
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to 
ptxdist-requ...@pengutronix.de


Re: [ptxdist] [PATCH v2 3/4] python3-pysnmp: new package

2021-07-16 Thread Michael Olbrich
On Fri, Jul 16, 2021 at 02:53:42PM +0200, Lars Pedersen wrote:
> Hi. Thanks for the reply
> 
> On Fri, 16 Jul 2021 at 14:41, Michael Olbrich  
> wrote:
> >
> > On Mon, Jul 12, 2021 at 01:09:09PM +0200, Lars Pedersen wrote:
> > > Signed-off-by: Lars Pedersen 
> > > ---
> > > Changes since v1:
> > >  - Updated LICENSE field to BSD-2-Clause
> > >
> > >  rules/python3-pysnmp.in   | 13 ++
> > >  rules/python3-pysnmp.make | 54 +++
> > >  2 files changed, 67 insertions(+)
> > >  create mode 100644 rules/python3-pysnmp.in
> > >  create mode 100644 rules/python3-pysnmp.make
> > >
> > > diff --git a/rules/python3-pysnmp.in b/rules/python3-pysnmp.in
> > > new file mode 100644
> > > index 0..09e9b2b0a
> > > --- /dev/null
> > > +++ b/rules/python3-pysnmp.in
> > > @@ -0,0 +1,13 @@
> > > +## SECTION=python3
> > > +
> > > +config PYTHON3_PYSNMP
> > > + bool
> > > + prompt "pysnmp"
> > > + select PYTHON3
> > > + select HOST_PYTHON3_SETUPTOOLS
> > > + select PYTHON3_PLY
> > > + select PYTHON3_PYASN1
> > > + select PYTHON3_PYCRYPTODOMEX
> > > + select PYTHON3_PYSMI
> > > + help
> > > +   pySNMP is a cross-platform, pure-Python SNMP engine 
> > > implementation.
> > > diff --git a/rules/python3-pysnmp.make b/rules/python3-pysnmp.make
> > > new file mode 100644
> > > index 0..9eb101b9f
> > > --- /dev/null
> > > +++ b/rules/python3-pysnmp.make
> > > @@ -0,0 +1,54 @@
> > > +# -*-makefile-*-
> > > +#
> > > +# Copyright (C) 2021 by Lars Pedersen 
> > > +#
> > > +# For further information about the PTXdist project and license 
> > > conditions
> > > +# see the README file.
> > > +#
> > > +
> > > +#
> > > +# We provide this package
> > > +#
> > > +PACKAGES-$(PTXCONF_PYTHON3_PYSNMP) += python3-pysnmp
> > > +
> > > +#
> > > +# Paths and names
> > > +#
> > > +PYTHON3_PYSNMP_VERSION   := 4.4.12
> > > +PYTHON3_PYSNMP_MD5   := 880259daf6e2cb322e938c818276
> > > +PYTHON3_PYSNMP   := pysnmp-$(PYTHON3_PYSNMP_VERSION)
> > > +PYTHON3_PYSNMP_SUFFIX:= tar.gz
> > > +PYTHON3_PYSNMP_URL   := $(call ptx/mirror-pypi, pysnmp, 
> > > $(PYTHON3_PYSNMP).$(PYTHON3_PYSNMP_SUFFIX))
> > > +PYTHON3_PYSNMP_SOURCE:= 
> > > $(SRCDIR)/$(PYTHON3_PYSNMP).$(PYTHON3_PYSNMP_SUFFIX)
> > > +PYTHON3_PYSNMP_DIR   := $(BUILDDIR)/$(PYTHON3_PYSNMP)
> > > +PYTHON3_PYSNMP_LICENSE   := BSD-2-Clause
> > > +PYTHON3_PYSNMP_LICENSE_FILES := \
> > > + file://LICENSE.rst;md5=b15d29f500f748d1c2a15709769090a8
> > > +
> > > +# 
> > > 
> > > +# Prepare
> > > +# 
> > > 
> > > +
> > > +PYTHON3_PYSNMP_CONF_TOOL := python3
> > > +
> > > +# 
> > > 
> > > +# Target-Install
> > > +# 
> > > 
> > > +
> > > +$(STATEDIR)/python3-pysnmp.targetinstall:
> > > + @$(call targetinfo)
> > > +
> > > + @$(call install_init, python3-pysnmp)
> > > + @$(call install_fixup, python3-pysnmp,PRIORITY,optional)
> > > + @$(call install_fixup, python3-pysnmp,SECTION,base)
> > > + @$(call install_fixup, python3-pysnmp,AUTHOR,"Lars Pedersen 
> > > ")
> > > + @$(call install_fixup, python3-pysnmp,DESCRIPTION,missing)
> > > +
> > > + @$(call install_glob,python3-pysnmp, 0, 0, -, \
> > > + /usr/lib/python$(PYTHON3_MAJORMINOR)/site-packages,, *.pyc)
> >
> > That's the strange one. Why skip all *.pyc? I can do a fixup if this
> > should just be *.py instead.
> 
> Yes now I remember.  I couldn't get the pyc files to work on the
> device and somehow the py files did. After a few hours of debugging I
> gave up.

In that case, please at a short comment above the install_glob about this.
And more details in the commit message. Something about how it fails, the
error message etc.
Basically something that whoever updates the package in the future can use
to check if it's still broken.

Michael

> > > +
> > > + @$(call install_finish, python3-pysnmp)
> > > +
> > > + @$(call touch)
> > > +
> > > +# vim: syntax=make
> > > --
> > > 2.31.1
> > >
> > >
> > > ___
> > > ptxdist mailing list
> > > ptxdist@pengutronix.de
> > > To unsubscribe, send a mail with subject "unsubscribe" to 
> > > ptxdist-requ...@pengutronix.de
> > >
> >
> > --
> > Pengutronix e.K.   | |
> > Steuerwalder Str. 21   | http://www.pengutronix.de/  |
> > 31137 Hildesheim, Germany  | Phone: +49-5121-206917-0|
> > Amtsgericht Hildesheim, HRA 2686   | Fax:   +49-5121-206917- |
> 
> ___
> ptxdist mailing list
> ptxdist@pengutronix.de
> To unsubscribe, send a mail with subject "unsubscribe" to 

Re: [ptxdist] Kernel GCC plugins

2021-07-16 Thread Michael Olbrich
On Fri, Jul 16, 2021 at 02:11:52PM +0200, Alexander Dahl wrote:
> On Fri, Jul 16, 2021 at 01:32:29PM +0200, Guillermo Rodriguez Garcia wrote:
> > I notice that the kernelconfig files changes depending on the host gcc
> > version; in particular depending on supported gcc plugins.
> > 
> > However this does not seem to make much sense -- the kernel will not be
> > built using the host gcc; it will be built using the cross compiler from
> > the toolchain.
> > 
> > Is it possible to avoid this?
> 
> IIRC this was addressed several times in recent ptxdist versions:
> 
> - ptxdist-2021.04.0-14-g533f7709f ("kernel/kernel-template: set 
> PTXDIST_NO_GCC_PLUGINS=1 in _MAKE_ENV as well")
> - ptxdist-2021.03.0-69-g7a90f622f ("template: kernel: fix disabling gcc 
> plugins for >= v5.11")
> - ptxdist-2021.03.0-33-g114fecbd4 ("kernel: really fix disabling gcc plugins 
> for >= v5.11)
> - ptxdist-2021.02.0-41-gd57abb428 ("kernel: fix disabling gcc plugins for >= 
> v5.11")
> 
> … and maybe more?

This started long before that:

ptxdist-2018.11.0-107-gc065184961ab ("kernel: add workaround to keep 
kernelconfigs stable")

Some more details on what happens here:

The kernel can use gcc plugins to do some tricks while building the kernel.
These plugins are built with the host gcc so at some point (v4.19) a check
was introduced to see if it's actually possible to build the plugins.
If the check passes, then a kconfig symbol is set to 'y' and you can enable
the plugins available for your current target architecture.

This check depends on the host compiler and related stuff, so sometimes the
config changes.
To avoid this, I tries to do some magic to force the check to fail all the
time. Unfortunately this check changed multiple times, so I had to change
PTXdist again because the check stopped failing...

Michael

-- 
Pengutronix e.K.   | |
Steuerwalder Str. 21   | http://www.pengutronix.de/  |
31137 Hildesheim, Germany  | Phone: +49-5121-206917-0|
Amtsgericht Hildesheim, HRA 2686   | Fax:   +49-5121-206917- |

___
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to 
ptxdist-requ...@pengutronix.de


Re: [ptxdist] [PATCH v2 3/4] python3-pysnmp: new package

2021-07-16 Thread Lars Pedersen
Hi. Thanks for the reply

On Fri, 16 Jul 2021 at 14:41, Michael Olbrich  wrote:
>
> On Mon, Jul 12, 2021 at 01:09:09PM +0200, Lars Pedersen wrote:
> > Signed-off-by: Lars Pedersen 
> > ---
> > Changes since v1:
> >  - Updated LICENSE field to BSD-2-Clause
> >
> >  rules/python3-pysnmp.in   | 13 ++
> >  rules/python3-pysnmp.make | 54 +++
> >  2 files changed, 67 insertions(+)
> >  create mode 100644 rules/python3-pysnmp.in
> >  create mode 100644 rules/python3-pysnmp.make
> >
> > diff --git a/rules/python3-pysnmp.in b/rules/python3-pysnmp.in
> > new file mode 100644
> > index 0..09e9b2b0a
> > --- /dev/null
> > +++ b/rules/python3-pysnmp.in
> > @@ -0,0 +1,13 @@
> > +## SECTION=python3
> > +
> > +config PYTHON3_PYSNMP
> > + bool
> > + prompt "pysnmp"
> > + select PYTHON3
> > + select HOST_PYTHON3_SETUPTOOLS
> > + select PYTHON3_PLY
> > + select PYTHON3_PYASN1
> > + select PYTHON3_PYCRYPTODOMEX
> > + select PYTHON3_PYSMI
> > + help
> > +   pySNMP is a cross-platform, pure-Python SNMP engine implementation.
> > diff --git a/rules/python3-pysnmp.make b/rules/python3-pysnmp.make
> > new file mode 100644
> > index 0..9eb101b9f
> > --- /dev/null
> > +++ b/rules/python3-pysnmp.make
> > @@ -0,0 +1,54 @@
> > +# -*-makefile-*-
> > +#
> > +# Copyright (C) 2021 by Lars Pedersen 
> > +#
> > +# For further information about the PTXdist project and license conditions
> > +# see the README file.
> > +#
> > +
> > +#
> > +# We provide this package
> > +#
> > +PACKAGES-$(PTXCONF_PYTHON3_PYSNMP) += python3-pysnmp
> > +
> > +#
> > +# Paths and names
> > +#
> > +PYTHON3_PYSNMP_VERSION   := 4.4.12
> > +PYTHON3_PYSNMP_MD5   := 880259daf6e2cb322e938c818276
> > +PYTHON3_PYSNMP   := pysnmp-$(PYTHON3_PYSNMP_VERSION)
> > +PYTHON3_PYSNMP_SUFFIX:= tar.gz
> > +PYTHON3_PYSNMP_URL   := $(call ptx/mirror-pypi, pysnmp, 
> > $(PYTHON3_PYSNMP).$(PYTHON3_PYSNMP_SUFFIX))
> > +PYTHON3_PYSNMP_SOURCE:= 
> > $(SRCDIR)/$(PYTHON3_PYSNMP).$(PYTHON3_PYSNMP_SUFFIX)
> > +PYTHON3_PYSNMP_DIR   := $(BUILDDIR)/$(PYTHON3_PYSNMP)
> > +PYTHON3_PYSNMP_LICENSE   := BSD-2-Clause
> > +PYTHON3_PYSNMP_LICENSE_FILES := \
> > + file://LICENSE.rst;md5=b15d29f500f748d1c2a15709769090a8
> > +
> > +# 
> > 
> > +# Prepare
> > +# 
> > 
> > +
> > +PYTHON3_PYSNMP_CONF_TOOL := python3
> > +
> > +# 
> > 
> > +# Target-Install
> > +# 
> > 
> > +
> > +$(STATEDIR)/python3-pysnmp.targetinstall:
> > + @$(call targetinfo)
> > +
> > + @$(call install_init, python3-pysnmp)
> > + @$(call install_fixup, python3-pysnmp,PRIORITY,optional)
> > + @$(call install_fixup, python3-pysnmp,SECTION,base)
> > + @$(call install_fixup, python3-pysnmp,AUTHOR,"Lars Pedersen 
> > ")
> > + @$(call install_fixup, python3-pysnmp,DESCRIPTION,missing)
> > +
> > + @$(call install_glob,python3-pysnmp, 0, 0, -, \
> > + /usr/lib/python$(PYTHON3_MAJORMINOR)/site-packages,, *.pyc)
>
> That's the strange one. Why skip all *.pyc? I can do a fixup if this
> should just be *.py instead.

Yes now I remember.  I couldn't get the pyc files to work on the
device and somehow the py files did. After a few hours of debugging I
gave up.

\Lars Pedersen

>
> Michael
>
> > +
> > + @$(call install_finish, python3-pysnmp)
> > +
> > + @$(call touch)
> > +
> > +# vim: syntax=make
> > --
> > 2.31.1
> >
> >
> > ___
> > ptxdist mailing list
> > ptxdist@pengutronix.de
> > To unsubscribe, send a mail with subject "unsubscribe" to 
> > ptxdist-requ...@pengutronix.de
> >
>
> --
> Pengutronix e.K.   | |
> Steuerwalder Str. 21   | http://www.pengutronix.de/  |
> 31137 Hildesheim, Germany  | Phone: +49-5121-206917-0|
> Amtsgericht Hildesheim, HRA 2686   | Fax:   +49-5121-206917- |

___
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to 
ptxdist-requ...@pengutronix.de


Re: [ptxdist] Kernel GCC plugins

2021-07-16 Thread Guillermo Rodriguez Garcia
Hello,

El viernes, 16 de julio de 2021, Alexander Dahl  escribió:

> Hei hei,
>
> On Fri, Jul 16, 2021 at 01:32:29PM +0200, Guillermo Rodriguez Garcia wrote:
> > I notice that the kernelconfig files changes depending on the host gcc
> > version; in particular depending on supported gcc plugins.
> >
> > However this does not seem to make much sense -- the kernel will not be
> > built using the host gcc; it will be built using the cross compiler from
> > the toolchain.
> >
> > Is it possible to avoid this?
>
> IIRC this was addressed several times in recent ptxdist versions:
>
> - ptxdist-2021.04.0-14-g533f7709f ("kernel/kernel-template: set
> PTXDIST_NO_GCC_PLUGINS=1 in _MAKE_ENV as well")
> - ptxdist-2021.03.0-69-g7a90f622f ("template: kernel: fix disabling gcc
> plugins for >= v5.11")
> - ptxdist-2021.03.0-33-g114fecbd4 ("kernel: really fix disabling gcc
> plugins for >= v5.11)
> - ptxdist-2021.02.0-41-gd57abb428 ("kernel: fix disabling gcc plugins for
> >= v5.11")
>
> … and maybe more?
>
> Or is yours another problem?


Do I need to do something special for this to work?

I’m on ptxdist 2021.07.0 so the above fixes should be merged, yet I am
still having the problem ..

Guillermo


-- 
Guillermo Rodriguez Garcia
guille.rodrig...@gmail.com
___
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to 
ptxdist-requ...@pengutronix.de


[ptxdist] [PATCH] rules/qemu: Add new package.

2021-07-16 Thread Christian Melki
Work-in-progress. Add target-qemu package.
Usecases are among others:
Higher isolation (security) and target emulation (software longevity).

Signed-off-by: Christian Melki 
---
 rules/qemu.in   |  51 +
 rules/qemu.make | 274 
 2 files changed, 325 insertions(+)
 create mode 100644 rules/qemu.in
 create mode 100644 rules/qemu.make

diff --git a/rules/qemu.in b/rules/qemu.in
new file mode 100644
index 0..d627f7a79
--- /dev/null
+++ b/rules/qemu.in
@@ -0,0 +1,51 @@
+## SECTION=emulators
+
+menuconfig QEMU
+   tristate
+   prompt "qemu  "
+   select HOST_MESON
+   select HOST_NINJA
+   select HOST_SYSTEM_PYTHON3
+   select GLIB
+   select LIBCAP_NG
+   select ZLIB
+   select LIBUSB   if QEMU_SYS
+   select PIXMAN   if QEMU_SYS
+   help
+ QEMU is a generic and open source machine emulator and
+ virtualizer.  
+
+if QEMU
+
+config QEMU_TARGETS
+string
+   prompt "QEMU targets"
+   default "i386 x86_64 arm aarch64"
+   help
+ The list of QEMU user and system targets you want to build.
+ Only use the prefixes.
+
+config QEMU_FDT
+   bool
+   prompt "Enable Device Tree generation."
+   default y
+   help
+ Say y to let QEMU construct FDTs and pass them
+to the VMs.
+
+config QEMU_TOOLS
+   bool
+   prompt "Enable tools"
+   default y
+   help
+ Say y here to include tools.
+
+config QEMU_SYS
+   bool
+   prompt "system emulation"
+
+config QEMU_USR
+   bool
+   prompt "user-space emulation"
+
+endif
diff --git a/rules/qemu.make b/rules/qemu.make
new file mode 100644
index 0..0a276fbf6
--- /dev/null
+++ b/rules/qemu.make
@@ -0,0 +1,274 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2021 by Christian Melki 
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_QEMU) += qemu
+
+#
+# Paths and names
+#
+QEMU_VERSION:= 6.0.0
+QEMU_MD5:= cce185dc0119546e395909e8a71a75bb
+QEMU   := qemu-$(QEMU_VERSION)
+QEMU_SUFFIX:= tar.xz
+QEMU_URL   := https://download.qemu.org/$(QEMU).$(QEMU_SUFFIX)
+QEMU_SOURCE:= $(SRCDIR)/$(QEMU).$(QEMU_SUFFIX)
+QEMU_DIR   := $(BUILDDIR)/$(QEMU)
+QEMU_LICENSE   := GPL-2.0-only AND GPL-2.0-or-later AND MIT AND BSD-1-Clause 
AND BSD-2-Clause AND BSD-3-Clause
+QEMU_BUILD_OOT := YES
+
+# 
+# Prepare
+# 
+
+ifdef PTXCONF_ARCH_X86
+QEMU_ARCH   := i386
+ifdef PTXCONF_ARCH_X86_64
+QEMU_ARCH   := x86_64
+endif
+endif
+ifdef PTXCONF_ARCH_ARM
+QEMU_ARCH   := arm
+endif
+ifdef PTXCONF_ARCH_ARM64
+QEMU_ARCH   := aarch64
+endif
+
+#
+# autoconf
+#
+
+QEMU_MAKE_OPT  := V=$(filter 1,$(PTXDIST_VERBOSE))
+
+QEMU_SYS_TARGETS   := $(foreach target, $(call 
remove_quotes,$(PTXCONF_QEMU_TARGETS)), $(patsubst %,%-softmmu,$(target)))
+QEMU_USR_TARGETS   := $(foreach target, $(call 
remove_quotes,$(PTXCONF_QEMU_TARGETS)), $(patsubst %,%-linux-user,$(target)))
+
+QEMU_PATH := PATH=$(CROSS_PATH)
+
+QEMU_CONF_TOOL := autoconf
+# Note: not realy autoconf:
+# e.g. there is --enable-debug but not --disable-debug
+QEMU_CONF_OPT  := \
+   --prefix=/usr \
+   --target-list=" \
+   $(call ptx/ifdef, PTXCONF_QEMU_SYS,$(QEMU_SYS_TARGETS),) \
+   $(call ptx/ifdef, PTXCONF_QEMU_USR,$(QEMU_USR_TARGETS),) \
+   " \
+   --meson=meson \
+   --ninja=ninja \
+   --cross-prefix=$(CROSS_COMPILE) \
+   --disable-sanitizers \
+   --disable-tsan \
+   --disable-strip \
+   --disable-werror \
+   --enable-stack-protector \
+   --audio-drv-list= \
+   --block-drv-rw-whitelist= \
+   --block-drv-ro-whitelist= \
+   --enable-trace-backends=nop \
+   --disable-tcg-interpreter \
+   --enable-malloc-trim \
+   --with-coroutine= \
+   --tls-priority=NORMAL \
+   --disable-plugins \
+   --disable-containers \
+   --$(call ptx/endis, PTXCONF_QEMU_SYS)-system \
+   --disable-user \
+   --$(call ptx/endis, PTXCONF_QEMU_USR)-linux-user \
+   --disable-bsd-user \
+   --disable-docs \
+   --disable-guest-agent \
+   --disable-guest-agent-msi \
+   --enable-pie \
+   --disable-modules \
+   --disable-module-upgrades \
+   --disable-debug-tcg \
+   --disable-debug-info \
+   --disable-lto \
+   --disable-sparse \
+   --disable-safe-stack \
+   --disable-cfi \
+   --disable-gnutls \
+   --disable-nettle \
+   --disable-gcrypt \
+   --disable-auth-pam \
+   --disable-sdl \
+   --disable-sdl-image \
+   --disable-gtk \
+   --disable-vte \
+   --disable-curses \
+   --enable-iconv \
+  

Re: [ptxdist] [PATCH v2 3/4] python3-pysnmp: new package

2021-07-16 Thread Michael Olbrich
On Mon, Jul 12, 2021 at 01:09:09PM +0200, Lars Pedersen wrote:
> Signed-off-by: Lars Pedersen 
> ---
> Changes since v1:
>  - Updated LICENSE field to BSD-2-Clause
> 
>  rules/python3-pysnmp.in   | 13 ++
>  rules/python3-pysnmp.make | 54 +++
>  2 files changed, 67 insertions(+)
>  create mode 100644 rules/python3-pysnmp.in
>  create mode 100644 rules/python3-pysnmp.make
> 
> diff --git a/rules/python3-pysnmp.in b/rules/python3-pysnmp.in
> new file mode 100644
> index 0..09e9b2b0a
> --- /dev/null
> +++ b/rules/python3-pysnmp.in
> @@ -0,0 +1,13 @@
> +## SECTION=python3
> +
> +config PYTHON3_PYSNMP
> + bool
> + prompt "pysnmp"
> + select PYTHON3
> + select HOST_PYTHON3_SETUPTOOLS
> + select PYTHON3_PLY
> + select PYTHON3_PYASN1
> + select PYTHON3_PYCRYPTODOMEX
> + select PYTHON3_PYSMI
> + help
> +   pySNMP is a cross-platform, pure-Python SNMP engine implementation.
> diff --git a/rules/python3-pysnmp.make b/rules/python3-pysnmp.make
> new file mode 100644
> index 0..9eb101b9f
> --- /dev/null
> +++ b/rules/python3-pysnmp.make
> @@ -0,0 +1,54 @@
> +# -*-makefile-*-
> +#
> +# Copyright (C) 2021 by Lars Pedersen 
> +#
> +# For further information about the PTXdist project and license conditions
> +# see the README file.
> +#
> +
> +#
> +# We provide this package
> +#
> +PACKAGES-$(PTXCONF_PYTHON3_PYSNMP) += python3-pysnmp
> +
> +#
> +# Paths and names
> +#
> +PYTHON3_PYSNMP_VERSION   := 4.4.12
> +PYTHON3_PYSNMP_MD5   := 880259daf6e2cb322e938c818276
> +PYTHON3_PYSNMP   := pysnmp-$(PYTHON3_PYSNMP_VERSION)
> +PYTHON3_PYSNMP_SUFFIX:= tar.gz
> +PYTHON3_PYSNMP_URL   := $(call ptx/mirror-pypi, pysnmp, 
> $(PYTHON3_PYSNMP).$(PYTHON3_PYSNMP_SUFFIX))
> +PYTHON3_PYSNMP_SOURCE:= 
> $(SRCDIR)/$(PYTHON3_PYSNMP).$(PYTHON3_PYSNMP_SUFFIX)
> +PYTHON3_PYSNMP_DIR   := $(BUILDDIR)/$(PYTHON3_PYSNMP)
> +PYTHON3_PYSNMP_LICENSE   := BSD-2-Clause
> +PYTHON3_PYSNMP_LICENSE_FILES := \
> + file://LICENSE.rst;md5=b15d29f500f748d1c2a15709769090a8
> +
> +# 
> 
> +# Prepare
> +# 
> 
> +
> +PYTHON3_PYSNMP_CONF_TOOL := python3
> +
> +# 
> 
> +# Target-Install
> +# 
> 
> +
> +$(STATEDIR)/python3-pysnmp.targetinstall:
> + @$(call targetinfo)
> +
> + @$(call install_init, python3-pysnmp)
> + @$(call install_fixup, python3-pysnmp,PRIORITY,optional)
> + @$(call install_fixup, python3-pysnmp,SECTION,base)
> + @$(call install_fixup, python3-pysnmp,AUTHOR,"Lars Pedersen 
> ")
> + @$(call install_fixup, python3-pysnmp,DESCRIPTION,missing)
> +
> + @$(call install_glob,python3-pysnmp, 0, 0, -, \
> + /usr/lib/python$(PYTHON3_MAJORMINOR)/site-packages,, *.pyc)

That's the strange one. Why skip all *.pyc? I can do a fixup if this
should just be *.py instead.

Michael

> +
> + @$(call install_finish, python3-pysnmp)
> +
> + @$(call touch)
> +
> +# vim: syntax=make
> -- 
> 2.31.1
> 
> 
> ___
> ptxdist mailing list
> ptxdist@pengutronix.de
> To unsubscribe, send a mail with subject "unsubscribe" to 
> ptxdist-requ...@pengutronix.de
> 

-- 
Pengutronix e.K.   | |
Steuerwalder Str. 21   | http://www.pengutronix.de/  |
31137 Hildesheim, Germany  | Phone: +49-5121-206917-0|
Amtsgericht Hildesheim, HRA 2686   | Fax:   +49-5121-206917- |

___
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to 
ptxdist-requ...@pengutronix.de


Re: [ptxdist] [PATCH v2 2/4] python3-pysmi: new package

2021-07-16 Thread Michael Olbrich
On Fri, Jul 16, 2021 at 02:24:41PM +0200, Lars Pedersen wrote:
> Hi.
> 
> On Fri, 16 Jul 2021 at 12:23, Michael Olbrich  
> wrote:
> >
> > On Mon, Jul 12, 2021 at 01:09:08PM +0200, Lars Pedersen wrote:
> > > Signed-off-by: Lars Pedersen 
> > > ---
> > > Changes since v1:
> > >  - Updated LICENSE field to BSD-2-Clause
> > >
> > >  rules/python3-pysmi.in   |  9 +++
> > >  rules/python3-pysmi.make | 54 
> > >  2 files changed, 63 insertions(+)
> > >  create mode 100644 rules/python3-pysmi.in
> > >  create mode 100644 rules/python3-pysmi.make
> > >
> > > diff --git a/rules/python3-pysmi.in b/rules/python3-pysmi.in
> > > new file mode 100644
> > > index 0..a02d1b62d
> > > --- /dev/null
> > > +++ b/rules/python3-pysmi.in
> > > @@ -0,0 +1,9 @@
> > > +## SECTION=python3
> > > +
> > > +config PYTHON3_PYSMI
> > > + tristate
> > > + select PYTHON3
> > > + select HOST_PYTHON3_SETUPTOOLS
> > > + prompt "pysmi"
> > > + help
> > > +   A pure-Python implementation of SNMP/SMI MIB parsing and 
> > > conversion library.
> > > diff --git a/rules/python3-pysmi.make b/rules/python3-pysmi.make
> > > new file mode 100644
> > > index 0..67448e2f7
> > > --- /dev/null
> > > +++ b/rules/python3-pysmi.make
> > > @@ -0,0 +1,54 @@
> > > +# -*-makefile-*-
> > > +#
> > > +# Copyright (C) 2021 by Lars Pedersen 
> > > +#
> > > +# For further information about the PTXdist project and license 
> > > conditions
> > > +# see the README file.
> > > +#
> > > +
> > > +#
> > > +# We provide this package
> > > +#
> > > +PACKAGES-$(PTXCONF_PYTHON3_PYSMI) += python3-pysmi
> > > +
> > > +#
> > > +# Paths and names
> > > +#
> > > +PYTHON3_PYSMI_VERSION:= 0.3.4
> > > +PYTHON3_PYSMI_MD5:= 10a9dd140ad512eed9f37344df83ce9d
> > > +PYTHON3_PYSMI:= pysmi-$(PYTHON3_PYSMI_VERSION)
> > > +PYTHON3_PYSMI_SUFFIX := tar.gz
> > > +PYTHON3_PYSMI_URL:= $(call ptx/mirror-pypi, pysmi, 
> > > $(PYTHON3_PYSMI).$(PYTHON3_PYSMI_SUFFIX))
> > > +PYTHON3_PYSMI_SOURCE := 
> > > $(SRCDIR)/$(PYTHON3_PYSMI).$(PYTHON3_PYSMI_SUFFIX)
> > > +PYTHON3_PYSMI_DIR:= $(BUILDDIR)/$(PYTHON3_PYSMI)
> > > +PYTHON3_PYSMI_LICENSE:= BSD-2-Clause
> > > +PYTHON3_PYSMI_LICENSE_FILES := \
> > > + file://LICENSE.rst;md5=a088b5c72b59d51a5368ad3b18e219bf
> > > +
> > > +# 
> > > 
> > > +# Prepare
> > > +# 
> > > 
> > > +
> > > +PYTHON3_PYSMI_CONF_TOOL  := python3
> > > +
> > > +# 
> > > 
> > > +# Target-Install
> > > +# 
> > > 
> > > +
> > > +$(STATEDIR)/python3-pysmi.targetinstall:
> > > + @$(call targetinfo)
> > > +
> > > + @$(call install_init, python3-pysmi)
> > > + @$(call install_fixup, python3-pysmi,PRIORITY,optional)
> > > + @$(call install_fixup, python3-pysmi,SECTION,base)
> > > + @$(call install_fixup, python3-pysmi,AUTHOR,"Lars Pedersen 
> > > ")
> > > + @$(call install_fixup, python3-pysmi,DESCRIPTION,missing)
> > > +
> > > + @$(call install_glob, python3-pysmi, 0, 0, -, \
> > > + $(PYTHON3_SITEPACKAGES),, *.py)
> >
> > Why install the *.py files and not *.pyc?
> 
> The rule should install everything except *.py. For me it looks like
> the *.py is in the no glob section as it should.

Sorry, I replied to the wrong patch...

Michael

-- 
Pengutronix e.K.   | |
Steuerwalder Str. 21   | http://www.pengutronix.de/  |
31137 Hildesheim, Germany  | Phone: +49-5121-206917-0|
Amtsgericht Hildesheim, HRA 2686   | Fax:   +49-5121-206917- |

___
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to 
ptxdist-requ...@pengutronix.de


Re: [ptxdist] [PATCH v2 2/4] python3-pysmi: new package

2021-07-16 Thread Lars Pedersen
Hi.

On Fri, 16 Jul 2021 at 12:23, Michael Olbrich  wrote:
>
> On Mon, Jul 12, 2021 at 01:09:08PM +0200, Lars Pedersen wrote:
> > Signed-off-by: Lars Pedersen 
> > ---
> > Changes since v1:
> >  - Updated LICENSE field to BSD-2-Clause
> >
> >  rules/python3-pysmi.in   |  9 +++
> >  rules/python3-pysmi.make | 54 
> >  2 files changed, 63 insertions(+)
> >  create mode 100644 rules/python3-pysmi.in
> >  create mode 100644 rules/python3-pysmi.make
> >
> > diff --git a/rules/python3-pysmi.in b/rules/python3-pysmi.in
> > new file mode 100644
> > index 0..a02d1b62d
> > --- /dev/null
> > +++ b/rules/python3-pysmi.in
> > @@ -0,0 +1,9 @@
> > +## SECTION=python3
> > +
> > +config PYTHON3_PYSMI
> > + tristate
> > + select PYTHON3
> > + select HOST_PYTHON3_SETUPTOOLS
> > + prompt "pysmi"
> > + help
> > +   A pure-Python implementation of SNMP/SMI MIB parsing and conversion 
> > library.
> > diff --git a/rules/python3-pysmi.make b/rules/python3-pysmi.make
> > new file mode 100644
> > index 0..67448e2f7
> > --- /dev/null
> > +++ b/rules/python3-pysmi.make
> > @@ -0,0 +1,54 @@
> > +# -*-makefile-*-
> > +#
> > +# Copyright (C) 2021 by Lars Pedersen 
> > +#
> > +# For further information about the PTXdist project and license conditions
> > +# see the README file.
> > +#
> > +
> > +#
> > +# We provide this package
> > +#
> > +PACKAGES-$(PTXCONF_PYTHON3_PYSMI) += python3-pysmi
> > +
> > +#
> > +# Paths and names
> > +#
> > +PYTHON3_PYSMI_VERSION:= 0.3.4
> > +PYTHON3_PYSMI_MD5:= 10a9dd140ad512eed9f37344df83ce9d
> > +PYTHON3_PYSMI:= pysmi-$(PYTHON3_PYSMI_VERSION)
> > +PYTHON3_PYSMI_SUFFIX := tar.gz
> > +PYTHON3_PYSMI_URL:= $(call ptx/mirror-pypi, pysmi, 
> > $(PYTHON3_PYSMI).$(PYTHON3_PYSMI_SUFFIX))
> > +PYTHON3_PYSMI_SOURCE := $(SRCDIR)/$(PYTHON3_PYSMI).$(PYTHON3_PYSMI_SUFFIX)
> > +PYTHON3_PYSMI_DIR:= $(BUILDDIR)/$(PYTHON3_PYSMI)
> > +PYTHON3_PYSMI_LICENSE:= BSD-2-Clause
> > +PYTHON3_PYSMI_LICENSE_FILES := \
> > + file://LICENSE.rst;md5=a088b5c72b59d51a5368ad3b18e219bf
> > +
> > +# 
> > 
> > +# Prepare
> > +# 
> > 
> > +
> > +PYTHON3_PYSMI_CONF_TOOL  := python3
> > +
> > +# 
> > 
> > +# Target-Install
> > +# 
> > 
> > +
> > +$(STATEDIR)/python3-pysmi.targetinstall:
> > + @$(call targetinfo)
> > +
> > + @$(call install_init, python3-pysmi)
> > + @$(call install_fixup, python3-pysmi,PRIORITY,optional)
> > + @$(call install_fixup, python3-pysmi,SECTION,base)
> > + @$(call install_fixup, python3-pysmi,AUTHOR,"Lars Pedersen 
> > ")
> > + @$(call install_fixup, python3-pysmi,DESCRIPTION,missing)
> > +
> > + @$(call install_glob, python3-pysmi, 0, 0, -, \
> > + $(PYTHON3_SITEPACKAGES),, *.py)
>
> Why install the *.py files and not *.pyc?

The rule should install everything except *.py. For me it looks like
the *.py is in the no glob section as it should.

/Lars Pedersen.

>
> Michael
>
> > +
> > + @$(call install_finish, python3-pysmi)
> > +
> > + @$(call touch)
> > +
> > +# vim: syntax=make
> > --
> > 2.31.1
> >
> >
> > ___
> > ptxdist mailing list
> > ptxdist@pengutronix.de
> > To unsubscribe, send a mail with subject "unsubscribe" to 
> > ptxdist-requ...@pengutronix.de
> >
>
> --
> Pengutronix e.K.   | |
> Steuerwalder Str. 21   | http://www.pengutronix.de/  |
> 31137 Hildesheim, Germany  | Phone: +49-5121-206917-0|
> Amtsgericht Hildesheim, HRA 2686   | Fax:   +49-5121-206917- |

___
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to 
ptxdist-requ...@pengutronix.de


Re: [ptxdist] Kernel GCC plugins

2021-07-16 Thread Alexander Dahl
Hei hei,

On Fri, Jul 16, 2021 at 01:32:29PM +0200, Guillermo Rodriguez Garcia wrote:
> I notice that the kernelconfig files changes depending on the host gcc
> version; in particular depending on supported gcc plugins.
> 
> However this does not seem to make much sense -- the kernel will not be
> built using the host gcc; it will be built using the cross compiler from
> the toolchain.
> 
> Is it possible to avoid this?

IIRC this was addressed several times in recent ptxdist versions:

- ptxdist-2021.04.0-14-g533f7709f ("kernel/kernel-template: set 
PTXDIST_NO_GCC_PLUGINS=1 in _MAKE_ENV as well")
- ptxdist-2021.03.0-69-g7a90f622f ("template: kernel: fix disabling gcc plugins 
for >= v5.11")
- ptxdist-2021.03.0-33-g114fecbd4 ("kernel: really fix disabling gcc plugins 
for >= v5.11)
- ptxdist-2021.02.0-41-gd57abb428 ("kernel: fix disabling gcc plugins for >= 
v5.11")

… and maybe more?

Or is yours another problem?

Greets
Alex

-- 
/"\ ASCII RIBBON | »With the first link, the chain is forged. The first
\ / CAMPAIGN | speech censured, the first thought forbidden, the
 X  AGAINST  | first freedom denied, chains us all irrevocably.«
/ \ HTML MAIL| (Jean-Luc Picard, quoting Judge Aaron Satie)


signature.asc
Description: PGP signature
___
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to 
ptxdist-requ...@pengutronix.de


Re: [ptxdist] [PATCH v2 6/7] ptxd_lib_imx_hab: fix indentation

2021-07-16 Thread Marc Kleine-Budde
On 28.06.2021 08:42:13, Michael Olbrich wrote:
> On Mon, Jun 28, 2021 at 01:11:20AM +0200, Roland Hieber wrote:
> > Be uniform with bin/ptxdist, indent with one tab instead of mixed tabs
> > and spaces.
> 
> No. Everything is scripts is indented this way: Indention is 4 Spaces
> tabwidth is 8 and tabs are not expanded. Blame Marc he started it this way
> :-).

It's emacs default settings for scripts :)

Marc

-- 
Pengutronix e.K. | Marc Kleine-Budde   |
Embedded Linux   | https://www.pengutronix.de  |
Vertretung West/Dortmund | Phone: +49-231-2826-924 |
Amtsgericht Hildesheim, HRA 2686 | Fax:   +49-5121-206917- |


signature.asc
Description: PGP signature
___
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to 
ptxdist-requ...@pengutronix.de


[ptxdist] Kernel GCC plugins

2021-07-16 Thread Guillermo Rodriguez Garcia
Hi all,

I notice that the kernelconfig files changes depending on the host gcc
version; in particular depending on supported gcc plugins.

However this does not seem to make much sense -- the kernel will not be
built using the host gcc; it will be built using the cross compiler from
the toolchain.

Is it possible to avoid this?

BR,

Guillermo Rodriguez Garcia
guille.rodrig...@gmail.com
___
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to 
ptxdist-requ...@pengutronix.de


[ptxdist] [PATCH] rules/qemu: Add new package.

2021-07-16 Thread Christian Melki
Work-in-progress. Add target-qemu package.
Usecases are among others:
Higher isolation (security) and target emulation (software longevity).

Signed-off-by: Christian Melki 
---
 rules/qemu.in   |  51 +
 rules/qemu.make | 274 
 2 files changed, 325 insertions(+)
 create mode 100644 rules/qemu.in
 create mode 100644 rules/qemu.make

diff --git a/rules/qemu.in b/rules/qemu.in
new file mode 100644
index 0..d627f7a79
--- /dev/null
+++ b/rules/qemu.in
@@ -0,0 +1,51 @@
+## SECTION=emulators
+
+menuconfig QEMU
+   tristate
+   prompt "qemu  "
+   select HOST_MESON
+   select HOST_NINJA
+   select HOST_SYSTEM_PYTHON3
+   select GLIB
+   select LIBCAP_NG
+   select ZLIB
+   select LIBUSB   if QEMU_SYS
+   select PIXMAN   if QEMU_SYS
+   help
+ QEMU is a generic and open source machine emulator and
+ virtualizer.  
+
+if QEMU
+
+config QEMU_TARGETS
+string
+   prompt "QEMU targets"
+   default "i386 x86_64 arm aarch64"
+   help
+ The list of QEMU user and system targets you want to build.
+ Only use the prefixes.
+
+config QEMU_FDT
+   bool
+   prompt "Enable Device Tree generation."
+   default y
+   help
+ Say y to let QEMU construct FDTs and pass them
+to the VMs.
+
+config QEMU_TOOLS
+   bool
+   prompt "Enable tools"
+   default y
+   help
+ Say y here to include tools.
+
+config QEMU_SYS
+   bool
+   prompt "system emulation"
+
+config QEMU_USR
+   bool
+   prompt "user-space emulation"
+
+endif
diff --git a/rules/qemu.make b/rules/qemu.make
new file mode 100644
index 0..0a276fbf6
--- /dev/null
+++ b/rules/qemu.make
@@ -0,0 +1,274 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2021 by Christian Melki 
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_QEMU) += qemu
+
+#
+# Paths and names
+#
+QEMU_VERSION:= 6.0.0
+QEMU_MD5:= cce185dc0119546e395909e8a71a75bb
+QEMU   := qemu-$(QEMU_VERSION)
+QEMU_SUFFIX:= tar.xz
+QEMU_URL   := https://download.qemu.org/$(QEMU).$(QEMU_SUFFIX)
+QEMU_SOURCE:= $(SRCDIR)/$(QEMU).$(QEMU_SUFFIX)
+QEMU_DIR   := $(BUILDDIR)/$(QEMU)
+QEMU_LICENSE   := GPL-2.0-only AND GPL-2.0-or-later AND MIT AND BSD-1-Clause 
AND BSD-2-Clause AND BSD-3-Clause
+QEMU_BUILD_OOT := YES
+
+# 
+# Prepare
+# 
+
+ifdef PTXCONF_ARCH_X86
+QEMU_ARCH   := i386
+ifdef PTXCONF_ARCH_X86_64
+QEMU_ARCH   := x86_64
+endif
+endif
+ifdef PTXCONF_ARCH_ARM
+QEMU_ARCH   := arm
+endif
+ifdef PTXCONF_ARCH_ARM64
+QEMU_ARCH   := aarch64
+endif
+
+#
+# autoconf
+#
+
+QEMU_MAKE_OPT  := V=$(filter 1,$(PTXDIST_VERBOSE))
+
+QEMU_SYS_TARGETS   := $(foreach target, $(call 
remove_quotes,$(PTXCONF_QEMU_TARGETS)), $(patsubst %,%-softmmu,$(target)))
+QEMU_USR_TARGETS   := $(foreach target, $(call 
remove_quotes,$(PTXCONF_QEMU_TARGETS)), $(patsubst %,%-linux-user,$(target)))
+
+QEMU_PATH := PATH=$(CROSS_PATH)
+
+QEMU_CONF_TOOL := autoconf
+# Note: not realy autoconf:
+# e.g. there is --enable-debug but not --disable-debug
+QEMU_CONF_OPT  := \
+   --prefix=/usr \
+   --target-list=" \
+   $(call ptx/ifdef, PTXCONF_QEMU_SYS,$(QEMU_SYS_TARGETS),) \
+   $(call ptx/ifdef, PTXCONF_QEMU_USR,$(QEMU_USR_TARGETS),) \
+   " \
+   --meson=meson \
+   --ninja=ninja \
+   --cross-prefix=$(CROSS_COMPILE) \
+   --disable-sanitizers \
+   --disable-tsan \
+   --disable-strip \
+   --disable-werror \
+   --enable-stack-protector \
+   --audio-drv-list= \
+   --block-drv-rw-whitelist= \
+   --block-drv-ro-whitelist= \
+   --enable-trace-backends=nop \
+   --disable-tcg-interpreter \
+   --enable-malloc-trim \
+   --with-coroutine= \
+   --tls-priority=NORMAL \
+   --disable-plugins \
+   --disable-containers \
+   --$(call ptx/endis, PTXCONF_QEMU_SYS)-system \
+   --disable-user \
+   --$(call ptx/endis, PTXCONF_QEMU_USR)-linux-user \
+   --disable-bsd-user \
+   --disable-docs \
+   --disable-guest-agent \
+   --disable-guest-agent-msi \
+   --enable-pie \
+   --disable-modules \
+   --disable-module-upgrades \
+   --disable-debug-tcg \
+   --disable-debug-info \
+   --disable-lto \
+   --disable-sparse \
+   --disable-safe-stack \
+   --disable-cfi \
+   --disable-gnutls \
+   --disable-nettle \
+   --disable-gcrypt \
+   --disable-auth-pam \
+   --disable-sdl \
+   --disable-sdl-image \
+   --disable-gtk \
+   --disable-vte \
+   --disable-curses \
+   --enable-iconv \
+  

[ptxdist] [PATCH] rules/Kconfig: Add new section, emulators.

2021-07-16 Thread Christian Melki
As CPUs get more powerful, host emulators / virtualization engines become
more plausible as target software. Add new section.

Signed-off-by: Christian Melki 
---
 rules/Kconfig  | 4 
 rules/emulators.in | 7 +++
 2 files changed, 11 insertions(+)
 create mode 100644 rules/emulators.in

diff --git a/rules/Kconfig b/rules/Kconfig
index de3156c25..1e1f5ecf3 100644
--- a/rules/Kconfig
+++ b/rules/Kconfig
@@ -69,6 +69,10 @@ menu "Editors   "
 source "generated/editors.in"
 endmenu
 
+menu "Emulators "
+source "generated/emulators.in"
+endmenu
+
 menu "System Libraries  "
 source "generated/system_libraries.in"
 endmenu
diff --git a/rules/emulators.in b/rules/emulators.in
new file mode 100644
index 0..6ce7cfaa4
--- /dev/null
+++ b/rules/emulators.in
@@ -0,0 +1,7 @@
+## SECTION=emulators
+
+#
+# This file does only exist to create a defined entry in the "emulators"
+# section, so that the toplevel Kconfig can include generated/emulators.in
+# even if no package is in that category.
+#
-- 
2.32.0


___
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to 
ptxdist-requ...@pengutronix.de


Re: [ptxdist] [PATCH v2 2/4] python3-pysmi: new package

2021-07-16 Thread Michael Olbrich
On Mon, Jul 12, 2021 at 01:09:08PM +0200, Lars Pedersen wrote:
> Signed-off-by: Lars Pedersen 
> ---
> Changes since v1:
>  - Updated LICENSE field to BSD-2-Clause
> 
>  rules/python3-pysmi.in   |  9 +++
>  rules/python3-pysmi.make | 54 
>  2 files changed, 63 insertions(+)
>  create mode 100644 rules/python3-pysmi.in
>  create mode 100644 rules/python3-pysmi.make
> 
> diff --git a/rules/python3-pysmi.in b/rules/python3-pysmi.in
> new file mode 100644
> index 0..a02d1b62d
> --- /dev/null
> +++ b/rules/python3-pysmi.in
> @@ -0,0 +1,9 @@
> +## SECTION=python3
> +
> +config PYTHON3_PYSMI
> + tristate
> + select PYTHON3
> + select HOST_PYTHON3_SETUPTOOLS
> + prompt "pysmi"
> + help
> +   A pure-Python implementation of SNMP/SMI MIB parsing and conversion 
> library.
> diff --git a/rules/python3-pysmi.make b/rules/python3-pysmi.make
> new file mode 100644
> index 0..67448e2f7
> --- /dev/null
> +++ b/rules/python3-pysmi.make
> @@ -0,0 +1,54 @@
> +# -*-makefile-*-
> +#
> +# Copyright (C) 2021 by Lars Pedersen 
> +#
> +# For further information about the PTXdist project and license conditions
> +# see the README file.
> +#
> +
> +#
> +# We provide this package
> +#
> +PACKAGES-$(PTXCONF_PYTHON3_PYSMI) += python3-pysmi
> +
> +#
> +# Paths and names
> +#
> +PYTHON3_PYSMI_VERSION:= 0.3.4
> +PYTHON3_PYSMI_MD5:= 10a9dd140ad512eed9f37344df83ce9d
> +PYTHON3_PYSMI:= pysmi-$(PYTHON3_PYSMI_VERSION)
> +PYTHON3_PYSMI_SUFFIX := tar.gz
> +PYTHON3_PYSMI_URL:= $(call ptx/mirror-pypi, pysmi, 
> $(PYTHON3_PYSMI).$(PYTHON3_PYSMI_SUFFIX))
> +PYTHON3_PYSMI_SOURCE := $(SRCDIR)/$(PYTHON3_PYSMI).$(PYTHON3_PYSMI_SUFFIX)
> +PYTHON3_PYSMI_DIR:= $(BUILDDIR)/$(PYTHON3_PYSMI)
> +PYTHON3_PYSMI_LICENSE:= BSD-2-Clause
> +PYTHON3_PYSMI_LICENSE_FILES := \
> + file://LICENSE.rst;md5=a088b5c72b59d51a5368ad3b18e219bf
> +
> +# 
> 
> +# Prepare
> +# 
> 
> +
> +PYTHON3_PYSMI_CONF_TOOL  := python3
> +
> +# 
> 
> +# Target-Install
> +# 
> 
> +
> +$(STATEDIR)/python3-pysmi.targetinstall:
> + @$(call targetinfo)
> +
> + @$(call install_init, python3-pysmi)
> + @$(call install_fixup, python3-pysmi,PRIORITY,optional)
> + @$(call install_fixup, python3-pysmi,SECTION,base)
> + @$(call install_fixup, python3-pysmi,AUTHOR,"Lars Pedersen 
> ")
> + @$(call install_fixup, python3-pysmi,DESCRIPTION,missing)
> +
> + @$(call install_glob, python3-pysmi, 0, 0, -, \
> + $(PYTHON3_SITEPACKAGES),, *.py)

Why install the *.py files and not *.pyc?

Michael

> +
> + @$(call install_finish, python3-pysmi)
> +
> + @$(call touch)
> +
> +# vim: syntax=make
> -- 
> 2.31.1
> 
> 
> ___
> ptxdist mailing list
> ptxdist@pengutronix.de
> To unsubscribe, send a mail with subject "unsubscribe" to 
> ptxdist-requ...@pengutronix.de
> 

-- 
Pengutronix e.K.   | |
Steuerwalder Str. 21   | http://www.pengutronix.de/  |
31137 Hildesheim, Germany  | Phone: +49-5121-206917-0|
Amtsgericht Hildesheim, HRA 2686   | Fax:   +49-5121-206917- |

___
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to 
ptxdist-requ...@pengutronix.de