mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-31 19:41:46 +00:00
drivers/mtd/nand_legacy: Move conditional compilation to Makefile
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
This commit is contained in:
parent
cc4a0ceeac
commit
9483df6408
2 changed files with 4 additions and 6 deletions
|
@ -25,8 +25,11 @@ include $(TOPDIR)/config.mk
|
||||||
|
|
||||||
LIB := $(obj)libnand_legacy.a
|
LIB := $(obj)libnand_legacy.a
|
||||||
|
|
||||||
COBJS := nand_legacy.o
|
ifdef CONFIG_CMD_NAND
|
||||||
|
COBJS-$(CONFIG_NAND_LEGACY) := nand_legacy.o
|
||||||
|
endif
|
||||||
|
|
||||||
|
COBJS := $(COBJS-y)
|
||||||
SRCS := $(COBJS:.o=.c)
|
SRCS := $(COBJS:.o=.c)
|
||||||
OBJS := $(addprefix $(obj),$(COBJS))
|
OBJS := $(addprefix $(obj),$(COBJS))
|
||||||
|
|
||||||
|
|
|
@ -14,9 +14,6 @@
|
||||||
#include <malloc.h>
|
#include <malloc.h>
|
||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
#include <watchdog.h>
|
#include <watchdog.h>
|
||||||
|
|
||||||
#if defined(CONFIG_CMD_NAND) && defined(CONFIG_NAND_LEGACY)
|
|
||||||
|
|
||||||
#include <linux/mtd/nand_legacy.h>
|
#include <linux/mtd/nand_legacy.h>
|
||||||
#include <linux/mtd/nand_ids.h>
|
#include <linux/mtd/nand_ids.h>
|
||||||
#include <jffs2/jffs2.h>
|
#include <jffs2/jffs2.h>
|
||||||
|
@ -1608,5 +1605,3 @@ int read_jffs2_nand(size_t start, size_t len,
|
||||||
start, len, retlen, buf);
|
start, len, retlen, buf);
|
||||||
}
|
}
|
||||||
#endif /* CONFIG_JFFS2_NAND */
|
#endif /* CONFIG_JFFS2_NAND */
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue