Makefile 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #
  2. # Copyright (C) 2002 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com)
  3. #
  4. ifeq ($(CONFIG_X86_32),y)
  5. BITS := 32
  6. else
  7. BITS := 64
  8. endif
  9. obj-y = bug.o bugs_$(BITS).o delay.o fault.o ksyms.o ldt.o \
  10. ptrace_$(BITS).o ptrace_user.o setjmp_$(BITS).o signal.o \
  11. stub_$(BITS).o stub_segv.o syscalls_$(BITS).o \
  12. sys_call_table_$(BITS).o sysrq_$(BITS).o tls_$(BITS).o \
  13. mem_$(BITS).o subarch.o os-$(OS)/
  14. ifeq ($(CONFIG_X86_32),y)
  15. obj-y += checksum_32.o
  16. obj-$(CONFIG_BINFMT_ELF) += elfcore.o
  17. subarch-y = ../lib/string_32.o ../lib/atomic64_32.o ../lib/atomic64_cx8_32.o
  18. subarch-$(CONFIG_RWSEM_XCHGADD_ALGORITHM) += ../lib/rwsem.o
  19. subarch-$(CONFIG_HIGHMEM) += ../mm/highmem_32.o
  20. else
  21. obj-y += vdso/
  22. subarch-y = ../lib/csum-partial_64.o ../lib/memcpy_64.o ../lib/thunk_64.o \
  23. ../lib/rwsem.o
  24. endif
  25. subarch-$(CONFIG_MODULES) += ../kernel/module.o
  26. USER_OBJS := bugs_$(BITS).o ptrace_user.o fault.o
  27. extra-y += user-offsets.s
  28. $(obj)/user-offsets.s: c_flags = -Wp,-MD,$(depfile) $(USER_CFLAGS) \
  29. -Iarch/x86/include/generated
  30. UNPROFILE_OBJS := stub_segv.o
  31. CFLAGS_stub_segv.o := $(CFLAGS_NO_HARDENING)
  32. include arch/um/scripts/Makefile.rules