Makefile 1.4 KB

123456789101112131415161718192021222324252627282930313233343536
  1. # SPDX-License-Identifier: GPL-2.0
  2. # The compilers are complaining about unused variables inside an if(0) scope
  3. # block. This is daft, shut them up.
  4. ccflags-y += $(call cc-disable-warning, unused-but-set-variable)
  5. # These files are disabled because they produce non-interesting flaky coverage
  6. # that is not a function of syscall inputs. E.g. involuntary context switches.
  7. KCOV_INSTRUMENT := n
  8. # Disable KCSAN to avoid excessive noise and performance degradation. To avoid
  9. # false positives ensure barriers implied by sched functions are instrumented.
  10. KCSAN_SANITIZE := n
  11. KCSAN_INSTRUMENT_BARRIERS := y
  12. ifneq ($(CONFIG_SCHED_OMIT_FRAME_POINTER),y)
  13. # According to Alan Modra <[email protected]>, the -fno-omit-frame-pointer is
  14. # needed for x86 only. Why this used to be enabled for all architectures is beyond
  15. # me. I suspect most platforms don't need this, but until we know that for sure
  16. # I turn this off for IA-64 only. Andreas Schwab says it's also needed on m68k
  17. # to get a correct value for the wait-channel (WCHAN in ps). --davidm
  18. CFLAGS_core.o := $(PROFILING) -fno-omit-frame-pointer
  19. endif
  20. #
  21. # Build efficiency:
  22. #
  23. # These compilation units have roughly the same size and complexity - so their
  24. # build parallelizes well and finishes roughly at once:
  25. #
  26. obj-y += core.o
  27. obj-y += fair.o
  28. obj-y += build_policy.o
  29. obj-y += build_utility.o
  30. obj-$(CONFIG_SCHED_WALT) += walt/
  31. obj-$(CONFIG_ANDROID_VENDOR_HOOKS) += vendor_hooks.o