summaryrefslogtreecommitdiffstats
path: root/sys/conf/Makefile.arm
diff options
context:
space:
mode:
authorraj <raj@FreeBSD.org>2008-02-05 10:46:30 +0000
committerraj <raj@FreeBSD.org>2008-02-05 10:46:30 +0000
commit8c4ccad611f1905c991c2f1ede46db8838899f61 (patch)
treec4c9a9943432aae255fe95e78ba8063b382a46cc /sys/conf/Makefile.arm
parent172a5277b433c2d26ca8eb03880fde77e632a14b (diff)
downloadFreeBSD-src-8c4ccad611f1905c991c2f1ede46db8838899f61.zip
FreeBSD-src-8c4ccad611f1905c991c2f1ede46db8838899f61.tar.gz
Introduce a standalone shell script for embedding MFS image.
This allows to fix a problem with ARM kernel.bin not having the MFS image embedded: it is objcopied from the kernel.noheader temporary ELF file, which was not subject to embedding the MFS image previously. Reviewed by: imp Approved by: cognet (mentor)
Diffstat (limited to 'sys/conf/Makefile.arm')
-rw-r--r--sys/conf/Makefile.arm4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/conf/Makefile.arm b/sys/conf/Makefile.arm
index 4ac4a07..574d422 100644
--- a/sys/conf/Makefile.arm
+++ b/sys/conf/Makefile.arm
@@ -63,6 +63,10 @@ SYSTEM_LD_TAIL +=;sed s/" + SIZEOF_HEADERS"// ldscript.$M\
${KERNEL_KO}.bin; \
rm ${FULLKERNEL}.noheader
+.if defined(MFS_IMAGE)
+SYSTEM_LD_TAIL += ;sh ${S}/tools/embed_mfs.sh ${KERNEL_KO}.bin ${MFS_IMAGE};
+.endif
+
FILES_CPU_FUNC = $S/$M/$M/cpufunc_asm_arm7tdmi.S \
$S/$M/$M/cpufunc_asm_arm8.S $S/$M/$M/cpufunc_asm_arm9.S \
$S/$M/$M/cpufunc_asm_sa1.S $S/$M/$M/cpufunc_asm_arm10.S \
OpenPOWER on IntegriCloud