-
Notifications
You must be signed in to change notification settings - Fork 4
/
configure.ac
85 lines (71 loc) · 1.72 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
dnl Autoconf configure script for Ada Embedded Network
AC_INIT(Makefile.in)
AC_CANONICAL_SYSTEM
AC_EXEEXT
# Current release settings
ANET_MAJOR_VERSION=1
ANET_MINOR_VERSION=0
ANET_MICRO_VERSION=0
ANET_VERSION=$ANET_MAJOR_VERSION.$ANET_MINOR_VERSION.$ANET_MICRO_VERSION
# Set the version number of GtkAda
AC_SUBST(ANET_VERSION)
AC_SUBST(ANET_MAJOR_VERSION)
AC_SUBST(ANET_MINOR_VERSION)
AC_SUBST(ANET_MICRO_VERSION)
EXEC_PREFIX="$prefix"
AC_SUBST(EXEC_PREFIX)
AC_ARG_WITH(board,
AS_HELP_STRING([--with-board=NAME], [Define the board to be used]),
[
anet_board=${withval}
],
[
anet_board=stm32f746
])
AC_ARG_WITH(ada-drivers,
AS_HELP_STRING([--with-ada-drivers=PATH], [Define the path for Ada Drivers Library]),
[
DRIVERS_PATH=${withval}
],
[
DRIVERS_PATH=Ada_Drivers_Library
])
case ${anet_board} in
stm32f429)
BOARD=stm32f429
BOARD_DIR=stm32f429disco
BOARD_SUBDIR=stm32f429_discovery
BOARD_PROJECT=stm32f429_discovery_sfp
BOARD_RUNTIME=STM32F429_Discovery_sfp
;;
stm32f746)
BOARD=stm32f746
BOARD_DIR=stm32f746disco
BOARD_SUBDIR=stm32f746_discovery
BOARD_PROJECT=stm32f746_discovery_sfp
BOARD_RUNTIME=STM32F746_Discovery_sfp
;;
stm32f769)
BOARD=stm32f769
BOARD_DIR=stm32f769disco
BOARD_SUBDIR=stm32f769_discovery
BOARD_PROJECT=stm32f769_discovery_sfp
BOARD_RUNTIME=STM32F769_Discovery_sfp
;;
*)
AC_MSG_ERROR([Boards ${anet_board} is not supported. Please, use one of the following:
stm32f429
stm32f746
stm32f769
])
;;
esac
AC_SUBST(BOARD)
AC_SUBST(BOARD_DIR)
AC_SUBST(BOARD_PROJECT)
AC_SUBST(BOARD_SUBDIR)
AC_SUBST(BOARD_RUNTIME)
AC_SUBST(DRIVERS_PATH)
AC_OUTPUT(
Makefile ping.gpr dns.gpr time.gpr echo.gpr anet_stm32fxxx.gpr
)