1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-17 10:26:15 +00:00
freebsd/sys/conf/Makefile.arm

77 lines
1.5 KiB
Makefile
Raw Normal View History

2004-05-14 11:49:40 +00:00
# Makefile.arm -- with config changes.
# Copyright 1990 W. Jolitz
# from: @(#)Makefile.i386 7.1 5/10/91
# $FreeBSD$
#
# Makefile for FreeBSD
#
# This makefile is constructed from a machine description:
# config machineid
# Most changes should be made in the machine description
# /sys/arm/conf/``machineid''
2004-05-14 11:49:40 +00:00
# after which you should do
# config machineid
# Generic makefile changes should be made in
# /sys/conf/Makefile.arm
2004-05-14 11:49:40 +00:00
# after which config should be rerun for all machines.
#
# Which version of config(8) is required.
%VERSREQ= 600002
2004-05-14 11:49:40 +00:00
# Temporary stuff while we're still embryonic
NO_MODULES=
2004-05-14 11:49:40 +00:00
STD8X16FONT?= iso
.if !defined(S)
.if exists(./@/.)
S= ./@
.else
S= ../../..
.endif
.endif
.include "$S/conf/kern.pre.mk"
SYSTEM_LD:= ${SYSTEM_LD:$S/conf/ldscript.$M=ldscript.$M}
SYSTEM_DEP:= ${SYSTEM_DEP:$S/conf/ldscript.$M=ldscript.$M}
.if defined(ARM_BIG_ENDIAN)
CC += -mbig-endian
SYSTEM_LD += -EB
.endif
.if !defined(DEBUG)
CFLAGS += -mno-apcs-frame
.endif
2005-10-03 14:09:58 +00:00
DDB_ENABLED!= grep DDB opt_ddb.h || true
.if ${DDB_ENABLED} != ""
2005-10-03 14:09:58 +00:00
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
2004-05-14 11:49:40 +00:00
%BEFORE_DEPEND
%OBJS
%FILES.c
%FILES.s
%FILES.m
%CLEAN
.if ${DDB_ENABLED} != ""
CLEAN+= kernel.tramp
.endif
ldscript.$M: $S/conf/ldscript.$M
cat $S/conf/ldscript.$M|sed s/KERNPHYSADDR/${KERNPHYSADDR}/g| \
sed s/KERNVIRTADDR/${KERNVIRTADDR}/g > ldscript.$M
2004-05-14 11:49:40 +00:00
%RULES
.include "$S/conf/kern.post.mk"