summaryrefslogtreecommitdiffstats
path: root/rules/cross-elf2flt.make
blob: 49ca53b88c911400b36528990d9a8f38c48ce45c (plain)
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
# -*-makefile-*-
#
# Copyright (C) 2012 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
#
CROSS_PACKAGES-$(PTXCONF_CROSS_ELF2FLT) += cross-elf2flt

#
# Paths and names
#
CROSS_ELF2FLT_VERSION	:= 20161212-gbbe423fae32a
CROSS_ELF2FLT_MD5	:= 4ed84c4c71cf2bfa2d54314e75024d52
CROSS_ELF2FLT		:= elf2flt-$(CROSS_ELF2FLT_VERSION)
CROSS_ELF2FLT_SUFFIX	:= tar.gz
CROSS_ELF2FLT_URL	:= git://wh0rd.org/elf2flt.git;tag=$(CROSS_ELF2FLT_VERSION)
CROSS_ELF2FLT_SOURCE	:= $(SRCDIR)/$(CROSS_ELF2FLT).$(CROSS_ELF2FLT_SUFFIX)
CROSS_ELF2FLT_DIR	:= $(CROSS_BUILDDIR)/$(CROSS_ELF2FLT)
CROSS_ELF2FLT_LICENSE	:= GPL-2.0+
CROSS_ELF2FLT_LICENSE_FILES := \
	file://LICENSE.TXT;md5=70b24024535d82748f378e597d52b84a

# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------

CROSS_ELF2FLT_DEVPKG	:= NO

#
# autoconf
#
CROSS_ELF2FLT_CONF_TOOL	:= autoconf
# HACK: add '-lz' because libbfd.a needs it and the Makefile adds it in the wrong order
CROSS_ELF2FLT_CONF_OPT	:= \
	$(PTX_HOST_CROSS_AUTOCONF) \
	--disable-werror \
	--with-binutils-include-dir=$(CROSS_BINUTILS_DIR)/include \
	--with-binutils-build-dir=$(CROSS_BINUTILS_BUILDDIR) \
	--with-libbfd="$(CROSS_BINUTILS_BUILDDIR)/bfd/libbfd.a -lz -ldl"

CROSS_ELF2FLT_INSTALL_OPT := \
	prefix=$(PTXCONF_SYSROOT_CROSS) \
	install

# vim: syntax=make