summaryrefslogtreecommitdiff
path: root/bootstrap-configure.nrf
blob: 636438b88b6036633f952d5dafe99e8051135344 (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
#!/bin/sh

export CC="arm-none-eabi-gcc"
export LD="arm-none-eabi-ld"
export NM="arm-none-eabi-nm -B"
export AR="arm-none-eabi-ar"
export RANLIB="arm-none-eabi-ranlib"
export LN_S="ln -s"
export OBJCOPY="arm-none-eabi-objcopy"
export OBJDUMP="arm-none-eabi-objdump"

export CFLAGS="-mcpu=cortex-m0 -mthumb -mfloat-abi=soft -DNRF51 -DNRF51822_QFAA_CA -DBOARD_PCA10001 --std=gnu99"
export ASMFLAGS="-x assembler-with-cpp -D__HEAP_SIZE=0 -D__STACK_SIZE=1024"

if [ -f config.status ]; then
	make maintainer-clean
fi

if [ -f configure.ac ]; then
	rm configure.ac
fi
ln -s configure.nrf configure.ac

./bootstrap &&
	./configure \
			--enable-maintainer-mode 	\
			--enable-debug			\
			--disable-optimization		\
			--with-platform=nrf $*