Makefile 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # SPDX-License-Identifier: GPL-2.0
  2. #
  3. # Makefile for the linux reiser-filesystem routines.
  4. #
  5. obj-$(CONFIG_REISERFS_FS) += reiserfs.o
  6. reiserfs-objs := bitmap.o do_balan.o namei.o inode.o file.o dir.o fix_node.o \
  7. super.o prints.o objectid.o lbalance.o ibalance.o stree.o \
  8. hashes.o tail_conversion.o journal.o resize.o \
  9. item_ops.o ioctl.o xattr.o lock.o
  10. ifeq ($(CONFIG_REISERFS_PROC_INFO),y)
  11. reiserfs-objs += procfs.o
  12. endif
  13. ifeq ($(CONFIG_REISERFS_FS_XATTR),y)
  14. reiserfs-objs += xattr_user.o xattr_trusted.o
  15. endif
  16. ifeq ($(CONFIG_REISERFS_FS_SECURITY),y)
  17. reiserfs-objs += xattr_security.o
  18. endif
  19. ifeq ($(CONFIG_REISERFS_FS_POSIX_ACL),y)
  20. reiserfs-objs += xattr_acl.o
  21. endif
  22. # gcc -O2 (the kernel default) is overaggressive on ppc32 when many inline
  23. # functions are used. This causes the compiler to advance the stack
  24. # pointer out of the available stack space, corrupting kernel space,
  25. # and causing a panic. Since this behavior only affects ppc32, this ifeq
  26. # will work around it. If any other architecture displays this behavior,
  27. # add it here.
  28. ccflags-$(CONFIG_PPC32) := $(call cc-ifversion, -lt, 0400, -O1)
  29. TAGS:
  30. etags *.c