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) @YEAR@ by @AUTHOR@
#
# For further information about the PTXdist project and license conditions
# see the README file.
#
#
# We provide this package
#
PACKAGES-$(PTXCONF_BAREBOX_@PACKAGE@) += barebox-@package@
#
# Paths and names
#
BAREBOX_@PACKAGE@_VERSION := @VERSION@
BAREBOX_@PACKAGE@_MD5 :=
BAREBOX_@PACKAGE@ := barebox-$(BAREBOX_@PACKAGE@_VERSION)
BAREBOX_@PACKAGE@_SUFFIX := tar.bz2
BAREBOX_@PACKAGE@_DIR := $(BUILDDIR)/barebox-@package@-$(BAREBOX_@PACKAGE@_VERSION)
BAREBOX_@PACKAGE@_BUILD_DIR := $(BAREBOX_@PACKAGE@_DIR)-build
BAREBOX_@PACKAGE@_CONFIG := $(call ptx/in-platformconfigdir, barebox-@package@.config.$(BAREBOX_@PACKAGE@_VERSION))
BAREBOX_@PACKAGE@_LICENSE := GPL-2.0-only
BAREBOX_@PACKAGE@_URL := $(call barebox-url, BAREBOX_@PACKAGE@)
BAREBOX_@PACKAGE@_SOURCE := $(SRCDIR)/barebox-$(BAREBOX_@PACKAGE@_VERSION).$(BAREBOX_@PACKAGE@_SUFFIX)
BAREBOX_@PACKAGE@_BUILD_OOT := KEEP
# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------
# use host pkg-config for host tools
BAREBOX_@PACKAGE@_PATH := PATH=$(HOST_PATH)
BAREBOX_@PACKAGE@_WRAPPER_BLACKLIST := \
$(PTXDIST_LOWLEVEL_WRAPPER_BLACKLIST)
BAREBOX_@PACKAGE@_CONF_OPT := \
-C $(BAREBOX_@PACKAGE@_DIR) \
O=$(BAREBOX_@PACKAGE@_BUILD_DIR) \
$(call barebox-opts, BAREBOX_@PACKAGE@)
BAREBOX_@PACKAGE@_MAKE_OPT := $(BAREBOX_@PACKAGE@_CONF_OPT)
BAREBOX_@PACKAGE@_IMAGES := @image@
BAREBOX_@PACKAGE@_IMAGES := $(addprefix $(BAREBOX_@PACKAGE@_BUILD_DIR)/,$(BAREBOX_@PACKAGE@_IMAGES))
ifdef PTXCONF_BAREBOX_@PACKAGE@
$(BAREBOX_@PACKAGE@_CONFIG):
@echo
@echo "****************************************************************************"
@echo " Please generate a bareboxconfig with 'ptxdist menuconfig barebox-@package@'"
@echo "****************************************************************************"
@echo
@echo
@exit 1
endif
# ----------------------------------------------------------------------------
# Install
# ----------------------------------------------------------------------------
$(STATEDIR)/barebox-@package@.install:
@$(call targetinfo)
@$(call touch)
# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------
$(STATEDIR)/barebox-@package@.targetinstall:
@$(call targetinfo)
@$(foreach image, $(BAREBOX_@PACKAGE@_IMAGES), \
install -m 644 \
$(image) $(IMAGEDIR)/$(notdir $(image))-@package@;)
@$(call touch)
# ----------------------------------------------------------------------------
# Clean
# ----------------------------------------------------------------------------
$(STATEDIR)/barebox-@package@.clean:
@$(call targetinfo)
@$(call clean_pkg, BAREBOX_@PACKAGE@)
@$(foreach image, $(BAREBOX_@PACKAGE@_IMAGES), \
rm -fv $(IMAGEDIR)/$(notdir $(image))-@package@;)
# ----------------------------------------------------------------------------
# oldconfig / menuconfig
# ----------------------------------------------------------------------------
barebox-@package@_oldconfig barebox-@package@_menuconfig barebox-@package@_nconfig: $(STATEDIR)/barebox-@package@.extract
@$(call world/kconfig, BAREBOX_@PACKAGE@, $(subst barebox-@package@_,,$@))
# vim: syntax=make
|