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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
|
# -*-makefile-*-
#
# Copyright (C) @YEAR@ @AUTHOR@
#
# 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_@PACKAGE@) += @package@
ifdef PTXCONF_@PACKAGE@
ifneq ($(shell test -h $(PTXDIST_WORKSPACE)/selected_toolchain_stellaris && echo ok),ok)
$(warning *** selected_toolchain_stellaris must point to a valid stellaris toolchain)
$(error )
endif
ifneq ($(shell test -x $(PTXDIST_WORKSPACE)/selected_toolchain_stellaris/$(PTXCONF_STELLARIS_CC) && echo ok),ok)
$(warning *** $(PTXDIST_WORKSPACE)/selected_toolchain_stellaris/$(PTXCONF_STELLARIS_CC) not found)
$(error )
endif
endif
#
# Paths and names
#
@PACKAGE@_VERSION := @VERSION@
@PACKAGE@ := @package@-$(@PACKAGE@_VERSION)
@PACKAGE@_URL := file://$(PTXDIST_WORKSPACE)/local_src/$(@PACKAGE@)
@PACKAGE@_DIR := $(BUILDDIR)/$(@PACKAGE@)
@PACKAGE@_BUILD_OOT := YES
@PACKAGE@_LICENSE := unknown
# ----------------------------------------------------------------------------
# Get
# ----------------------------------------------------------------------------
# ----------------------------------------------------------------------------
# Extract
# ----------------------------------------------------------------------------
$(STATEDIR)/@package@.extract:
@$(call targetinfo)
@$(call clean, $(@PACKAGE@_DIR))
@$(call extract, @PACKAGE@)
ifdef PTXCONF_@PACKAGE@_TRUNK
cd $(@PACKAGE@_DIR) && sh autogen.sh
endif
@$(call patchin, @PACKAGE@)
@$(call touch)
# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------
@PACKAGE@_PATH := \
PATH=$(PTXDIST_WORKSPACE)/selected_toolchain_stellaris:$$PATH
#
# autoconf
#
@PACKAGE@_CONF_TOOL := autoconf
@PACKAGE@_CONF_OPT := \
--host=arm-cortexm3-eabi \
--build=i686-unknown-linux-gnu \
--with-stellaris-sdk=$(SW_EK_LM3S3748_DIR) \
--with-dfuwrap=$(SW_EK_LM3S3748_DIR)/tools/dfuwrap/dfuwrap
#$(STATEDIR)/@package@.prepare:
# @$(call targetinfo)
# @$(call world/prepare, @PACKAGE@)
# @$(call touch)
# ----------------------------------------------------------------------------
# Compile
# ----------------------------------------------------------------------------
#$(STATEDIR)/@package@.compile:
# @$(call targetinfo)
# @$(call world/compile, @PACKAGE@)
# @$(call touch)
# ----------------------------------------------------------------------------
# Install
# ----------------------------------------------------------------------------
$(STATEDIR)/@package@.install:
@$(call targetinfo)
@$(call touch)
# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------
$(STATEDIR)/@package@.targetinstall:
@$(call targetinfo)
@$(call install_init, @package@)
@$(call install_fixup, @package@, PACKAGE, @packagedash@)
@$(call install_fixup, @package@, PRIORITY, optional)
@$(call install_fixup, @package@, VERSION, $(@PACKAGE@_VERSION))
@$(call install_fixup, @package@, SECTION, base)
@$(call install_fixup, @package@, AUTHOR, "@AUTHOR@")
@$(call install_fixup, @package@, DEPENDS,)
@$(call install_fixup, @package@, DESCRIPTION, missing)
@$(call install_copy, @package@, 0, 0, 0644, \
$(@PACKAGE@_DIR)/@package@.dfu, \
/lib/firmware/@package@.dfu)
@$(call install_finish, @package@)
@$(call touch)
# ----------------------------------------------------------------------------
# Clean
# ----------------------------------------------------------------------------
@package@_clean:
rm -rf $(STATEDIR)/@package@.*
rm -rf $(PKGDIR)/@package@_*
rm -rf $(@PACKAGE@_DIR)
# vim: syntax=make
|