diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2016-10-14 15:32:50 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2016-10-20 08:27:47 +0200 |
commit | 585464b73274bb1e68f2d4f263e60c7eb26a8248 (patch) | |
tree | 1e17842b8a06e42cb434a9a0e0cba4ac448ce283 /rules/libunwind.make | |
parent | b434b5290c6748517943721027bbff66edb1d47e (diff) | |
download | ptxdist-585464b73274bb1e68f2d4f263e60c7eb26a8248.tar.gz ptxdist-585464b73274bb1e68f2d4f263e60c7eb26a8248.tar.xz |
libunwind: new package
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/libunwind.make')
-rw-r--r-- | rules/libunwind.make | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/rules/libunwind.make b/rules/libunwind.make new file mode 100644 index 000000000..55ab3df69 --- /dev/null +++ b/rules/libunwind.make @@ -0,0 +1,76 @@ +# -*-makefile-*- +# +# Copyright (C) 2016 by Michael Olbrich <m.olbrich@pengutronix.de> +# +# See CREDITS for details about who has contributed to this project. +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +PACKAGES-$(PTXCONF_LIBUNWIND) += libunwind + +# +# Paths and names +# +LIBUNWIND_VERSION := 1.1 +LIBUNWIND_MD5 := fb4ea2f6fbbe45bf032cd36e586883ce +LIBUNWIND := libunwind-$(LIBUNWIND_VERSION) +LIBUNWIND_SUFFIX := tar.gz +LIBUNWIND_URL := http://download.savannah.gnu.org/releases/libunwind/$(LIBUNWIND).$(LIBUNWIND_SUFFIX) +LIBUNWIND_SOURCE := $(SRCDIR)/$(LIBUNWIND).$(LIBUNWIND_SUFFIX) +LIBUNWIND_DIR := $(BUILDDIR)/$(LIBUNWIND) +LIBUNWIND_LICENSE := unknown + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +# +# autoconf +# +LIBUNWIND_CONF_TOOL := autoconf +LIBUNWIND_CONF_OPT := \ + $(CROSS_AUTOCONF_USR) \ + --enable-coredump \ + --disable-debug \ + --enable-debug-frame \ + --enable-block-signals \ + --enable-conservative-checks \ + --disable-msabi-support \ + --disable-minidebuginfo + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +LIBUNWIND_ARCH := $(call remove_quotes,$(PTXCONF_ARCH_STRING)) +ifdef PTXCONF_ARCH_X86 +ifndef PTXCONF_ARCH_X86_64 +LIBUNWIND_ARCH := x86 +endif +endif + +$(STATEDIR)/libunwind.targetinstall: + @$(call targetinfo) + + @$(call install_init, libunwind) + @$(call install_fixup, libunwind,PRIORITY,optional) + @$(call install_fixup, libunwind,SECTION,base) + @$(call install_fixup, libunwind,AUTHOR,"Michael Olbrich <m.olbrich@pengutronix.de>") + @$(call install_fixup, libunwind,DESCRIPTION,missing) + + @$(call install_lib, libunwind, 0, 0, 0644, libunwind) + @$(call install_lib, libunwind, 0, 0, 0644, libunwind-coredump) + @$(call install_lib, libunwind, 0, 0, 0644, libunwind-ptrace) + @$(call install_lib, libunwind, 0, 0, 0644, libunwind-setjmp) + @$(call install_lib, libunwind, 0, 0, 0644, libunwind-$(LIBUNWIND_ARCH)) + + @$(call install_finish, libunwind) + + @$(call touch) + +# vim: syntax=make |