blob: c65f1cc211611c0e8668fe973f8b8209e2e83709 (
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
60
61
62
63
64
65
66
|
# -*-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
# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------
$(UCLIBC_CONFIG):
@echo
@echo "**************************************************************************"
@echo "**** Please generate a uclibc config with 'ptxdist menuconfig uclibc' ****"
@echo "**************************************************************************"
@echo
@echo
@exit 1
$(STATEDIR)/uclibc-headers.prepare: $(UCLIBC_CONFIG)
@$(call targetinfo)
@if [ -f $(UCLIBC_CONFIG) ]; then \
echo "Using uclibc config file: $(UCLIBC_CONFIG)"; \
install -m 644 $(UCLIBC_CONFIG) $(UCLIBC_DIR)/.config; \
else \
echo "ERROR: No such uclibc config: $(UCLIBC_CONFIG)"; \
exit 1; \
fi
cd $(UCLIBC_DIR) && yes "" | \
$(UCLIBC_PATH) $(UCLIBC_ENV) $(MAKE) \
$(UCLIBC_MAKEVARS) oldconfig
@$(call touch)
# ----------------------------------------------------------------------------
# Compile
# ----------------------------------------------------------------------------
$(STATEDIR)/uclibc-headers.compile:
@$(call targetinfo)
@$(call touch)
# ----------------------------------------------------------------------------
# Install
# ----------------------------------------------------------------------------
$(STATEDIR)/uclibc-headers.install:
@$(call targetinfo)
cd $(UCLIBC_DIR) && \
$(UCLIBC_PATH) $(UCLIBC_ENV) \
$(MAKE) $(UCLIBC_MAKEVARS) \
install_headers
@$(call touch)
# vim: syntax=make
|