diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2021-03-09 15:06:35 +0100 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2021-03-09 15:06:35 +0100 |
commit | 466d55374640773584383d0b6772b5917030736a (patch) | |
tree | fba97e03cc8be4dc67d2bd1d482e660722bbd02f | |
parent | 1431ed52c9be19c4c84df9f5e24c7ad8cd2c6ff9 (diff) | |
download | ptxdist-466d55374640773584383d0b6772b5917030736a.tar.gz ptxdist-466d55374640773584383d0b6772b5917030736a.tar.xz |
talloc: new package
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r-- | config/talloc/cross-answers | 17 | ||||
-rw-r--r-- | rules/talloc.in | 8 | ||||
-rw-r--r-- | rules/talloc.make | 84 |
3 files changed, 109 insertions, 0 deletions
diff --git a/config/talloc/cross-answers b/config/talloc/cross-answers new file mode 100644 index 000000000..1b5b666e5 --- /dev/null +++ b/config/talloc/cross-answers @@ -0,0 +1,17 @@ +Checking uname sysname type: "Linux" +Checking uname machine type: "@UNAME_M@" +Checking uname release type: "@UNAME_R@" +Checking uname version type: "@UNAME_V@" +Checking simple C program: "hello world" +rpath library support: OK +-Wl,--version-script support: OK +Checking getconf LFS_CFLAGS: NO +Checking for large file support without additional flags: @HAS_64BIT@ +Checking for -D_FILE_OFFSET_BITS=64: OK +Checking correct behavior of strtoll: NO +Checking for working strptime: OK +Checking for C99 vsnprintf: "1" +Checking for HAVE_SHARED_MMAP: OK +Checking for HAVE_MREMAP: OK +Checking for HAVE_INCOHERENT_MMAP: NO +Checking for HAVE_SECURE_MKSTEMP: OK diff --git a/rules/talloc.in b/rules/talloc.in new file mode 100644 index 000000000..9a91e7458 --- /dev/null +++ b/rules/talloc.in @@ -0,0 +1,8 @@ +## SECTION=system_libraries + +config TALLOC + tristate + prompt "talloc" + select HOST_SYSTEM_PYTHON3 + help + hierarchical pool based memory allocator diff --git a/rules/talloc.make b/rules/talloc.make new file mode 100644 index 000000000..37b7da2d6 --- /dev/null +++ b/rules/talloc.make @@ -0,0 +1,84 @@ +# -*-makefile-*- +# +# Copyright (C) 2021 by Michael Olbrich <m.olbrich@pengutronix.de> +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +PACKAGES-$(PTXCONF_TALLOC) += talloc + +# +# Paths and names +# +TALLOC_VERSION := 2.3.2 +TALLOC_MD5 := 3376a86bdf9dd4abc6b8d8d645390902 +TALLOC := talloc-$(TALLOC_VERSION) +TALLOC_SUFFIX := tar.gz +TALLOC_URL := https://www.samba.org/ftp/talloc/$(TALLOC).$(TALLOC_SUFFIX) +TALLOC_SOURCE := $(SRCDIR)/$(TALLOC).$(TALLOC_SUFFIX) +TALLOC_DIR := $(BUILDDIR)/$(TALLOC) +TALLOC_LICENSE := GPL-3.0-or-later AND LGPL-3.0-or-later +# cross-compile runtime checks. Initial file generated with +# --cross-execute=$(PTXDIST_SYSROOT_CROSS)/bin/qemu-cross +TALLOC_CONFIG = $(call ptx/get-alternative, config/talloc, cross-answers) + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +TALLOC_CONF_TOOL := NO +TALLOC_CONF_OPT := \ + --without-gettext \ + --disable-python \ + --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --libdir=/usr/lib \ + --bundled-libraries=NONE \ + --disable-rpath \ + --disable-rpath-install \ + --disable-rpath-private-install \ + --pidl-developer \ + --disable-warnings-as-errors \ + --fatal-errors \ + --enable-gccdeps \ + --pedantic \ + --cross-compile \ + --cross-execute=/does/not/exist/and/triggers/exceptions \ + --cross-answers=$(TALLOC_DIR)/cross-answers + + +$(STATEDIR)/talloc.prepare: + @$(call targetinfo) + @UNAME_M=$(PTXCONF_ARCH_STRING) \ + UNAME_R=$(KERNEL_VERSION) \ + UNAME_V=$(if $(KERNEL_HEADER_VERSION),$(KERNEL_HEADER_VERSION),$(KERNEL_VERSION)) \ + HAS_64BIT=$(call ptx/ifdef,PTXCONF_ARCH_LP64,OK,NO) \ + ptxd_replace_magic $(TALLOC_CONFIG) > $(TALLOC_DIR)/cross-answers + @$(call world/execute, TALLOC, $(SYSTEMPYTHON3) ./buildtools/bin/waf configure $(TALLOC_CONF_OPT)) + @$(call touch) + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/talloc.targetinstall: + @$(call targetinfo) + + @$(call install_init, talloc) + @$(call install_fixup, talloc,PRIORITY,optional) + @$(call install_fixup, talloc,SECTION,base) + @$(call install_fixup, talloc,AUTHOR,"Michael Olbrich <m.olbrich@pengutronix.de>") + @$(call install_fixup, talloc,DESCRIPTION,missing) + + @$(call install_lib, talloc, 0, 0, 0644, libtalloc) + + @$(call install_finish, talloc) + + @$(call touch) + +# vim: syntax=make |