mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 15:14:43 +00:00
fs: convert makefiles to Kbuild style
Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
This commit is contained in:
parent
710f1d3d5f
commit
35c792754c
12 changed files with 24 additions and 312 deletions
24
fs/Makefile
24
fs/Makefile
|
@ -6,26 +6,4 @@
|
||||||
# SPDX-License-Identifier: GPL-2.0+
|
# SPDX-License-Identifier: GPL-2.0+
|
||||||
#
|
#
|
||||||
|
|
||||||
include $(TOPDIR)/config.mk
|
obj-y += fs.o
|
||||||
|
|
||||||
LIB = $(obj)libfs.o
|
|
||||||
|
|
||||||
COBJS-y += fs.o
|
|
||||||
|
|
||||||
COBJS := $(COBJS-y)
|
|
||||||
SRCS := $(COBJS:.o=.c)
|
|
||||||
OBJS := $(addprefix $(obj),$(COBJS))
|
|
||||||
|
|
||||||
all: $(LIB)
|
|
||||||
|
|
||||||
$(LIB): $(obj).depend $(OBJS)
|
|
||||||
$(call cmd_link_o_target, $(OBJS))
|
|
||||||
|
|
||||||
#########################################################################
|
|
||||||
|
|
||||||
# defines $(obj).depend target
|
|
||||||
include $(SRCTREE)/rules.mk
|
|
||||||
|
|
||||||
sinclude $(obj).depend
|
|
||||||
|
|
||||||
#########################################################################
|
|
||||||
|
|
|
@ -3,26 +3,4 @@
|
||||||
# SPDX-License-Identifier: GPL-2.0+
|
# SPDX-License-Identifier: GPL-2.0+
|
||||||
#
|
#
|
||||||
|
|
||||||
include $(TOPDIR)/config.mk
|
obj-$(CONFIG_CMD_CBFS) := cbfs.o
|
||||||
|
|
||||||
LIB = $(obj)libcbfs.o
|
|
||||||
|
|
||||||
COBJS-$(CONFIG_CMD_CBFS) := cbfs.o
|
|
||||||
|
|
||||||
SRCS := $(COBJS-y:.o=.c)
|
|
||||||
OBJS := $(addprefix $(obj),$(COBJS-y))
|
|
||||||
|
|
||||||
all: $(LIB)
|
|
||||||
|
|
||||||
$(LIB): $(obj).depend $(OBJS)
|
|
||||||
$(call cmd_link_o_target, $(OBJS))
|
|
||||||
|
|
||||||
|
|
||||||
#########################################################################
|
|
||||||
|
|
||||||
# defines $(obj).depend target
|
|
||||||
include $(SRCTREE)/rules.mk
|
|
||||||
|
|
||||||
sinclude $(obj).depend
|
|
||||||
|
|
||||||
#########################################################################
|
|
||||||
|
|
|
@ -5,30 +5,5 @@
|
||||||
# SPDX-License-Identifier: GPL-2.0+
|
# SPDX-License-Identifier: GPL-2.0+
|
||||||
#
|
#
|
||||||
|
|
||||||
include $(TOPDIR)/config.mk
|
obj-$(CONFIG_CMD_CRAMFS) := cramfs.o
|
||||||
|
obj-$(CONFIG_CMD_CRAMFS) += uncompress.o
|
||||||
LIB = $(obj)libcramfs.o
|
|
||||||
|
|
||||||
AOBJS =
|
|
||||||
COBJS-$(CONFIG_CMD_CRAMFS) := cramfs.o
|
|
||||||
COBJS-$(CONFIG_CMD_CRAMFS) += uncompress.o
|
|
||||||
|
|
||||||
SRCS := $(AOBJS:.o=.S) $(COBJS-y:.o=.c)
|
|
||||||
OBJS := $(addprefix $(obj),$(AOBJS) $(COBJS-y))
|
|
||||||
|
|
||||||
#CPPFLAGS +=
|
|
||||||
|
|
||||||
all: $(LIB) $(AOBJS)
|
|
||||||
|
|
||||||
$(LIB): $(obj).depend $(OBJS)
|
|
||||||
$(call cmd_link_o_target, $(OBJS))
|
|
||||||
|
|
||||||
|
|
||||||
#########################################################################
|
|
||||||
|
|
||||||
# defines $(obj).depend target
|
|
||||||
include $(SRCTREE)/rules.mk
|
|
||||||
|
|
||||||
sinclude $(obj).depend
|
|
||||||
|
|
||||||
#########################################################################
|
|
||||||
|
|
|
@ -9,28 +9,5 @@
|
||||||
# SPDX-License-Identifier: GPL-2.0+
|
# SPDX-License-Identifier: GPL-2.0+
|
||||||
#
|
#
|
||||||
|
|
||||||
include $(TOPDIR)/config.mk
|
obj-$(CONFIG_FS_EXT4) := ext4fs.o ext4_common.o dev.o
|
||||||
|
obj-$(CONFIG_EXT4_WRITE) += ext4_write.o ext4_journal.o crc16.o
|
||||||
LIB = $(obj)libext4fs.o
|
|
||||||
|
|
||||||
AOBJS =
|
|
||||||
COBJS-$(CONFIG_FS_EXT4) := ext4fs.o ext4_common.o dev.o
|
|
||||||
COBJS-$(CONFIG_EXT4_WRITE) += ext4_write.o ext4_journal.o crc16.o
|
|
||||||
|
|
||||||
SRCS := $(AOBJS:.o=.S) $(COBJS-y:.o=.c)
|
|
||||||
OBJS := $(addprefix $(obj),$(AOBJS) $(COBJS-y))
|
|
||||||
|
|
||||||
|
|
||||||
all: $(LIB) $(AOBJS)
|
|
||||||
|
|
||||||
$(LIB): $(obj).depend $(OBJS)
|
|
||||||
$(call cmd_link_o_target, $(OBJS))
|
|
||||||
|
|
||||||
#########################################################################
|
|
||||||
|
|
||||||
# defines $(obj).depend target
|
|
||||||
include $(SRCTREE)/rules.mk
|
|
||||||
|
|
||||||
sinclude $(obj).depend
|
|
||||||
|
|
||||||
#########################################################################
|
|
||||||
|
|
|
@ -3,34 +3,9 @@
|
||||||
# SPDX-License-Identifier: GPL-2.0+
|
# SPDX-License-Identifier: GPL-2.0+
|
||||||
#
|
#
|
||||||
|
|
||||||
include $(TOPDIR)/config.mk
|
obj-$(CONFIG_FS_FAT) := fat.o
|
||||||
|
obj-$(CONFIG_FAT_WRITE):= fat_write.o
|
||||||
LIB = $(obj)libfat.o
|
|
||||||
|
|
||||||
AOBJS =
|
|
||||||
COBJS-$(CONFIG_FS_FAT) := fat.o
|
|
||||||
COBJS-$(CONFIG_FAT_WRITE):= fat_write.o
|
|
||||||
|
|
||||||
ifndef CONFIG_SPL_BUILD
|
ifndef CONFIG_SPL_BUILD
|
||||||
COBJS-$(CONFIG_FS_FAT) += file.o
|
obj-$(CONFIG_FS_FAT) += file.o
|
||||||
endif
|
endif
|
||||||
|
|
||||||
SRCS := $(AOBJS:.o=.S) $(COBJS-y:.o=.c)
|
|
||||||
OBJS := $(addprefix $(obj),$(AOBJS) $(COBJS-y))
|
|
||||||
|
|
||||||
all: $(LIB) $(AOBJS)
|
|
||||||
|
|
||||||
$(LIB): $(obj).depend $(OBJS)
|
|
||||||
$(call cmd_link_o_target, $(OBJS))
|
|
||||||
|
|
||||||
# SEE README.arm-unaligned-accesses
|
|
||||||
$(obj)file.o: CFLAGS += $(PLATFORM_NO_UNALIGNED)
|
|
||||||
|
|
||||||
#########################################################################
|
|
||||||
|
|
||||||
# defines $(obj).depend target
|
|
||||||
include $(SRCTREE)/rules.mk
|
|
||||||
|
|
||||||
sinclude $(obj).depend
|
|
||||||
|
|
||||||
#########################################################################
|
|
||||||
|
|
|
@ -10,29 +10,4 @@
|
||||||
# SPDX-License-Identifier: GPL-2.0+
|
# SPDX-License-Identifier: GPL-2.0+
|
||||||
#
|
#
|
||||||
|
|
||||||
include $(TOPDIR)/config.mk
|
obj-$(CONFIG_CMD_FDOS) := fat.o vfat.o dev.o fdos.o fs.o subdir.o
|
||||||
|
|
||||||
LIB = $(obj)libfdos.o
|
|
||||||
|
|
||||||
AOBJS =
|
|
||||||
COBJS-$(CONFIG_CMD_FDOS) := fat.o vfat.o dev.o fdos.o fs.o subdir.o
|
|
||||||
|
|
||||||
SRCS := $(AOBJS:.o=.S) $(COBJS-y:.o=.c)
|
|
||||||
OBJS := $(addprefix $(obj),$(AOBJS) $(COBJS-y))
|
|
||||||
|
|
||||||
#CPPFLAGS +=
|
|
||||||
|
|
||||||
all: $(LIB) $(AOBJS)
|
|
||||||
|
|
||||||
$(LIB): $(obj).depend $(OBJS)
|
|
||||||
$(call cmd_link_o_target, $(OBJS))
|
|
||||||
|
|
||||||
|
|
||||||
#########################################################################
|
|
||||||
|
|
||||||
# defines $(obj).depend target
|
|
||||||
include $(SRCTREE)/rules.mk
|
|
||||||
|
|
||||||
sinclude $(obj).depend
|
|
||||||
|
|
||||||
#########################################################################
|
|
||||||
|
|
|
@ -5,37 +5,11 @@
|
||||||
# SPDX-License-Identifier: GPL-2.0+
|
# SPDX-License-Identifier: GPL-2.0+
|
||||||
#
|
#
|
||||||
|
|
||||||
include $(TOPDIR)/config.mk
|
|
||||||
|
|
||||||
LIB = $(obj)libjffs2.o
|
|
||||||
|
|
||||||
AOBJS =
|
|
||||||
ifdef CONFIG_CMD_JFFS2
|
ifdef CONFIG_CMD_JFFS2
|
||||||
COBJS-$(CONFIG_JFFS2_LZO) += compr_lzo.o
|
obj-$(CONFIG_JFFS2_LZO) += compr_lzo.o
|
||||||
COBJS-y += compr_rtime.o
|
obj-y += compr_rtime.o
|
||||||
COBJS-y += compr_rubin.o
|
obj-y += compr_rubin.o
|
||||||
COBJS-y += compr_zlib.o
|
obj-y += compr_zlib.o
|
||||||
COBJS-y += jffs2_1pass.o
|
obj-y += jffs2_1pass.o
|
||||||
COBJS-y += mini_inflate.o
|
obj-y += mini_inflate.o
|
||||||
endif
|
endif
|
||||||
|
|
||||||
COBJS := $(COBJS-y)
|
|
||||||
SRCS := $(AOBJS:.o=.S) $(COBJS:.o=.c)
|
|
||||||
OBJS := $(addprefix $(obj),$(AOBJS) $(COBJS))
|
|
||||||
|
|
||||||
#CPPFLAGS +=
|
|
||||||
|
|
||||||
all: $(LIB) $(AOBJS)
|
|
||||||
|
|
||||||
$(LIB): $(obj).depend $(OBJS)
|
|
||||||
$(call cmd_link_o_target, $(OBJS))
|
|
||||||
|
|
||||||
|
|
||||||
#########################################################################
|
|
||||||
|
|
||||||
# defines $(obj).depend target
|
|
||||||
include $(SRCTREE)/rules.mk
|
|
||||||
|
|
||||||
sinclude $(obj).depend
|
|
||||||
|
|
||||||
#########################################################################
|
|
||||||
|
|
|
@ -9,28 +9,4 @@
|
||||||
# SPDX-License-Identifier: GPL-2.0+
|
# SPDX-License-Identifier: GPL-2.0+
|
||||||
#
|
#
|
||||||
|
|
||||||
include $(TOPDIR)/config.mk
|
obj-$(CONFIG_CMD_REISER) := reiserfs.o dev.o mode_string.o
|
||||||
|
|
||||||
LIB = $(obj)libreiserfs.o
|
|
||||||
|
|
||||||
AOBJS =
|
|
||||||
COBJS-$(CONFIG_CMD_REISER) := reiserfs.o dev.o mode_string.o
|
|
||||||
|
|
||||||
SRCS := $(AOBJS:.o=.S) $(COBJS-y:.o=.c)
|
|
||||||
OBJS := $(addprefix $(obj),$(AOBJS) $(COBJS-y))
|
|
||||||
|
|
||||||
#CPPFLAGS +=
|
|
||||||
|
|
||||||
all: $(LIB) $(AOBJS)
|
|
||||||
|
|
||||||
$(LIB): $(obj).depend $(OBJS)
|
|
||||||
$(call cmd_link_o_target, $(OBJS))
|
|
||||||
|
|
||||||
#########################################################################
|
|
||||||
|
|
||||||
# defines $(obj).depend target
|
|
||||||
include $(SRCTREE)/rules.mk
|
|
||||||
|
|
||||||
sinclude $(obj).depend
|
|
||||||
|
|
||||||
#########################################################################
|
|
||||||
|
|
|
@ -10,25 +10,4 @@
|
||||||
# SPDX-License-Identifier: GPL-2.0+
|
# SPDX-License-Identifier: GPL-2.0+
|
||||||
#
|
#
|
||||||
|
|
||||||
include $(TOPDIR)/config.mk
|
obj-$(CONFIG_SANDBOX) := sandboxfs.o
|
||||||
|
|
||||||
LIB = $(obj)libsandboxfs.o
|
|
||||||
|
|
||||||
COBJS-$(CONFIG_SANDBOX) := sandboxfs.o
|
|
||||||
|
|
||||||
SRCS := $(COBJS-y:.o=.c)
|
|
||||||
OBJS := $(addprefix $(obj),$(AOBJS) $(COBJS-y))
|
|
||||||
|
|
||||||
all: $(LIB) $(AOBJS)
|
|
||||||
|
|
||||||
$(LIB): $(obj).depend $(OBJS)
|
|
||||||
$(call cmd_link_o_target, $(OBJS))
|
|
||||||
|
|
||||||
#########################################################################
|
|
||||||
|
|
||||||
# defines $(obj).depend target
|
|
||||||
include $(SRCTREE)/rules.mk
|
|
||||||
|
|
||||||
sinclude $(obj).depend
|
|
||||||
|
|
||||||
#########################################################################
|
|
||||||
|
|
|
@ -9,31 +9,10 @@
|
||||||
# SPDX-License-Identifier: GPL-2.0+
|
# SPDX-License-Identifier: GPL-2.0+
|
||||||
#
|
#
|
||||||
|
|
||||||
include $(TOPDIR)/config.mk
|
obj-$(CONFIG_CMD_UBIFS) := ubifs.o io.o super.o sb.o master.o lpt.o
|
||||||
|
obj-$(CONFIG_CMD_UBIFS) += lpt_commit.o scan.o lprops.o
|
||||||
LIB = $(obj)libubifs.o
|
obj-$(CONFIG_CMD_UBIFS) += tnc.o tnc_misc.o debug.o crc16.o budget.o
|
||||||
|
obj-$(CONFIG_CMD_UBIFS) += log.o orphan.o recovery.o replay.o
|
||||||
COBJS-$(CONFIG_CMD_UBIFS) := ubifs.o io.o super.o sb.o master.o lpt.o
|
|
||||||
COBJS-$(CONFIG_CMD_UBIFS) += lpt_commit.o scan.o lprops.o
|
|
||||||
COBJS-$(CONFIG_CMD_UBIFS) += tnc.o tnc_misc.o debug.o crc16.o budget.o
|
|
||||||
COBJS-$(CONFIG_CMD_UBIFS) += log.o orphan.o recovery.o replay.o
|
|
||||||
|
|
||||||
SRCS := $(AOBJS:.o=.S) $(COBJS-y:.o=.c)
|
|
||||||
OBJS := $(addprefix $(obj),$(AOBJS) $(COBJS-y))
|
|
||||||
|
|
||||||
all: $(LIB) $(AOBJS)
|
|
||||||
|
|
||||||
$(LIB): $(obj).depend $(OBJS)
|
|
||||||
$(call cmd_link_o_target, $(OBJS))
|
|
||||||
|
|
||||||
# SEE README.arm-unaligned-accesses
|
# SEE README.arm-unaligned-accesses
|
||||||
$(obj)super.o: CFLAGS += $(PLATFORM_NO_UNALIGNED)
|
$(obj)super.o: CFLAGS += $(PLATFORM_NO_UNALIGNED)
|
||||||
|
|
||||||
#########################################################################
|
|
||||||
|
|
||||||
# defines $(obj).depend target
|
|
||||||
include $(SRCTREE)/rules.mk
|
|
||||||
|
|
||||||
sinclude $(obj).depend
|
|
||||||
|
|
||||||
#########################################################################
|
|
||||||
|
|
|
@ -16,11 +16,7 @@
|
||||||
#
|
#
|
||||||
# $Id: Makefile,v 1.15 2007/07/18 19:40:38 charles Exp $
|
# $Id: Makefile,v 1.15 2007/07/18 19:40:38 charles Exp $
|
||||||
|
|
||||||
include $(TOPDIR)/config.mk
|
obj-$(CONFIG_YAFFS2) := \
|
||||||
|
|
||||||
LIB = $(obj)libyaffs2.o
|
|
||||||
|
|
||||||
COBJS-$(CONFIG_YAFFS2) := \
|
|
||||||
yaffs_allocator.o yaffs_attribs.o yaffs_bitmap.o yaffs_uboot_glue.o\
|
yaffs_allocator.o yaffs_attribs.o yaffs_bitmap.o yaffs_uboot_glue.o\
|
||||||
yaffs_checkptrw.o yaffs_ecc.o yaffs_error.o \
|
yaffs_checkptrw.o yaffs_ecc.o yaffs_error.o \
|
||||||
yaffsfs.o yaffs_guts.o yaffs_nameval.o yaffs_nand.o\
|
yaffsfs.o yaffs_guts.o yaffs_nameval.o yaffs_nand.o\
|
||||||
|
@ -28,36 +24,9 @@ COBJS-$(CONFIG_YAFFS2) := \
|
||||||
yaffs_summary.o yaffs_tagscompat.o yaffs_verify.o yaffs_yaffs1.o \
|
yaffs_summary.o yaffs_tagscompat.o yaffs_verify.o yaffs_yaffs1.o \
|
||||||
yaffs_yaffs2.o yaffs_mtdif.o yaffs_mtdif2.o
|
yaffs_yaffs2.o yaffs_mtdif.o yaffs_mtdif2.o
|
||||||
|
|
||||||
SRCS := $(COBJS-y:.o=.c)
|
|
||||||
OBJS := $(addprefix $(obj),$(COBJS-y))
|
|
||||||
|
|
||||||
YCFLAGS = -DCONFIG_YAFFS_DIRECT -DCONFIG_YAFFS_SHORT_NAMES_IN_RAM
|
YCFLAGS = -DCONFIG_YAFFS_DIRECT -DCONFIG_YAFFS_SHORT_NAMES_IN_RAM
|
||||||
YCFLAGS += -DCONFIG_YAFFS_YAFFS2 -DNO_Y_INLINE
|
YCFLAGS += -DCONFIG_YAFFS_YAFFS2 -DNO_Y_INLINE
|
||||||
YCFLAGS += -DCONFIG_YAFFS_PROVIDE_DEFS -DCONFIG_YAFFSFS_PROVIDE_VALUES
|
YCFLAGS += -DCONFIG_YAFFS_PROVIDE_DEFS -DCONFIG_YAFFSFS_PROVIDE_VALUES
|
||||||
|
|
||||||
CFLAGS += $(YCFLAGS)
|
CFLAGS += $(YCFLAGS)
|
||||||
CPPFLAGS += $(YCFLAGS)
|
CPPFLAGS += $(YCFLAGS)
|
||||||
|
|
||||||
all: $(LIB)
|
|
||||||
|
|
||||||
$(obj)libyaffs2.a: $(obj).depend $(OBJS)
|
|
||||||
$(AR) $(ARFLAGS) $@ $(OBJS)
|
|
||||||
|
|
||||||
$(obj)libyaffs2.o: $(obj).depend $(OBJS)
|
|
||||||
$(call cmd_link_o_target, $(OBJS))
|
|
||||||
|
|
||||||
.PHONY: clean distclean
|
|
||||||
clean:
|
|
||||||
rm -f $(OBJS)
|
|
||||||
|
|
||||||
distclean: clean
|
|
||||||
rm -f $(LIB) core *.bak .depend
|
|
||||||
|
|
||||||
#########################################################################
|
|
||||||
|
|
||||||
# defines $(obj).depend target
|
|
||||||
include $(SRCTREE)/rules.mk
|
|
||||||
|
|
||||||
sinclude $(obj).depend
|
|
||||||
|
|
||||||
#########################################################################
|
|
||||||
|
|
|
@ -5,27 +5,4 @@
|
||||||
# SPDX-License-Identifier: GPL-2.0+
|
# SPDX-License-Identifier: GPL-2.0+
|
||||||
#
|
#
|
||||||
|
|
||||||
include $(TOPDIR)/config.mk
|
obj-$(CONFIG_CMD_ZFS) := dev.o zfs.o zfs_fletcher.o zfs_sha256.o zfs_lzjb.o
|
||||||
|
|
||||||
LIB = $(obj)libzfs.o
|
|
||||||
|
|
||||||
AOBJS =
|
|
||||||
COBJS-$(CONFIG_CMD_ZFS) := dev.o zfs.o zfs_fletcher.o zfs_sha256.o zfs_lzjb.o
|
|
||||||
|
|
||||||
SRCS := $(AOBJS:.o=.S) $(COBJS-y:.o=.c)
|
|
||||||
OBJS := $(addprefix $(obj),$(AOBJS) $(COBJS-y))
|
|
||||||
|
|
||||||
|
|
||||||
all: $(LIB) $(AOBJS)
|
|
||||||
|
|
||||||
$(LIB): $(obj).depend $(OBJS)
|
|
||||||
$(call cmd_link_o_target, $(OBJS))
|
|
||||||
|
|
||||||
#########################################################################
|
|
||||||
|
|
||||||
# defines $(obj).depend target
|
|
||||||
include $(SRCTREE)/rules.mk
|
|
||||||
|
|
||||||
sinclude $(obj).depend
|
|
||||||
|
|
||||||
#########################################################################
|
|
||||||
|
|
Loading…
Reference in a new issue