From 01ecc0328d66623630a851bfcf6ae20248b32781 Mon Sep 17 00:00:00 2001 From: Marius Strobl Date: Sat, 25 Jun 2011 16:01:45 +0000 Subject: [PATCH] As with EFI, OFW and U-Boot etc only compile FDT support on those architectures that actually use it. --- sys/boot/Makefile | 4 ---- sys/boot/Makefile.arm | 4 ++++ sys/boot/Makefile.powerpc | 4 ++++ 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/sys/boot/Makefile b/sys/boot/Makefile index cfc82b98201f..06cffb12c267 100644 --- a/sys/boot/Makefile +++ b/sys/boot/Makefile @@ -8,10 +8,6 @@ SUBDIR+= ficl .endif -.if ${MK_FDT} != "no" -SUBDIR+= fdt -.endif - # Pick the machine-dependent subdir based on the target architecture. ADIR= ${MACHINE:S/amd64/i386/:S/powerpc64/powerpc/} .if exists(${.CURDIR}/${ADIR}/.) diff --git a/sys/boot/Makefile.arm b/sys/boot/Makefile.arm index f96104db47c5..46fc5742fbf6 100644 --- a/sys/boot/Makefile.arm +++ b/sys/boot/Makefile.arm @@ -1,3 +1,7 @@ # $FreeBSD$ +.if ${MK_FDT} != "no" +SUBDIR+= fdt +.endif + SUBDIR+= uboot diff --git a/sys/boot/Makefile.powerpc b/sys/boot/Makefile.powerpc index ca8c33139b11..b7660f4600d4 100644 --- a/sys/boot/Makefile.powerpc +++ b/sys/boot/Makefile.powerpc @@ -1,4 +1,8 @@ # $FreeBSD$ +.if ${MK_FDT} != "no" +SUBDIR+= fdt +.endif + SUBDIR+= ofw SUBDIR+= uboot