]> Zhao Yanbai Git Server - minix.git/commitdiff
arm:mmc only compile mmchs when targeting arm. 95/595/1
authorKees Jongenburger <kees.jongenburger@gmail.com>
Fri, 24 May 2013 13:39:41 +0000 (15:39 +0200)
committerKees Jongenburger <kees.jongenburger@gmail.com>
Fri, 24 May 2013 13:46:59 +0000 (15:46 +0200)
Change-Id: Ie8d0b6461b58c2a7becda98401dece81be607a01

drivers/mmc/Makefile
drivers/mmc/mmcblk.c

index 2e8f9df895faa085367c31cda7d7e864b9141a81..efca6b02e59ca7128bbc52f0a8cbb96d4bdd1ad1 100644 (file)
@@ -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
index e2ed76b9cb3650f0ea3289cd2223d5d82ade5a43..4720a9826e86fbdf373bdb35852a2c7073b19364 100644 (file)
@@ -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 {