# $NetBSD: Makefile.cats.inc,v 1.36.30.1 2023/09/11 13:35:38 martin Exp $ MACHINE_ARCH?= arm CPPFLAGS+= -D${MACHINE} .if defined(ABLEELF) && (${ABLEELF} == "1") # use a standard ELF format, adjusted to align areas KERNLDSCRIPT= ${THISARM}/conf/ldscript.elf .else # Need to convert the kernel from ELF to a.out so that the firmware # can load it. CFLAGS+= -fno-unwind-tables LOADADDRESS= 0xF0000020 KERNLDSCRIPT= ldscript EXTRA_CLEAN+= ${KERNLDSCRIPT} ${KERNLDSCRIPT}: \ ${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 ) > $@ SYSTEM_LD_TAIL_EXTRA+=; \ echo "${ARM_ELF2AOUT} $@ $@.aout"; \ ${ARM_ELF2AOUT} $@ $@.aout .endif