1 # SPDX-License-Identifier: GPL-2.0 << 2 # 1 # 3 # Makefile for the linux reiser-filesystem rou 2 # Makefile for the linux reiser-filesystem routines. 4 # 3 # >> 4 # Note! Dependencies are done automagically by 'make dep', which also >> 5 # removes any old dependencies. DON'T put your own dependencies here >> 6 # unless it's something special (ie not a .c file). >> 7 # >> 8 # Note 2! The CFLAGS definitions are now in the main makefile... 5 9 6 obj-$(CONFIG_REISERFS_FS) += reiserfs.o !! 10 O_TARGET := reiserfs.o 7 !! 11 obj-y := bitmap.o do_balan.o namei.o inode.o file.o dir.o fix_node.o super.o prints.o objectid.o \ 8 reiserfs-objs := bitmap.o do_balan.o namei.o i !! 12 lbalance.o ibalance.o stree.o hashes.o buffer2.o tail_conversion.o journal.o resize.o item_ops.o ioctl.o procfs.o 9 super.o prints.o objectid.o l !! 13 10 hashes.o tail_conversion.o jo !! 14 obj-m := $(O_TARGET) 11 item_ops.o ioctl.o xattr.o lo !! 15 12 !! 16 # gcc -O2 (the kernel default) is overaggressive on ppc32 when many inline 13 ifeq ($(CONFIG_REISERFS_PROC_INFO),y) !! 17 # functions are used. This causes the compiler to advance the stack 14 reiserfs-objs += procfs.o !! 18 # pointer out of the available stack space, corrupting kernel space, 15 endif !! 19 # and causing a panic. Since this behavior only affects ppc32, this ifeq 16 !! 20 # will work around it. If any other architecture displays this behavior, 17 ifeq ($(CONFIG_REISERFS_FS_XATTR),y) !! 21 # add it here. 18 reiserfs-objs += xattr_user.o xattr_trusted.o !! 22 ifeq ($(CONFIG_PPC32),y) 19 endif !! 23 EXTRA_CFLAGS := -O1 20 << 21 ifeq ($(CONFIG_REISERFS_FS_SECURITY),y) << 22 reiserfs-objs += xattr_security.o << 23 endif 24 endif 24 25 25 ifeq ($(CONFIG_REISERFS_FS_POSIX_ACL),y) !! 26 include $(TOPDIR)/Rules.make 26 reiserfs-objs += xattr_acl.o << 27 endif << 28 27 29 TAGS: 28 TAGS: 30 etags *.c 29 etags *.c >> 30
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.