NetBSD/sys/arch/shark/conf/Makefile.shark.inc

23 lines
644 B
PHP

# $NetBSD: Makefile.shark.inc,v 1.19 2013/08/22 20:03:15 martin Exp $
CPPFLAGS+= -D${MACHINE}
COPTS+= -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.
LINKFLAGS= -T ldscript
SYSTEM_LD_HEAD_EXTRA+=; \
( 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