📄 makefile
字号:
#############################################################################
#
# Makefile - makefile for Wind River SBC405GP Evaluation Board
#
# Copyright 1988-2000 Wind River Systems, Inc.
#
# modification history
# --------------------
# 01a,22apr01,gh adopted from Walnut BSP Makefile (ver 01c).
#
# DESCRIPTION
# -----------
# This file contains rules for building the various targets
# for the SBC405GP Evaluation Board.
#
# TARGETS
# -------
# This section briefly lists the available build targets.
#
# Target Build Description
# ------------ -----------
# bootrom_uncmp.hex - bootrom image, hex format
# bootrom_uncmp.bin - bootrom image, est binary format
# bootrom.hex - bootrom compressed image, hex format
# bootrom.bin - bootrom compressed image, H.S.I binary format
# vxWorks.bdx - standard vxWorks image
# clean.hsi - does a make clean and removes *.bin/bdx/etc
#
# Note(s): - Wind River HSI related targets are displayed in the Tornado
# Project Menu (Windows Version).
#
#############################################################################
CPU = PPC405
TOOL = gnu
TGT_DIR = $(WIND_BASE)/target
include $(TGT_DIR)/h/make/defs.bsp
include $(TGT_DIR)/h/make/defs.$(WIND_HOST_TYPE)
include $(TGT_DIR)/h/make/defs.$(TOOL)
include $(TGT_DIR)/h/make/make.$(CPU)$(TOOL)
##
## Only redefine make definitions below this point, or your definitions will
## be overwritten by the makefile stubs above.
##
TARGET_DIR = CypressUSB-ppc405gp
VENDOR = WindRiver
BOARD = SBC405GP
USR_ENTRY = usrInit
##
## The constants ROM_TEXT_ADRS, ROM_SIZE, and RAM_HIGH_ADRS are defined
## in config.h, MakeSkel, Makefile, and Makefile.*
## All definitions for these constants must be identical.
##
ROM_TEXT_ADRS = ffe00200 # ROM entry address
ROM_SIZE = 000ff000 # number of bytes of ROM space
RAM_LOW_ADRS = 00010000
RAM_HIGH_ADRS = 01C00000
##
## hex utility parameters
##
HEX_FLAGS = -a $(ROM_TEXT_ADRS)
##
## See Header before altering the EXTRA_DEFINE and MACH_EXTRA lines below.
##
#MACH_EXTRA = #fei82557End.obj
MACH_EXTRA = usrUsbTool.o usbPciStub.o usbHcdSl811hsLib.o
EXTRA_MODULES = #$(BSP_DIR)/fei82557End.obj
##
## Debug Information
##
ADDED_CFLAGS = -gdwarf -O0
##
## Linker Flags
##
LDFLAGS = -X -N -Map wrSbc405gp.map
##
## Only redefine make definitions above this point, or the expansion of
## makefile target dependencies may be incorrect.
##
include $(TGT_DIR)/h/make/rules.bsp
include $(TGT_DIR)/h/make/rules.$(WIND_HOST_TYPE)
HSI_CONVERT = $(WIND_BASE)/host/$(WIND_HOST_TYPE)/bin/convert
POST_POST_BUILD_RULE = echo
############################################################################
# General Cleanup Rules
############################################################################
clean.hsi: clean
$(RM) *~
$(RM) *.bkp
$(RM) *.bdx
$(RM) *.map
$(RM) *.bin
$(RM) *.bak
$(RM) *.hex
$(RM) *.ab
$(RM) rampart
$(RM) *.abx
$(RM) *.vxWorks
$(RM) files
############################################################################
# Rule for creating a bootrom binfile for programming bootflash
# with Wind River HSI Emulator. (compressed, copies to ram)
############################################################################
.PHONY : bootrom.bin save.bootrom
bootrom.bin: bootrom.hex
$(HSI_CONVERT) bootrom.hex -a -l ffe00000 -u fff00000
############################################################################
# Rule for creating a bootrom_uncmp binfile for programming bootflash
# with Wind River HSI Emulator. (uncompressed, copies to ram)
############################################################################
.PHONY : bootrom_uncmp.bin save.bootrom_uncmp
bootrom_uncmp.bin: bootrom_uncmp.hex
$(HSI_CONVERT) bootrom_uncmp.hex -a -l ffe00000 -u fff00000
############################################################################
# Rule for creating a RAM downloadable vxWorks image with a
# WDB Agent, over the network, with no demo program.
# (Note, this is a standard 'vxWorks' image --- i.e. make vxWorks )
############################################################################
.PHONY : vxWorks.bdx save.vxWorks save.vxWorks.lean bdxconvert
bdxconvert:
$(HSI_CONVERT) -w vxWorks -b vxWorks.bdx -c vxWorks.ab -t ppc
vxWorks.bdx: vxWorks bdxconvert
$(POST_POST_BUILD_RULE)
############################################################################
# Rule for creating workspace and project
############################################################################
bsp2wsp: bsp2prj
vxcopy $(TARGET_DIR).wsp_ $(WIND_BASE)/target/proj/$(TARGET_DIR).wsp
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -