config.mk 910 B

123456789101112131415161718192021222324252627282930313233343536
  1. #
  2. # (C) Copyright 2000-2010
  3. # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  4. #
  5. # SPDX-License-Identifier: GPL-2.0+
  6. #
  7. CROSS_COMPILE ?= ppc_8xx-
  8. CONFIG_STANDALONE_LOAD_ADDR ?= 0x40000
  9. LDFLAGS_FINAL += --gc-sections
  10. PLATFORM_RELFLAGS += -fpic -mrelocatable -ffunction-sections -fdata-sections
  11. PLATFORM_CPPFLAGS += -DCONFIG_PPC -D__powerpc__
  12. PLATFORM_LDFLAGS += -n
  13. # Support generic board on PPC
  14. __HAVE_ARCH_GENERIC_BOARD := y
  15. #
  16. # When cross-compiling on NetBSD, we have to define __PPC__ or else we
  17. # will pick up a va_list declaration that is incompatible with the
  18. # actual argument lists emitted by the compiler.
  19. #
  20. # [Tested on NetBSD/i386 1.5 + cross-powerpc-netbsd-1.3]
  21. ifeq ($(CROSS_COMPILE),powerpc-netbsd-)
  22. PLATFORM_CPPFLAGS+= -D__PPC__
  23. endif
  24. ifeq ($(CROSS_COMPILE),powerpc-openbsd-)
  25. PLATFORM_CPPFLAGS+= -D__PPC__
  26. endif
  27. # Only test once
  28. ifneq ($(CONFIG_SPL_BUILD),y)
  29. ALL-y += checkgcc4
  30. endif