add mkimage to build system

This commit is contained in:
James Sullins committed 2011-09-24 22:22:19 -05:00
1 parent 508c4aa481
commit 14a5493be1
2 files changed
+8 -1

No files matched your search

+5
View File
@@ -6,6 +6,11 @@ $(OUTBIN): $(OUTELF)
$(NOECHO)$(SIZE) $<
$(NOCOPY)$(OBJCOPY) -O binary $< $@
$(OUTUIMAGE): $(OUTBIN)
@echo generating uImage: $@
$(NOCOPY)$(MKIMAGE) -T kernel -C none -A arm \
-a $(MEMBASE) -e $(MEMBASE) -d $(OUTBIN) $@
ifeq ($(ENABLE_TRUSTZONE), 1)
$(OUTELF): $(ALLOBJS) $(LINKER_SCRIPT) $(OUTPUT_TZ_BIN)
@echo linking $@
+3 -1
View File
@@ -36,6 +36,7 @@ endif
LK_TOP_DIR:= .
BUILDDIR := $(BOOTLOADER_OUT)/build-$(PROJECT)
OUTBIN := $(BUILDDIR)/lk.bin
OUTUIMAGE := $(BUILDDIR)/lk.uImage
OUTELF := $(BUILDDIR)/lk
CONFIGHEADER := $(BUILDDIR)/config.h
@@ -72,7 +73,7 @@ CFLAGS += -ffunction-sections -fdata-sections
LDFLAGS += -gc-sections
# top level rule
all:: $(OUTBIN) $(OUTELF).lst $(OUTELF).debug.lst $(OUTELF).sym $(OUTELF).size APPSBOOTHEADER
all:: $(OUTUIMAGE) $(OUTBIN) $(OUTELF).lst $(OUTELF).debug.lst $(OUTELF).sym $(OUTELF).size APPSBOOTHEADER
# the following three object lists are identical except for the ordering
# which is bootobjs, kobjs, objs
@@ -155,6 +156,7 @@ OBJCOPY := $(TOOLCHAIN_PREFIX)objcopy
CPPFILT := $(TOOLCHAIN_PREFIX)c++filt
SIZE := $(TOOLCHAIN_PREFIX)size
NM := $(TOOLCHAIN_PREFIX)nm
MKIMAGE := mkimage
# comment out or override if you want to see the full output of each command
NOECHO ?= @