FreeCalypso > hg > fc-am-toolkit
annotate bootutil/Makefile @ 17:632d62e5efb4
c1xx-analyze-image: add bootloader analysis
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sat, 10 Jun 2023 06:24:15 +0000 |
parents | 6b0d533046e5 |
children |
rev | line source |
---|---|
12
fe5f7ba7f154
c139-analyze-boot utility put together, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1 CC= gcc |
fe5f7ba7f154
c139-analyze-boot utility put together, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
2 CFLAGS= -O2 |
16
6b0d533046e5
bootutil: add c139-patch-dmagic
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
3 PROGS= c139-analyze-boot c139-patch-dmagic c155-analyze-boot |
12
fe5f7ba7f154
c139-analyze-boot utility put together, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
4 |
fe5f7ba7f154
c139-analyze-boot utility put together, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
5 C139ANB_OBJS= c11x_lockable.o c11x_nolock.o c139_lockable.o c139_main.o \ |
fe5f7ba7f154
c139-analyze-boot utility put together, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
6 c139_nolock.o do_match.o fc_patched_boot.o |
15
36e65605d16a
bootutil: add c155-analyze-boot
Mychaela Falconia <falcon@freecalypso.org>
parents:
14
diff
changeset
|
7 C155ANB_OBJS= c155_boot.o c155_main.o do_match.o |
12
fe5f7ba7f154
c139-analyze-boot utility put together, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
8 |
14
09c18549921b
add install of bootutil
Mychaela Falconia <falcon@freecalypso.org>
parents:
12
diff
changeset
|
9 INSTALL_PREFIX= /opt/freecalypso |
09c18549921b
add install of bootutil
Mychaela Falconia <falcon@freecalypso.org>
parents:
12
diff
changeset
|
10 |
09c18549921b
add install of bootutil
Mychaela Falconia <falcon@freecalypso.org>
parents:
12
diff
changeset
|
11 INSTBIN=${INSTALL_PREFIX}/bin |
09c18549921b
add install of bootutil
Mychaela Falconia <falcon@freecalypso.org>
parents:
12
diff
changeset
|
12 |
12
fe5f7ba7f154
c139-analyze-boot utility put together, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
13 all: ${PROGS} |
fe5f7ba7f154
c139-analyze-boot utility put together, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
14 |
fe5f7ba7f154
c139-analyze-boot utility put together, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
15 c139-analyze-boot: ${C139ANB_OBJS} |
fe5f7ba7f154
c139-analyze-boot utility put together, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
16 ${CC} ${CFLAGS} -o $@ ${C139ANB_OBJS} |
fe5f7ba7f154
c139-analyze-boot utility put together, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
17 |
16
6b0d533046e5
bootutil: add c139-patch-dmagic
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
18 c139-patch-dmagic: c139-patch-dmagic.c |
6b0d533046e5
bootutil: add c139-patch-dmagic
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
19 ${CC} ${CFLAGS} -o $@ $@.c |
6b0d533046e5
bootutil: add c139-patch-dmagic
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
20 |
15
36e65605d16a
bootutil: add c155-analyze-boot
Mychaela Falconia <falcon@freecalypso.org>
parents:
14
diff
changeset
|
21 c155-analyze-boot: ${C155ANB_OBJS} |
36e65605d16a
bootutil: add c155-analyze-boot
Mychaela Falconia <falcon@freecalypso.org>
parents:
14
diff
changeset
|
22 ${CC} ${CFLAGS} -o $@ ${C155ANB_OBJS} |
36e65605d16a
bootutil: add c155-analyze-boot
Mychaela Falconia <falcon@freecalypso.org>
parents:
14
diff
changeset
|
23 |
12
fe5f7ba7f154
c139-analyze-boot utility put together, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
24 c11x_lockable.o: ../bootmatch/c11x_lockable.c |
fe5f7ba7f154
c139-analyze-boot utility put together, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
25 ${CC} ${CFLAGS} -c -o $@ $< |
fe5f7ba7f154
c139-analyze-boot utility put together, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
26 |
fe5f7ba7f154
c139-analyze-boot utility put together, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
27 c11x_nolock.o: ../bootmatch/c11x_nolock.c |
fe5f7ba7f154
c139-analyze-boot utility put together, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
28 ${CC} ${CFLAGS} -c -o $@ $< |
fe5f7ba7f154
c139-analyze-boot utility put together, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
29 |
fe5f7ba7f154
c139-analyze-boot utility put together, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
30 c139_lockable.o: ../bootmatch/c139_lockable.c |
fe5f7ba7f154
c139-analyze-boot utility put together, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
31 ${CC} ${CFLAGS} -c -o $@ $< |
fe5f7ba7f154
c139-analyze-boot utility put together, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
32 |
fe5f7ba7f154
c139-analyze-boot utility put together, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
33 c139_nolock.o: ../bootmatch/c139_nolock.c |
fe5f7ba7f154
c139-analyze-boot utility put together, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
34 ${CC} ${CFLAGS} -c -o $@ $< |
fe5f7ba7f154
c139-analyze-boot utility put together, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
35 |
15
36e65605d16a
bootutil: add c155-analyze-boot
Mychaela Falconia <falcon@freecalypso.org>
parents:
14
diff
changeset
|
36 c155_boot.o: ../bootmatch/c155_boot.c |
36e65605d16a
bootutil: add c155-analyze-boot
Mychaela Falconia <falcon@freecalypso.org>
parents:
14
diff
changeset
|
37 ${CC} ${CFLAGS} -c -o $@ $< |
36e65605d16a
bootutil: add c155-analyze-boot
Mychaela Falconia <falcon@freecalypso.org>
parents:
14
diff
changeset
|
38 |
12
fe5f7ba7f154
c139-analyze-boot utility put together, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
39 fc_patched_boot.o: ../bootmatch/fc_patched_boot.c |
fe5f7ba7f154
c139-analyze-boot utility put together, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
40 ${CC} ${CFLAGS} -c -o $@ $< |
fe5f7ba7f154
c139-analyze-boot utility put together, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
41 |
14
09c18549921b
add install of bootutil
Mychaela Falconia <falcon@freecalypso.org>
parents:
12
diff
changeset
|
42 install: |
09c18549921b
add install of bootutil
Mychaela Falconia <falcon@freecalypso.org>
parents:
12
diff
changeset
|
43 mkdir -p ${INSTBIN} |
09c18549921b
add install of bootutil
Mychaela Falconia <falcon@freecalypso.org>
parents:
12
diff
changeset
|
44 install -c ${PROGS} ${INSTBIN} |
09c18549921b
add install of bootutil
Mychaela Falconia <falcon@freecalypso.org>
parents:
12
diff
changeset
|
45 |
12
fe5f7ba7f154
c139-analyze-boot utility put together, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
46 clean: |
fe5f7ba7f154
c139-analyze-boot utility put together, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
47 rm -f *.o ${PROGS} |