e1741c512c
secimage is a tool which adds a header and signature to the binary first loaded by the soc. ARM core frequency is set to 1 Ghz. BUG=chrome-os-partner:36421 BRANCH=broadcom-firmware TEST=booted b0 board Change-Id: Ia08600d45c47ee4f08d253980036916e44b0044a Signed-off-by: Patrick Georgi <pgeorgi@chromium.org> Original-Commit-Id: 36284d1b242c26b0b5aac2894f7ed1790da1ef15 Original-Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org> Original-Reviewed-on: https://chrome-internal-review.googlesource.com/197155 Original-Reviewed-by: Scott Branden <sbranden@broadcom.com> Original-Reviewed-by: Julius Werner <jwerner@chromium.org> Original-Commit-Queue: Daisuke Nojiri <dnojiri@google.com> Original-Tested-by: Daisuke Nojiri <dnojiri@google.com> Original-Change-Id: Iaddd24006b368c8f37e075cb51e151e985029f3b Original-Reviewed-on: https://chromium-review.googlesource.com/264417 Reviewed-on: http://review.coreboot.org/9914 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
37 lines
837 B
Makefile
37 lines
837 B
Makefile
#
|
|
# Copyright (C) 2015 Broadcom Corporation
|
|
#
|
|
# This program is free software; you can redistribute it and/or
|
|
# modify it under the terms of the GNU General Public License as
|
|
# published by the Free Software Foundation version 2.
|
|
#
|
|
# This program is distributed "as is" WITHOUT ANY WARRANTY of any
|
|
# kind, whether express or implied; without even the implied warranty
|
|
# of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU General Public License for more details.
|
|
#
|
|
|
|
TARGET = secimage
|
|
OBJS = crypto.o io.o misc.o sbi.o
|
|
CC = gcc
|
|
RM = rm
|
|
CFLAGS += -Wall -g
|
|
|
|
LIBS = -lgmp -lssl -lcrypto
|
|
|
|
%.o : %.c
|
|
$(CC) -c $(CFLAGS) -o $@ $<
|
|
|
|
all: $(TARGET)
|
|
|
|
$(TARGET): $(OBJS)
|
|
$(CC) -o $@ $(OBJS) $(LIBS)
|
|
|
|
install:
|
|
install -d $(DESTDIR)/usr/bin
|
|
install $(TARGET) $(DESTDIR)/usr/bin
|
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
|
$(RM) -f $(TARGET) $(OBJS)
|