📄 makefile
字号:
# Makefile - makefile for target/config/pc486
#
# Copyright 1984-1998 Wind River Systems, Inc.
#
# modification history
# --------------------
# 01w,24mar98,dat fixed rules for xxx_low, SPR 20837
# 01v,18mar98.dat removed vxsys.c, SPR 8248
# 01u,03sep96,hdn added the compression support.
# 01t,08aug96,ms correct use of TGT_DIR
# 01s,29jul96,hdn updated romcard_vxWorks_st_512.hex w vxWorks_boot.st.
# 01r,19jul96,hdn added rules for BOOTABLE vxWorks.
# added mkboot.o to RELEASE.
# 01q,14nov95,hdn added rules for romcard.
# 01p,14jun95,wrs updated to 5.3 with bspTo5.3
# 01o,02jun95,ms removed tyCoDrv added sysSerial
# 01n,27may95,jcf added tyCoDrv.o to MACH_EXTRA
# 01m,07nov94,hdn added a support for eex32.
# 01l,23may94,hdn changed TARGET_DIR to pc486.
# 01k,28apr94,hdn changed ROM_SIZE to 0x7fe00.
# added a link rule for romcard.s and romcard.sh.
# deleted a link rule for romInit0.s and romInit1.s.
# 01j,29mar94,hdn changed a link rule.
# 01i,23feb94,hdn swapped RAM_LOW_ADRS and RAM_HIGH_ADRS.
# 01h,27jan94,hdn changed RAM_LOW_ADRS 0x10000 to 0x8000.
# changed RAM_HIGH_ADRS 0x110000 to 0x108000.
# 01g,23dec93,hdn added SOURCES to support symbolic link.
# 01f,08dec93,hdn added RELEASE.
# 01e,17nov93,hdn changed ROM_SIZE to 0x50000.
# 01d,17jun93,hdn updated to 5.1.
# 01c,09apr93,jdi removed value for VENDOR and updated value of BOARD.
# 01b,07apr93,hdn renamed compaq to pc.
# 01a,21may92,hdn written.
#
# DESCRIPTION
# This file contains rules for building VxWorks for the
# PC 486.
#
# NOTE
# The constants ROM_TEXT_ADRS and RAM_HIGH_ADRS
# must be identical to those in config.h.
#
# INCLUDES
# makeTarget
#*/
CPU = I80486
TOOL = gnu
TGT_DIR = $(WIND_BASE)/target
include $(TGT_DIR)/h/make/defs.bsp
include $(TGT_DIR)/h/make/make.$(CPU)$(TOOL)
include $(TGT_DIR)/h/make/defs.$(WIND_HOST_TYPE)
## Only redefine make definitions below this point, or your definitions will
## be overwritten by the makefile stubs above.
TARGET_DIR = pc486
VENDOR =
BOARD = PC 386/486
#
# 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.
#
# ifdef BOOTCODE_IN_RAM
ROM_TEXT_ADRS = 00008000 # ROM entry address - A: or C:
ROM_SIZE = 00090000 # number of bytes of ROM space
# else
# ROM_TEXT_ADRS = fff20000 # ROM entry address - EPROM
# ROM_SIZE = 0007fe00 # number of bytes of ROM space
# endif
RAM_LOW_ADRS = 00208000 # RAM text/data address
RAM_HIGH_ADRS = 00008000 # RAM text/data address
HEX_FLAGS = -a 0
##MACH_EXTRA = sysTffs.o
##c:\tornado\target\config\pc486\newNet.o
MACH_EXTRA = sysTffs.o d:\wj\nanrui\frame.o
RELEASE = vxWorks vxWorks.st bootrom_uncmp mkboot.o
## 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)
# Following bootable vxWorks should be placed in bootable diskette
# by "mkboot" or "mkbootFd, mkbootAta" utility.
# vxWorks_low should be downloaded by bootrom_high boot image.
# vxWorks_rom - bootable vxWorks: upper mem
# vxWorks_rom_low - bootable vxWorks: lower mem
# vxWorks.st_rom - bootable vxWorks.st(compressed): upper mem
# bootrom - bootrom(compressed): lower mem
# bootrom_uncmp - bootrom: lower mem
# bootrom_high - bootrom(compressed): upper mem
vxWorks_low vxWorks_low.sym :
- @ $(RM) vxWorks vxWorks_low vxWorks_low.sym
$(MAKE) vxWorks LD_LOW_FLAGS="$(LD_HIGH_FLAGS)"
$(CP) vxWorks vxWorks_low
$(CP) vxWorks.sym vxWorks_low.sym
- @ $(RM) vxWorks vxWorks.sym
vxWorks_rom_low :
- @ $(RM) vxWorks_rom $@
$(MAKE) vxWorks_rom LD_LOW_FLAGS="$(LD_HIGH_FLAGS)"
$(CP) vxWorks_rom $@
- @ $(RM) vxWorks_rom
bootrom_high :
$(CC) -c $(CFLAGS) -DRAM_DST_ADRS=0x$(RAM_LOW_ADRS) $(BOOTINIT)
- @ $(RM) bootrom.Z.s bootrom $@
$(MAKE) LD_HIGH_FLAGS="-Ttext $(RAM_LOW_ADRS)" bootrom.Z.s
$(MAKE) bootrom LD_LOW_FLAGS="$(LD_HIGH_FLAGS)"
$(CP) bootrom $@
- @ $(RM) bootrom.Z.* bootrom bootInit.o
# The boot image is either bootrom_uncmp or vxWorks.st_rom.
# If the EPROM is 27020 (256 Kbytes)
# $(BINHEX) -a 3fe00 -b romcard >> $@
# If the EPROM is 27040 (512 Kbytes)
# $(BINHEX) -a 7fe00 -b romcard >> $@
SED = sed
romcard_bootrom_512.hex: depend.$(BSP_NAME) romcard.o bootrom_uncmp
- @ $(RM) $@
$(LD) -o romcard -X -N -e _romcard romcard.o
$(ROMSIZEPROG) -b 7fe00 bootrom_uncmp
$(BINHEX) -a 0 bootrom_uncmp | $(SED) -e "/S9/d" > $@
$(BINHEX) -a 7fe00 -b romcard >> $@
- @ $(RM) romcard.o romcard
# The default configuration may not fit in 256 KB
# Re-configure system for a smaller image if needed.
romcard_bootrom_256.hex: depend.$(BSP_NAME) romcard.o bootrom_uncmp
- @ $(RM) $@
$(LD) -o romcard -X -N -e _romcard romcard.o
$(ROMSIZEPROG) -b 3fe00 bootrom_uncmp
$(BINHEX) -a 0 bootrom_uncmp | $(SED) -e "/S9/d" > $@
$(BINHEX) -a 3fe00 -b romcard >> $@
- @ $(RM) romcard.o romcard
romcard_vxWorks_st_512.hex: depend.$(BSP_NAME) romcard.o vxWorks.st_rom
- @ $(RM) $@
$(LD) -o romcard -X -N -e _romcard romcard.o
$(ROMSIZEPROG) -b 7fe00 vxWorks.st_rom
$(BINHEX) -a 0 vxWorks.st_rom | $(SED) -e "/S9/d" > $@
$(BINHEX) -a 7fe00 -b romcard >> $@
- @ $(RM) romcard.o romcard
# Rules to build TFFS objects
VPATH=../../src/drv/tffs
EXTRA_INCLUDE=-I$(TGT_DIR)/h/tffs
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -