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

Side by Side Diff: vboot_firmware/Makefile

Issue 2776002: add load firmware stub (Closed) Base URL: ssh://gitrw.chromium.org/vboot_reference.git
Patch Set: Created 10 years, 6 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 | vboot_firmware/stub/load_firmware_stub.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. 1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 LIBNAME = vboot_fw.a 5 LIBNAME = vboot_fw.a
6 6
7 CC ?= gcc 7 CC ?= gcc
8 CFLAGS = -Wall -DNDEBUG -O3 -Werror 8 CFLAGS = -Wall -DNDEBUG -O3 -Werror
9 9
10 FWTOP := $(shell pwd) 10 FWTOP := $(shell pwd)
(...skipping 24 matching lines...) Expand all
35 ./lib/load_firmware_fw.c \ 35 ./lib/load_firmware_fw.c \
36 ./lib/load_kernel_fw.c \ 36 ./lib/load_kernel_fw.c \
37 ./lib/rollback_index.c \ 37 ./lib/rollback_index.c \
38 ./lib/stateful_util.c 38 ./lib/stateful_util.c
39 39
40 LIB_OBJS = $(LIB_SRCS:%.c=%.o) 40 LIB_OBJS = $(LIB_SRCS:%.c=%.o)
41 41
42 # find ./stub -iname '*.c' | sort 42 # find ./stub -iname '*.c' | sort
43 STUB_SRCS = \ 43 STUB_SRCS = \
44 ./stub/boot_device_stub.c \ 44 ./stub/boot_device_stub.c \
45 ./stub/load_firmware_stub.c \
45 ./stub/tlcl.c \ 46 ./stub/tlcl.c \
46 ./stub/utility_stub.c 47 ./stub/utility_stub.c
47 48
48 STUB_OBJS = $(STUB_SRCS:%.c=%.o) 49 STUB_OBJS = $(STUB_SRCS:%.c=%.o)
49 50
50 51
51 test : $(LIBNAME) 52 test : $(LIBNAME)
52 $(CC) $(CFLAGS) $(INC) -o $(TESTDIR)/a.out $(TESTDIR)/main.c $(LIBNAME) 53 $(CC) $(CFLAGS) $(INC) -o $(TESTDIR)/a.out $(TESTDIR)/main.c $(LIBNAME)
53 54
54 $(LIBNAME) : $(LIB_OBJS) $(STUB_OBJS) 55 $(LIBNAME) : $(LIB_OBJS) $(STUB_OBJS)
55 rm -f $@ 56 rm -f $@
56 ar qc $@ $^ 57 ar qc $@ $^
57 58
58 %o : %c 59 %o : %c
59 $(CC) $(CFLAGS) $(INC) -c -o $@ $< 60 $(CC) $(CFLAGS) $(INC) -c -o $@ $<
60 61
61 clean: FORCE 62 clean: FORCE
62 rm -f $(LIBNAME) $(LIB_OBJS) $(STUB_OBJS) $(TESTDIR)/a.out 63 rm -f $(LIBNAME) $(LIB_OBJS) $(STUB_OBJS) $(TESTDIR)/a.out
63 64
64 FORCE: 65 FORCE:
65 66
66 67
67 .PHONY: FORCE 68 .PHONY: FORCE
OLDNEW
« no previous file with comments | « no previous file | vboot_firmware/stub/load_firmware_stub.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698