123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- ################################################################################
- #
- # Copyright (c) 2012 Minoca Corp. All Rights Reserved
- #
- # Module Name:
- #
- # PandaBoard Stage 1 Loader
- #
- # Abstract:
- #
- # This module implements OMAP4 first stage loader.
- #
- # Author:
- #
- # Evan Green 1-Apr-2014
- #
- # Environment:
- #
- # Firmware
- #
- ################################################################################
- BINARY := omap4mlo.elf
- BINARYTYPE = staticapp
- BINPLACE = bin
- VPATH += $(BINROOT):
- INCLUDES += $(SRCROOT)/os/uefi/include;
- LDFLAGS += -nodefaultlibs -nostartfiles -nostdlib
- ##
- ## The first stage loader has to be built in ARM mode since the ROM code
- ## seems to reset if interrupts are enabled and the processor is in Thumb mode.
- ##
- EXTRA_CFLAGS += -marm
- OBJS += boot.o \
- clock.o \
- crc32.o \
- fatboot.o \
- gpio.o \
- id.o \
- mux.o \
- serial.o \
- rommem.o \
- romusb.o \
- ARMV7_OBJS = armv7/start.o \
- TEXT_ADDRESS = 0x40308000
- LINKER_SCRIPT = $(SRCROOT)/os/uefi/plat/panda/init/link.x
- EXTRA_SRC_DIRS = armv7
- DIRS = fwbuild \
- include $(SRCROOT)/os/minoca.mk
- postbuild: omap4mlo
- omap4mlo: omap4mlo.bin
- @echo Generating - $@
- @fwbuild/pandafwb 0x40300000 $^ $@
- @cp -p $@ $(BINROOT)/
- omap4mlo.bin: $(BINARY)
- @echo Flattening - $(notdir $<)
- @$(OBJCOPY) -O binary $^ $@
- @cp -p $@ $(BINROOT)/
|