mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-09 00:51:29 +00:00
I previously refactored some of the signature generation code to directly use the OpenSSL library instead of invoking the "openssl" command line utility. The signature_digest command line utility got lost in the process. This restores the utility which in turn fixes the RSA verification test. Review URL: http://codereview.chromium.org/669040
49 lines
1.6 KiB
Makefile
49 lines
1.6 KiB
Makefile
# Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
CC ?= gcc
|
|
CXX ?= g++
|
|
CFLAGS = -Wall -DNDEBUG -O3
|
|
INCLUDES ?= -I../include/
|
|
TOP ?= ../
|
|
|
|
LIBS = firmware_image.o kernel_image.o signature_digest.o file_keys.o
|
|
FIRMWARELIBS = $(TOP)/crypto/libcrypto.a $(TOP)/common/libcommon.a
|
|
|
|
all: dumpRSAPublicKey verify_data file_keys.o signature_digest.o \
|
|
firmware_image.o kernel_image.o signature_digest.o \
|
|
signature_digest_utility firmware_utility kernel_utility
|
|
|
|
dumpRSAPublicKey: dumpRSAPublicKey.c
|
|
$(CC) $(CFLAGS) $< -o $@ -lcrypto
|
|
|
|
verify_data: verify_data.c $(LIBS) $(FIRMWARELIBS)
|
|
$(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) $(FIRMWARELIBS) -lcrypto
|
|
|
|
signature_digest_utility: signature_digest_utility.c $(LIBS) $(FIRMWARELIBS)
|
|
$(CC) $(CFLAGS) $(INCLUDES) $< -o $@ $(LIBS) $(FIRMWARELIBS) -lcrypto
|
|
|
|
firmware_utility: firmware_utility.cc $(LIBS) $(FIRMWARELIBS)
|
|
$(CXX) $(CFLAGS) $(INCLUDES) -ggdb -D__STDC_LIMIT_MACROS $< \
|
|
-o $@ $(FIRMWARELIBS) $(LIBS) -lcrypto
|
|
|
|
kernel_utility: kernel_utility.cc $(LIBS) $(FIRMWARELIBS)
|
|
$(CXX) $(CFLAGS) $(INCLUDES) -ggdb -D__STDC_LIMIT_MACROS $< \
|
|
-o $@ $(FIRMWARELIBS) $(LIBS) -lcrypto
|
|
|
|
signature_digest.o: signature_digest.c
|
|
$(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@
|
|
|
|
file_keys.o: file_keys.c
|
|
$(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@
|
|
|
|
firmware_image.o: firmware_image.c
|
|
$(CC) $(CFLAGS) -ansi $(INCLUDES) -c $< -o $@
|
|
|
|
kernel_image.o: kernel_image.c
|
|
$(CC) $(CFLAGS) -ansi $(INCLUDES) -c $< -o $@
|
|
clean:
|
|
rm -f dumpRSAPublicKey verify_data signature_digest firmware_utility \
|
|
kernel_utility signature_digest_utility $(LIBS)
|