Compile ata_mmc.c for targets with mmc, ata.c for all others.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5174 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
d2f2953a74
commit
b60b29f442
3 changed files with 2 additions and 11 deletions
|
@ -23,9 +23,10 @@ common/strtok.c
|
|||
common/timefuncs.c
|
||||
debug.c
|
||||
drivers/adc.c
|
||||
drivers/ata.c
|
||||
#ifdef HAVE_MMC
|
||||
drivers/ata_mmc.c
|
||||
#else
|
||||
drivers/ata.c
|
||||
#endif
|
||||
drivers/button.c
|
||||
drivers/dac.c
|
||||
|
|
|
@ -30,9 +30,6 @@
|
|||
#include "string.h"
|
||||
#include "hwcompat.h"
|
||||
|
||||
/* skip whole file for an MMC-based system, FIXME in makefile */
|
||||
#ifndef HAVE_MMC
|
||||
|
||||
#if CONFIG_CPU == SCF5249
|
||||
|
||||
/* don't use sh7034 assembler routines */
|
||||
|
@ -1202,5 +1199,3 @@ int ata_init(void)
|
|||
|
||||
return 0;
|
||||
}
|
||||
|
||||
#endif /* #ifndef HAVE_MMC */
|
||||
|
|
|
@ -33,9 +33,6 @@
|
|||
|
||||
#include "bitswap.h"
|
||||
|
||||
/* use file for an MMC-based system, FIXME in makefile */
|
||||
#ifdef HAVE_MMC
|
||||
|
||||
#define SECTOR_SIZE 512
|
||||
|
||||
/* Command definitions */
|
||||
|
@ -702,5 +699,3 @@ int ata_init(void)
|
|||
return rc;
|
||||
}
|
||||
|
||||
#endif /* #ifdef HAVE_MMC */
|
||||
|
||||
|
|
Loading…
Reference in a new issue