FreeCalypso > hg > fc-am-toolkit
annotate Makefile @ 20:aa2fd60a44fb
new shell scripts c11x-gen-fc-{ffs-img,script}
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sat, 10 Jun 2023 23:53:15 +0000 |
parents | 09c18549921b |
children |
rev | line source |
---|---|
11
2a62a7decd9f
top Makefile: compilation happening in bootmatch
Mychaela Falconia <falcon@freecalypso.org>
parents:
1
diff
changeset
|
1 CC= gcc |
2a62a7decd9f
top Makefile: compilation happening in bootmatch
Mychaela Falconia <falcon@freecalypso.org>
parents:
1
diff
changeset
|
2 CFLAGS= -O2 |
13
f232fb350e1c
top Makefile: add bootutil
Mychaela Falconia <falcon@freecalypso.org>
parents:
11
diff
changeset
|
3 SUBDIR= bootmatch bootutil |
11
2a62a7decd9f
top Makefile: compilation happening in bootmatch
Mychaela Falconia <falcon@freecalypso.org>
parents:
1
diff
changeset
|
4 |
0
faf27dbe1a63
scripts for initializing aftermarket FFS on Pirelli DP-L10
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
5 INSTALL_PREFIX= /opt/freecalypso |
faf27dbe1a63
scripts for initializing aftermarket FFS on Pirelli DP-L10
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
6 |
11
2a62a7decd9f
top Makefile: compilation happening in bootmatch
Mychaela Falconia <falcon@freecalypso.org>
parents:
1
diff
changeset
|
7 all: ${SUBDIR} |
2a62a7decd9f
top Makefile: compilation happening in bootmatch
Mychaela Falconia <falcon@freecalypso.org>
parents:
1
diff
changeset
|
8 |
13
f232fb350e1c
top Makefile: add bootutil
Mychaela Falconia <falcon@freecalypso.org>
parents:
11
diff
changeset
|
9 bootutil: bootmatch |
f232fb350e1c
top Makefile: add bootutil
Mychaela Falconia <falcon@freecalypso.org>
parents:
11
diff
changeset
|
10 |
11
2a62a7decd9f
top Makefile: compilation happening in bootmatch
Mychaela Falconia <falcon@freecalypso.org>
parents:
1
diff
changeset
|
11 ${SUBDIR}: FRC |
2a62a7decd9f
top Makefile: compilation happening in bootmatch
Mychaela Falconia <falcon@freecalypso.org>
parents:
1
diff
changeset
|
12 cd $@; ${MAKE} ${MFLAGS} CC=${CC} CFLAGS="${CFLAGS}" |
0
faf27dbe1a63
scripts for initializing aftermarket FFS on Pirelli DP-L10
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
13 |
11
2a62a7decd9f
top Makefile: compilation happening in bootmatch
Mychaela Falconia <falcon@freecalypso.org>
parents:
1
diff
changeset
|
14 clean: FRC |
2a62a7decd9f
top Makefile: compilation happening in bootmatch
Mychaela Falconia <falcon@freecalypso.org>
parents:
1
diff
changeset
|
15 for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} clean); done |
0
faf27dbe1a63
scripts for initializing aftermarket FFS on Pirelli DP-L10
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
16 |
11
2a62a7decd9f
top Makefile: compilation happening in bootmatch
Mychaela Falconia <falcon@freecalypso.org>
parents:
1
diff
changeset
|
17 install: FRC |
0
faf27dbe1a63
scripts for initializing aftermarket FFS on Pirelli DP-L10
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
18 mkdir -p ${INSTALL_PREFIX}/bin |
faf27dbe1a63
scripts for initializing aftermarket FFS on Pirelli DP-L10
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
19 install -c -m 755 sh/* ${INSTALL_PREFIX}/bin |
faf27dbe1a63
scripts for initializing aftermarket FFS on Pirelli DP-L10
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
20 mkdir -p ${INSTALL_PREFIX}/scripts |
faf27dbe1a63
scripts for initializing aftermarket FFS on Pirelli DP-L10
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
21 install -c -m 644 cmd/* ${INSTALL_PREFIX}/scripts |
1
acfe834e174f
add compal-flash-boot-for-fc.bin
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
22 mkdir -p ${INSTALL_PREFIX}/target-bin |
acfe834e174f
add compal-flash-boot-for-fc.bin
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
23 install -c -m 644 target-bin/* ${INSTALL_PREFIX}/target-bin |
14
09c18549921b
add install of bootutil
Mychaela Falconia <falcon@freecalypso.org>
parents:
13
diff
changeset
|
24 cd bootutil; ${MAKE} ${MFLAGS} INSTALL_PREFIX=${INSTALL_PREFIX} install |
11
2a62a7decd9f
top Makefile: compilation happening in bootmatch
Mychaela Falconia <falcon@freecalypso.org>
parents:
1
diff
changeset
|
25 |
2a62a7decd9f
top Makefile: compilation happening in bootmatch
Mychaela Falconia <falcon@freecalypso.org>
parents:
1
diff
changeset
|
26 FRC: |