mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-20 11:43:22 +00:00
1bb707c39a
Flex-OneNAND is a monolithic integrated circuit with a NAND Flash array using a NOR Flash interface. This on-chip integration enables system designers to reduce external system logic and use high-density NAND Flash in applications that would otherwise have to use more NOR components. Flex-OneNAND enables users to configure to partition it into SLC and MLC areas in more flexible way. While MLC area of Flex-OneNAND can be used to store data that require low reliability and high density, SLC area of Flex-OneNAND to store data that need high reliability and high performance. Flex-OneNAND can let users take advantage of storing these two different types of data into one chip, which is making Flex-OneNAND more cost- and space-effective. Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
68 lines
2 KiB
Makefile
68 lines
2 KiB
Makefile
|
|
include $(TOPDIR)/config.mk
|
|
include $(TOPDIR)/include/config.mk
|
|
include $(TOPDIR)/onenand_ipl/board/$(BOARDDIR)/config.mk
|
|
|
|
LDSCRIPT= $(TOPDIR)/onenand_ipl/board/$(BOARDDIR)/u-boot.onenand.lds
|
|
LDFLAGS = -Bstatic -T $(LDSCRIPT) -Ttext $(TEXT_BASE) $(PLATFORM_LDFLAGS)
|
|
AFLAGS += -DCONFIG_ONENAND_IPL
|
|
CFLAGS += -DCONFIG_ONENAND_IPL
|
|
OBJCLFAGS += --gap-fill=0x00
|
|
|
|
SOBJS = start.o low_levelinit.o
|
|
COBJS = apollon.o onenand_read.o onenand_boot.o
|
|
|
|
SRCS := $(addprefix $(obj),$(SOBJS:.o=.S) $(COBJS:.o=.c))
|
|
OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS))
|
|
__OBJS := $(SOBJS) $(COBJS)
|
|
LNDIR := $(OBJTREE)/onenand_ipl/board/$(BOARDDIR)
|
|
|
|
onenandobj := $(OBJTREE)/onenand_ipl/
|
|
|
|
ALL = $(onenandobj)onenand-ipl $(onenandobj)onenand-ipl.bin $(onenandobj)onenand-ipl-2k.bin $(onenandobj)onenand-ipl-4k.bin
|
|
|
|
all: $(obj).depend $(ALL)
|
|
|
|
$(onenandobj)onenand-ipl-2k.bin: $(onenandobj)onenand-ipl
|
|
$(OBJCOPY) ${OBJCFLAGS} --pad-to=0x800 -O binary $< $@
|
|
|
|
$(onenandobj)onenand-ipl-4k.bin: $(onenandobj)onenand-ipl
|
|
$(OBJCOPY) ${OBJCFLAGS} --pad-to=0x1000 -O binary $< $@
|
|
|
|
$(onenandobj)onenand-ipl.bin: $(onenandobj)onenand-ipl
|
|
$(OBJCOPY) ${OBJCFLAGS} -O binary $< $@
|
|
|
|
$(onenandobj)onenand-ipl: $(OBJS)
|
|
cd $(LNDIR) && $(LD) $(LDFLAGS) $$UNDEF_SYM $(__OBJS) \
|
|
-Map $(onenandobj)onenand-ipl.map \
|
|
-o $(onenandobj)onenand-ipl
|
|
|
|
# create symbolic links from common files
|
|
|
|
# from cpu directory
|
|
$(obj)start.S:
|
|
rm -f $(obj)start.S
|
|
ln -s $(SRCTREE)/cpu/$(CPU)/start.S $(obj)start.S
|
|
|
|
# from onenand_ipl directory
|
|
$(obj)onenand_ipl.h:
|
|
rm -f $(obj)onenand_ipl.h
|
|
ln -s $(SRCTREE)/onenand_ipl/onenand_ipl.h $(obj)onenand_ipl.h
|
|
|
|
$(obj)onenand_boot.c: $(obj)onenand_ipl.h
|
|
rm -f $(obj)onenand_boot.c
|
|
ln -s $(SRCTREE)/onenand_ipl/onenand_boot.c $(obj)onenand_boot.c
|
|
|
|
$(obj)onenand_read.c: $(obj)onenand_ipl.h
|
|
rm -f $(obj)onenand_read.c
|
|
ln -s $(SRCTREE)/onenand_ipl/onenand_read.c $(obj)onenand_read.c
|
|
|
|
$(obj)%.o: $(obj)%.S
|
|
$(CC) $(AFLAGS) -c -o $@ $<
|
|
|
|
$(obj)%.o: $(obj)$.c
|
|
$(CC) $(CFLAGS) -c -o $@ $<
|
|
|
|
include $(SRCTREE)/rules.mk
|
|
|
|
sinclude $(obj).depend
|