mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-28 23:51:33 +00:00
drivers/mtd/onenand: Move conditional compilation to Makefile
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
This commit is contained in:
parent
00b1883a4c
commit
4fb09b8192
4 changed files with 2 additions and 16 deletions
|
@ -25,8 +25,9 @@ include $(TOPDIR)/config.mk
|
|||
|
||||
LIB := $(obj)libonenand.a
|
||||
|
||||
COBJS := onenand_uboot.o onenand_base.o onenand_bbt.o
|
||||
COBJS-$(CONFIG_CMD_ONENAND) := onenand_uboot.o onenand_base.o onenand_bbt.o
|
||||
|
||||
COBJS := $(COBJS-y)
|
||||
SRCS := $(COBJS:.o=.c)
|
||||
OBJS := $(addprefix $(obj),$(COBJS))
|
||||
|
||||
|
|
|
@ -10,9 +10,6 @@
|
|||
*/
|
||||
|
||||
#include <common.h>
|
||||
|
||||
#ifdef CONFIG_CMD_ONENAND
|
||||
|
||||
#include <linux/mtd/compat.h>
|
||||
#include <linux/mtd/mtd.h>
|
||||
#include <linux/mtd/onenand.h>
|
||||
|
@ -1304,5 +1301,3 @@ int onenand_scan(struct mtd_info *mtd, int maxchips)
|
|||
void onenand_release(struct mtd_info *mtd)
|
||||
{
|
||||
}
|
||||
|
||||
#endif /* CONFIG_CMD_ONENAND */
|
||||
|
|
|
@ -15,9 +15,6 @@
|
|||
*/
|
||||
|
||||
#include <common.h>
|
||||
|
||||
#ifdef CONFIG_CMD_ONENAND
|
||||
|
||||
#include <linux/mtd/compat.h>
|
||||
#include <linux/mtd/mtd.h>
|
||||
#include <linux/mtd/onenand.h>
|
||||
|
@ -261,5 +258,3 @@ int onenand_default_bbt(struct mtd_info *mtd)
|
|||
|
||||
return onenand_scan_bbt(mtd, bbm->badblock_pattern);
|
||||
}
|
||||
|
||||
#endif /* CFG_CMD_ONENAND */
|
||||
|
|
|
@ -14,9 +14,6 @@
|
|||
*/
|
||||
|
||||
#include <common.h>
|
||||
|
||||
#ifdef CONFIG_CMD_ONENAND
|
||||
|
||||
#include <linux/mtd/compat.h>
|
||||
#include <linux/mtd/mtd.h>
|
||||
#include <linux/mtd/onenand.h>
|
||||
|
@ -37,5 +34,3 @@ void onenand_init(void)
|
|||
puts("OneNAND: ");
|
||||
print_size(onenand_mtd.size, "\n");
|
||||
}
|
||||
|
||||
#endif /* CONFIG_CMD_ONENAND */
|
||||
|
|
Loading…
Reference in a new issue