blob: 7250827f695d2f7071992cac902917c9f0642488 (
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
30
31
32
|
# On AArch64 bare-metal, we need to add --specs=rdimon.specs so that
# link succeeds.
ifneq (,$(findstring aarch64,$(TARGET)))
ifneq (,$(findstring elf,$(TARGET)))
EXTRA_CFLAGS=--specs=rdimon.specs
endif
endif
ifneq (,$(findstring mingw,$(TOOLCHAIN)))
WINE=wine
endif
export CC=$(WINE) $(TOOLCHAIN)/bin/$(TARGET)-gcc $(EXTRA_CFLAGS)
export CXX=$(WINE) $(TOOLCHAIN)/bin/$(TARGET)-g++ $(EXTRA_CFLAGS)
export FCC=$(WINE) $(TOOLCHAIN)/bin/$(TARGET)-gfortran $(EXTRA_CFLAGS)
export HOSTCC=gcc
export HOSTCXX=g++
export AARCH32BOARD=tcwg-tk1-01.tcwglab
export AARCH64BOARD=tcwg-tx1-01.tcwglab
check::
-$(MAKE) all
@cat result.txt
all::
./build.sh
clean::
-rm -f result.txt
|