From: Kees Jongenburger Date: Fri, 24 May 2013 13:39:41 +0000 (+0200) Subject: arm:mmc only compile mmchs when targeting arm. X-Git-Tag: v3.3.0~961 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/zlib_tech.html?a=commitdiff_plain;h=0748a95f88c56b2f5c14cc75b9aac5be6550c24f;p=minix.git arm:mmc only compile mmchs when targeting arm. Change-Id: Ie8d0b6461b58c2a7becda98401dece81be607a01 --- diff --git a/drivers/mmc/Makefile b/drivers/mmc/Makefile index 2e8f9df89..efca6b02e 100644 --- a/drivers/mmc/Makefile +++ b/drivers/mmc/Makefile @@ -1,6 +1,12 @@ # Makefile for the mmc driver. PROG= mmc -SRCS= mmcblk.c mmchost_mmchs.c mmchost_dummy.c mmclog.h sdhcreg.h sdmmcreg.h +SRCS= mmcblk.c mmchost_dummy.c mmclog.h sdhcreg.h sdmmcreg.h + + +.if ${MACHINE_ARCH} == "earm" +SRCS += mmchost_mmchs.c +.endif + DPADD+= ${LIBBLOCKDRIVER} ${LIBSYS} LDADD+= -lblockdriver -lsys diff --git a/drivers/mmc/mmcblk.c b/drivers/mmc/mmcblk.c index e2ed76b9c..4720a9826 100644 --- a/drivers/mmc/mmcblk.c +++ b/drivers/mmc/mmcblk.c @@ -112,7 +112,9 @@ apply_env() || strncmp(driver, "mmchs", strlen("mmchs") + 1) == 0) { /* early init of host mmc host controller. This code should * depend on knowing the hardware that is running bellow. */ +#ifdef __arm__ host_initialize_host_structure_mmchs(&host); +#endif } else if (strncmp(driver, "dummy", strlen("dummy") + 1) == 0) { host_initialize_host_structure_dummy(&host); } else {