-
Notifications
You must be signed in to change notification settings - Fork 41
/
Makefile
55 lines (42 loc) · 1.54 KB
/
Makefile
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
#
# Authors: Xiangfu Liu <[email protected]>
# bitcoin: 1CGeqFzCZnAPEEcigr8LzmWTqf8cvo8toW
#
# License GPLv3 or later. NO WARRANTY.
#
BASEDIR=${CURDIR}
SYNTOOL?=xst
BOARD?=milkymist-one
SDK_DIRS=libbase libhal libfpvm libnet
SW_DIRS=${SDK_DIRS} libhpdmc libfpvm libfpvm/x86-linux libfpvm/lm32-linux bios
CORE_DIRS=ac97 bt656cap conbus dmx fmlbrg fmlmeter hpdmc_ddr32 \
memcard pfpu rc5 softusb sysctl tmu2 uart vgafb
tools:
make -C ${BASEDIR}/tools
bios: tools
make -C ${BASEDIR}/software/bios
bitstream: tools
make -C ${BASEDIR}/boards/${BOARD}/synthesis -f Makefile.${SYNTOOL}
sdk: tools
for d in $(SDK_DIRS); do make -C ${BASEDIR}/software/$$d || exit 1; done
load-bitstream: bitstream
make -C ${BASEDIR}/boards/${BOARD}/synthesis -f Makefile.${SYNTOOL} load
docs:
make -C ${BASEDIR}/doc
for d in $(CORE_DIRS); do make -C ${BASEDIR}/cores/$$d/doc || exit 1; done
sdk-install: sdk
make -C ${BASEDIR}/software/libfpvm install
make -C ${BASEDIR}/softusb-input install
tools-install: tools
make -C ${BASEDIR}/tools install
.PHONY: clean load-bitstream tools
clean:
make -C ${BASEDIR}/boards/${BOARD}/synthesis -f common.mak clean
make -C ${BASEDIR}/boards/${BOARD}/standby clean
make -C ${BASEDIR}/boards/${BOARD}/flash clean
make -C ${BASEDIR}/doc clean
make -C ${BASEDIR}/tools clean
make -C ${BASEDIR}/softusb-input clean
for d in $(CORE_DIRS); do make -C ${BASEDIR}/cores/$$d/doc clean || exit 1; done
for d in $(SW_DIRS); do make -C ${BASEDIR}/software/$$d clean || exit 1; done
(cd ${BASEDIR}/cores/pfpu ./cleanroms.sh)