Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(698)

Side by Side Diff: GNUmakefile

Issue 6524004: Add bct_dump tool. (Closed)
Patch Set: Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | bct_dump.c » ('j') | bct_dump.c » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 C_FILES := 1 TARGETS»= cbootimage bct_dump
2 C_FILES += nvbctlib_ap20.c 2 CC» = gcc
3 C_FILES += cbootimage.c 3 CFLAG» = -Wall -O
4 C_FILES += data_layout.c
5 C_FILES += parse.c
6 C_FILES += set.c
7 C_FILES += crypto.c
8 C_FILES += aes_ref.c
9 C_FILES += context.c
10 4
11 OBJS := $(patsubst %.c,%.o,$(notdir $(C_FILES))) 5 all: $(TARGETS)
12 6
13 TARGET = cbootimage 7 #
14 CC = gcc 8 # Build the cbootimage tool.
15 CFLAGS=-Wall -O 9 #
10 CBOOTIMAGE_C_FILES := cbootimage.c
11 CBOOTIMAGE_C_FILES += nvbctlib_ap20.c
12 CBOOTIMAGE_C_FILES += data_layout.c
13 CBOOTIMAGE_C_FILES += parse.c
14 CBOOTIMAGE_C_FILES += set.c
15 CBOOTIMAGE_C_FILES += crypto.c
16 CBOOTIMAGE_C_FILES += aes_ref.c
17 CBOOTIMAGE_C_FILES += context.c
16 18
17 $(TARGET):$(OBJS) 19 CBOOTIMAGE_OBJS»:= $(patsubst %.c,%.o,$(notdir $(CBOOTIMAGE_C_FILES)))
18 » $(CC) -o $(TARGET) $(OBJS) $(CFLAGS)
19 20
21 cbootimage: $(CBOOTIMAGE_OBJS)
22 $(CC) -o $@ $^ $(CFLAGS)
vb 2011/02/23 22:34:02 just out of curiosity: wouldn't cbootimage: $(CBO
robotboy 2011/02/23 22:45:52 It does mostly the same thing. It makes the outpu
23
24 #
25 # Build the bct_dump tool. This tool generates a human readable version of
26 # the given BCT file.
27 #
28 BCT_DUMP_C_FILES := bct_dump.c
29 BCT_DUMP_C_FILES += nvbctlib_ap20.c
30 BCT_DUMP_C_FILES += data_layout.c
31 BCT_DUMP_C_FILES += set.c
32 BCT_DUMP_C_FILES += crypto.c
33 BCT_DUMP_C_FILES += aes_ref.c
34 BCT_DUMP_C_FILES += context.c
35
36 BCT_DUMP_OBJS := $(patsubst %.c,%.o,$(notdir $(BCT_DUMP_C_FILES)))
37
38 bct_dump: $(BCT_DUMP_OBJS)
39 $(CC) -o $@ $^ $(CFLAGS)
40
41 #
42 # Remove
43 #
20 clean: 44 clean:
21 » rm -rf *.o $(TARGET) 45 » rm -rf *.o *~ $(TARGETS)
OLDNEW
« no previous file with comments | « no previous file | bct_dump.c » ('j') | bct_dump.c » ('J')

Powered by Google App Engine
This is Rietveld 408576698