# MakeSkel - makefile skeleton for vw/config/sun3e
#
# modification history
# --------------------
# 02d,28jun90,gae  added ROM_SIZE and compression parameters.
# 02c,17feb90,gae  added makeDirs.
# 02b,20aug89,gae  added ARCH.
# 02a,24jun89,gae  added modification history.
#
# DESCRIPTION
# This file contains rules for building VxWorks for the
# Sun-3/E.
#
# The VxWorks image is usually loaded via tftp, thus
# a rule for vxWorks.b is provided to create a "stripped"
# version.
#
# BOOTROMS
# VxWorks bootroms are not usually made as EPROM space is 32K bytes.
# Usually the Sun bootroms are used to boot VxWorks with tftp.
# The bootroms generated are for going in an offboard ROM board.
# The Sun's bootroms are still used for getting to the ROM board.
#
# NOTE
# The constants ROM_TEXT_ADRS and RAM_TEXT_HIGH_ADRS
# must be identical to those in config.h.
#
# INCLUDES
#     makeHost
#     makeDirs
#     makeTarget
#*/

# ROMs are on a separate ROM-board in this case at 0x300000

ROM_TEXT_ADRS      = 00300000	# ROM entry address
ROM_SIZE           = 00020000	# number of bytes of ROM space

RAM_TEXT_LOW_ADRS  = 00004000	# RAM entry address
RAM_TEXT_HIGH_ADRS = 00370000	# RAM entry address for ROM startup

# no intial PC+SP is required

HEX_FLAGS          = -a 0
REL_LOW_FLAGS      = $(REL_TEXT_FLAG) $(RAM_TEXT_LOW_ADRS)
REL_HIGH_FLAGS     = $(REL_TEXT_FLAG) $(RAM_TEXT_HIGH_ADRS)

define(DEFCPU,MC68020)
define(DEFARCH,68K)
define(DEFVW,UP2)

include(../../misc/makeHost)
include(../../misc/makeDirs)
include(../../misc/makeTarget)

# Sun's ROM requires the file to be stripped and then placed in /tftpboot

vxWorks.b : vxWorks.sym vxWorks
	dd if=vxWorks of=vxWorks.b ibs=32 skip=1
	chmod 755 vxWorks.b

# end MakeSkel
