diff options
author | cognet <cognet@FreeBSD.org> | 2005-10-03 14:09:58 +0000 |
---|---|---|
committer | cognet <cognet@FreeBSD.org> | 2005-10-03 14:09:58 +0000 |
commit | 61bb392fc2d9ff7edc6d57c990bab8973bf7f8b2 (patch) | |
tree | e4139ec301d7dc982dd0b08438ac20af8000cf58 /sys | |
parent | 580ccee2bf5d61c530a2003b3abf0b30922d9931 (diff) | |
download | FreeBSD-src-61bb392fc2d9ff7edc6d57c990bab8973bf7f8b2.zip FreeBSD-src-61bb392fc2d9ff7edc6d57c990bab8973bf7f8b2.tar.gz |
Makefile magic for the ELF trampoline.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/conf/Makefile.arm | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/conf/Makefile.arm b/sys/conf/Makefile.arm index 1785001..9fd7831 100644 --- a/sys/conf/Makefile.arm +++ b/sys/conf/Makefile.arm @@ -44,6 +44,15 @@ SYSTEM_LD += -EB .if !defined(DEBUG) CFLAGS += -mno-apcs-frame .endif + +DDB_ENABLED!= grep DDB opt_ddb.h || true + +.if defined(DDB_ENABLED) +SYSTEM_LD_TAIL += ;echo "\#define KERNNAME \"${KERNEL_KO}\"" >opt_kernname.h ; \ + ${CC} -O -nostdlib -I. -Xlinker -T -Xlinker ldscript.arm \ + $S/$M/$M/elf_trampoline.c $S/$M/$M/inckern.S -o ${KERNEL_KO}.tramp +.endif + %BEFORE_DEPEND %OBJS |