summaryrefslogtreecommitdiffstats
path: root/sys/conf/Makefile.arm
diff options
context:
space:
mode:
authorcognet <cognet@FreeBSD.org>2004-09-23 22:47:57 +0000
committercognet <cognet@FreeBSD.org>2004-09-23 22:47:57 +0000
commite4b4e75d89e79b842a2209b211c301349b9141e9 (patch)
treee1da207e56b0e64109e6eeaf5e52556035299d15 /sys/conf/Makefile.arm
parenta5a4c2b9b80fef4ca2bcb8c4356e00568bf109e2 (diff)
downloadFreeBSD-src-e4b4e75d89e79b842a2209b211c301349b9141e9.zip
FreeBSD-src-e4b4e75d89e79b842a2209b211c301349b9141e9.tar.gz
Add the possibility to specify the kernel virtual address and the kernel
physical address in the kernel config file, as it varies from CPU to CPU.
Diffstat (limited to 'sys/conf/Makefile.arm')
-rw-r--r--sys/conf/Makefile.arm10
1 files changed, 7 insertions, 3 deletions
diff --git a/sys/conf/Makefile.arm b/sys/conf/Makefile.arm
index dbbe7d6..17f1097 100644
--- a/sys/conf/Makefile.arm
+++ b/sys/conf/Makefile.arm
@@ -8,11 +8,11 @@
# This makefile is constructed from a machine description:
# config machineid
# Most changes should be made in the machine description
-# /sys/powerpc/conf/``machineid''
+# /sys/arm/conf/``machineid''
# after which you should do
# config machineid
# Generic makefile changes should be made in
-# /sys/conf/Makefile.powerpc
+# /sys/conf/Makefile.arm
# after which config should be rerun for all machines.
#
@@ -33,7 +33,8 @@ S= ../../..
.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}
%BEFORE_DEPEND
%OBJS
@@ -46,6 +47,9 @@ S= ../../..
%CLEAN
+ldscript.$M: $S/conf/ldscript.$M
+ cat $S/conf/ldscript.$M|sed s/KERNPHYSADDR/${KERNPHYSADDR}/g| \
+ sed s/KERNVIRTADDR/${KERNVIRTADDR}/g > ldscript.$M
%RULES
.include "$S/conf/kern.post.mk"
OpenPOWER on IntegriCloud