forked from perezerah/build-webos-1
/
configure.ac
246 lines (228 loc) · 10.1 KB
/
configure.ac
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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
# Process this file with autoconf to produce a configure script.
# Copyright (c) 2008-2013 LG Electronics, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
AC_INIT(webos, 0.0)
AC_PREREQ([2.61])
AC_COPYRIGHT([Copyright (c) 2008-2013 LG Electronics, Inc.])
AC_CONFIG_SRCDIR([build-templates/mcf-status.in])
# customization
AC_MSG_CHECKING([customization])
case "$webos_customization" in
"") webos_customization_result="none" ;;
*)
webos_customization_result=$webos_customization
webos_customization_feature=":$webos_customization_result"
;;
esac
AC_SUBST([customization], [$webos_customization])
AC_SUBST([customization_feature], [$webos_customization_feature])
AC_MSG_RESULT([$webos_customization_result])
# parallel_make
AC_MSG_CHECKING([parallel_make])
m4_define([webos_default_parallel_make], [1])
AC_ARG_ENABLE([parallel-make], [AS_HELP_STRING([--enable-parallel-make=N],
maximum number of tasks for each submake of bitbake to spawn (default: "webos_default_parallel_make"))],
[],
[enable_parallel_make="webos_default_parallel_make"])
case "$enable_parallel_make" in
no|yes) enable_parallel_make=1 ;;
esac
AC_SUBST([parallel_make], [$enable_parallel_make])
AC_MSG_RESULT([$enable_parallel_make])
# bb_number_threads
AC_MSG_CHECKING([bb_number_threads])
m4_define([webos_default_bb_number_threads], [1])
AC_ARG_ENABLE([bb-number-threads], [AS_HELP_STRING([--enable-bb-number-threads=N],
maximum number of tasks for each submake of bitbake to spawn (default: "webos_default_bb_number_threads"))],
[],
[enable_bb_number_threads="webos_default_bb_number_threads"])
case "$enable_bb_number_threads" in
no|yes) enable_bb_number_threads=1 ;;
esac
AC_SUBST([bb_number_threads], [$enable_bb_number_threads])
AC_MSG_RESULT([$enable_bb_number_threads])
# premirror
AC_MSG_CHECKING([premirror])
AC_ARG_ENABLE([premirror], [AS_HELP_STRING([--enable-premirror=PREMIRROR],
set PREMIRROR (default: none, own-mirrors class will not be used))],
[if test -z "$enableval"; then
enable_premirror_assignment=""
enable_premirror_inherit=""
else
enable_premirror_assignment="SOURCE_MIRROR_URL ?= \"$enableval\""
enable_premirror_inherit="INHERIT += \"own-mirrors\""
fi
],
[ enable_premirror_assignment=""
enable_premirror_inherit=""
])
AC_SUBST([premirror_assignment], [$enable_premirror_assignment])
AC_SUBST([premirror_inherit], [$enable_premirror_inherit])
AC_MSG_RESULT([$enableval])
# sstate mirror
AC_MSG_CHECKING([sstatemirror])
AC_ARG_ENABLE([sstatemirror], [AS_HELP_STRING([--enable-sstatemirror=SSTATE_MIRROR_URL],
set SSTATE_MIRROR_URL (default: none))],
[if test -z "$enableval"; then
enable_sstatemirror_assignment=""
else
enable_sstatemirror_assignment="SSTATE_MIRRORS ?= \" \\"
for URL in $enableval; do
echo "$URL" | grep "/PATH$" && AC_MSG_ERROR([$URL already ends with '/PATH', remove that])
echo "$URL" | grep "/$" && AC_MSG_ERROR([$URL ends with '/', remove that])
enable_sstatemirror_assignment="$enable_sstatemirror_assignment
file://.* $URL/PATH \n \\"
done
enable_sstatemirror_assignment="$enable_sstatemirror_assignment
\""
fi
],
[ enable_sstatemirror_assignment=""
])
AC_SUBST([sstatemirror_assignment], [$enable_sstatemirror_assignment])
AC_MSG_RESULT([$enableval])
# network
AC_MSG_CHECKING([network])
AC_ARG_ENABLE([network], [AS_HELP_STRING([--enable-network],
enable network fetching (default: "True"))],
[case "$enableval" in
yes) enable_no_network="0" ;;
no) enable_no_network="1" ;;
esac],
[enable_no_network="0"])
AC_SUBST([no_network], [$enable_no_network])
AC_MSG_RESULT([$enable_network])
# fetch-premirror-only
AC_MSG_CHECKING([fetch_premirror_only])
AC_ARG_ENABLE([fetch_premirror_only], [AS_HELP_STRING([--enable-fetch-premirror-only],
fetch only from premirror (default: "False"))],
[case "$enableval" in
yes) enable_fetchpremirroronly="1" ;;
no) enable_fetchpremirroronly="0" ;;
esac],
[enable_fetchpremirroronly="0"])
AC_SUBST([fetchpremirroronly], [$enable_fetchpremirroronly])
AC_MSG_RESULT([$enable_fetchpremirroronly])
# generate-mirror-tarballs
AC_MSG_CHECKING([generate_mirror_tarballs])
AC_ARG_ENABLE([generate_mirror_tarballs], [AS_HELP_STRING([--enable-generate-mirror-tarballs],
generate tarballs suitable for mirroring (default: "False"))],
[case "$enableval" in
yes) enable_generatemirrortarballs="1" ;;
no) enable_generatemirrortarballs="0" ;;
esac],
[enable_generatemirrortarballs="0"])
AC_SUBST([generatemirrortarballs], [$enable_generatemirrortarballs])
AC_MSG_RESULT([$enable_generatemirrortarballs])
# private-internal-component-mirror
AC_MSG_CHECKING([private_internal_component_mirror])
AC_ARG_ENABLE([private_internal_component_mirror], [AS_HELP_STRING([--enable-private-internal-component-mirror],
enable private internal component mirror (default: "False"))],
[case "$enableval" in
yes) enable_privateinternalcomponentmirror="git://github-mirror.palm.com/openwebos" ;;
no) enable_privateinternalcomponentmirror="git://github.com/openwebos" ;;
esac],
[enable_privateinternalcomponentmirror="git://github.com/openwebos"])
AC_SUBST([privateinternalcomponentmirror], [$enable_privateinternalcomponentmirror])
AC_MSG_RESULT([$enableval])
# bitbake
AC_MSG_CHECKING([bitbake])
m4_define([bitbake_layer_location], ['${PALMDIR}/bitbake'])
m4_define([bitbake_default_bitbake], ['True'])
AC_ARG_ENABLE([bitbake], [AS_HELP_STRING([--enable-bitbake],
[configure to include bitbake (default: enabled)])],
[],
[enable_bitbake=bitbake_default_bitbake])
case "$enable_bitbake" in
True|yes) enable_bitbake_layer=bitbake_layer_location ;;
*) enable_bitbake_layer='' ;;
esac
AC_SUBST([bitbake], $enable_bitbake)
AC_SUBST([bitbake_layer], $enable_bitbake_layer)
AC_MSG_RESULT([$bitbake])
# oecore
AC_MSG_CHECKING([oecore])
m4_define([oecore_layer_location], ['${PALMDIR}/openembedded-core/meta'])
m4_define([oecore_default_oecore], ['True'])
AC_ARG_ENABLE([oecore], [AS_HELP_STRING([--enable-oecore],
[configure to include oecore (default: enabled)])],
[enable_oecore=$enableval],
[enable_oecore=oecore_default_oecore])
case "$enable_oecore" in
no) enable_oecore_layer='' ;;
*) enable_oecore_layer=oecore_layer_location ;;
esac
AC_SUBST([oecore], $enable_oecore)
AC_SUBST([oecore_layer], $enable_oecore_layer)
AC_MSG_RESULT([$oecore])
# webos
AC_MSG_CHECKING([webos])
m4_define([webos_layer_location], ['${PALMDIR}/meta-webos'])
m4_define([webos_default_webos], ['True'])
AC_ARG_ENABLE([webos], [AS_HELP_STRING([--enable-webos],
[configure to include webos (default: enabled)])],
[enable_webos=$enableval],
[enable_webos=webos_default_webos])
case "$enable_webos" in
no) enable_webos_layer='' ;;
*) enable_webos_layer=webos_layer_location ;;
esac
AC_SUBST([webos], $enable_webos)
AC_SUBST([webos_layer], $enable_webos_layer)
AC_MSG_RESULT([$webos])
# metaoe
AC_MSG_CHECKING([metaoe])
m4_define([metaoe_layer_location], ['${PALMDIR}/meta-openembedded/meta-oe'])
m4_define([webos_default_metaoe], ['True'])
AC_ARG_ENABLE([metaoe], [AS_HELP_STRING([--enable-metaoe],
[configure to include metaoe (default: enabled)])],
[enable_metaoe=$enableval],
[enable_metaoe=webos_default_metaoe])
case "$enable_metaoe" in
no) enable_metaoe_layer='' ;;
*) enable_metaoe_layer=metaoe_layer_location ;;
esac
AC_SUBST([metaoe], $enable_metaoe)
AC_SUBST([metaoe_layer], $enable_metaoe_layer)
AC_MSG_RESULT([$metaoe])
# buildhistory
AC_MSG_CHECKING([buildhistory])
AC_ARG_ENABLE([buildhistory], [AS_HELP_STRING([--enable-buildhistory],
enable buildhistory to check that versions are not going backward and content of images (default: "True"))],
[case "$enableval" in
yes) enable_buildhistory="1"; class_buildhistory="buildhistory" ;;
no) enable_buildhistory="0"; class_buildhistory="" ;;
esac],
[enable_buidhistory="1", class_buildhistory="buildhistory"])
AC_SUBST([buildhistory_enabled], [$enable_buildhistory])
AC_SUBST([buildhistory_class], [$class_buildhistory])
AC_MSG_RESULT([$enable_buildhistory])
AC_MSG_CHECKING([buildhistoryauthor])
AC_ARG_ENABLE([buildhistoryauthor], [AS_HELP_STRING([--enable-buildhistoryauthor="webos builder webos@builder.org"],
specify author to use in buildhistory git commits (default: none, will use author from git global config))],
[if test -z "$enableval"; then
enable_buildhistoryauthor_assignment=""
else
enable_buildhistoryauthor_assignment="BUILDHISTORY_COMMIT_AUTHOR ?= \"$enableval\""
fi
],
[enable_buildhistoryauthor_assignment=""])
AC_SUBST([buildhistory_author], [$enable_buildhistoryauthor])
AC_SUBST([buildhistory_author_assignment], [$enable_buildhistoryauthor_assignment])
AC_MSG_RESULT([$enable_buildhistoryauthor])
AC_CONFIG_FILES([Makefile:build-templates/Makefile.in])
AC_CONFIG_FILES([bitbake.rc:build-templates/bitbake-rc.in])
AC_CONFIG_FILES([conf/bblayers.conf:build-templates/bblayers-conf.in])
AC_CONFIG_FILES([conf/local.conf:build-templates/local-conf.in])
AC_OUTPUT