summaryrefslogtreecommitdiffstats
path: root/rules/uclibc-headers.make
blob: 9ebc29887eafe51464a3c543bfeb98d18c4f6215 (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
53
54
55
56
57
58
59
# -*-makefile-*-
#
# Copyright (C) 2006-2008 by Marc Kleine-Budde <mkl@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_UCLIBC_HEADERS) += uclibc-headers

#
# Paths and names
#
UCLIBC_HEADERS_VERSION	:= $(call remove_quotes,$(PTXCONF_UCLIBC_VERSION))
UCLIBC_HEADERS_MD5	:= $(call remove_quotes,$(PTXCONF_UCLIBC_MD5))
UCLIBC_HEADERS		:= uClibc-$(UCLIBC_HEADERS_VERSION)
UCLIBC_HEADERS_SUFFIX	:= tar.bz2
UCLIBC_HEADERS_SOURCE	:= $(SRCDIR)/$(UCLIBC_HEADERS).$(UCLIBC_HEADERS_SUFFIX)
UCLIBC_HEADERS_DIR	:= $(BUILDDIR)/uClibc-headers-$(UCLIBC_HEADERS_VERSION)
UCLIBC_HEADERS_URL	 = $(UCLIBC_URL)
UCLIBC_HEADERS_CONFIG	 = $(UCLIBC_CONFIG)
UCLIBC_HEADERS_LICENSE	:= ignore

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

UCLIBC_HEADERS_ENV = $(UCLIBC_ENV)

$(STATEDIR)/uclibc-headers.prepare: $(UCLIBC_HEADERS_CONFIG)
	@$(call targetinfo)
	@$(call world/kconfig, UCLIBC_HEADERS, oldconfig)
	@$(call touch)

# ----------------------------------------------------------------------------
# Compile
# ----------------------------------------------------------------------------

$(STATEDIR)/uclibc-headers.compile:
	@$(call targetinfo)
	@$(call touch)

# ----------------------------------------------------------------------------
# Install
# ----------------------------------------------------------------------------

UCLIBC_HEADERS_INSTALL_OPT = \
	$(UCLIBC_COMMON_OPT) \
	PREFIX=$(UCLIBC_HEADERS_PKGDIR) \
	CPU_CFLAGS=$(PTXCONF_UCLIBC_HEADERS_FAKE_CROSS) \
	CC="$(HOSTCC)" \
	install_headers

# vim: syntax=make