NetBSD/sys/arch/shark/conf/Makefile.shark.inc
2015-08-24 14:04:24 +00:00

30 lines
807 B
PHP

# $NetBSD: Makefile.shark.inc,v 1.26 2015/08/24 14:04:25 uebayasi Exp $
CPPFLAGS+= -D${MACHINE}
CFLAGS+= -fno-unwind-tables
GENASSYM_EXTRAS+= ${THISARM}/shark/genassym.cf
# Need to convert the kernel from ELF to a.out so that OpenFirmware
# can load it.
KERNLDSCRIPT= ldscript
EXTRA_CLEAN+= ${KERNLDSCRIPT}
LOADADDRESS= 0xF0000020
ldscript: \
${ARM}/conf/kern.ldscript.head \
${ARM}/conf/kern.ldscript.tail \
$S/conf/mkldscript.sh \
${SYSTEM_OBJ}
( cat ${ARM}/conf/kern.ldscript.head ; \
OBJDUMP=${OBJDUMP} ${HOST_SH} $S/conf/mkldscript.sh \
${SYSTEM_OBJ} ; \
cat ${ARM}/conf/kern.ldscript.tail ) > ldscript
SYSTEM_LD_TAIL_EXTRA+=; \
echo "${OBJCOPY} ${OBJCOPY_ELF2AOUT_FLAGS} $@ $@.aout"; \
${OBJCOPY} ${OBJCOPY_ELF2AOUT_FLAGS} $@ $@.aout
KERNIMAGES= netbsd netbsd.aout