1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
|
# -*-makefile-*-
#
# Copyright (C) 2016 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_LIBUNWIND) += libunwind
#
# Paths and names
#
LIBUNWIND_VERSION := 1.8.1
LIBUNWIND_MD5 := 10c96118ff30b88c9eeb6eac8e75599d
LIBUNWIND := libunwind-$(LIBUNWIND_VERSION)
LIBUNWIND_SUFFIX := tar.gz
LIBUNWIND_URL := https://github.com/libunwind/libunwind/releases/download/v$(LIBUNWIND_VERSION)/$(LIBUNWIND).$(LIBUNWIND_SUFFIX)
LIBUNWIND_SOURCE := $(SRCDIR)/$(LIBUNWIND).$(LIBUNWIND_SUFFIX)
LIBUNWIND_DIR := $(BUILDDIR)/$(LIBUNWIND)
LIBUNWIND_LICENSE := MIT
LIBUNWIND_LICENSE_FILES := \
file://COPYING;md5=2d80c8ed4062b8339b715f90fa68cc9f
# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------
#
# autoconf
#
LIBUNWIND_CONF_TOOL := autoconf
LIBUNWIND_CONF_OPT := \
$(CROSS_AUTOCONF_USR) \
--includedir=/usr/include/libunwind \
--$(call ptx/disen, PTXCONF_ARCH_PPC)-coredump \
--enable-ptrace \
--disable-nto \
--enable-setjmp \
--enable-weak-backtrace \
--enable-unwind-header \
--disable-per-thread-cache \
--disable-tests \
--disable-debug \
--disable-cxx-exceptions \
--disable-documentation \
--enable-debug-frame \
--enable-block-signals \
--enable-conservative-checks \
--disable-msabi-support \
--disable-minidebuginfo \
--enable-zlibdebuginfo \
--without-testdriver
# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------
LIBUNWIND_ARCH := $(call remove_quotes,$(PTXCONF_ARCH_STRING))
ifdef PTXCONF_ARCH_X86
ifndef PTXCONF_ARCH_X86_64
LIBUNWIND_ARCH := x86
endif
endif
ifdef PTXCONF_ARCH_PPC
LIBUNWIND_ARCH := ppc32
endif
ifdef PTXCONF_ARCH_ARM64
LIBUNWIND_ARCH := aarch64
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)
ifndef PTXCONF_ARCH_PPC
@$(call install_lib, libunwind, 0, 0, 0644, libunwind-coredump)
endif
@$(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
|