config.mk 612 B

12345678910111213141516171819202122232425
  1. #
  2. # (C) Copyright 2015
  3. # Daniel Hellstrom, Cobham Gaisler, daniel@gaisler.com.
  4. #
  5. # SPDX-License-Identifier: GPL-2.0+
  6. #
  7. ifeq ($(CROSS_COMPILE),)
  8. CROSS_COMPILE := sparc-linux-
  9. endif
  10. # This GCC compiler is known to work:
  11. # https://www.kernel.org/pub/tools/crosstool/files/bin/x86_64/4.9.0/
  12. gcclibdir := $(shell dirname `$(CC) -print-libgcc-file-name`)
  13. CONFIG_STANDALONE_LOAD_ADDR ?= 0x00000000 -L $(gcclibdir) \
  14. -T $(srctree)/examples/standalone/sparc.lds
  15. cpuflags-$(CONFIG_LEON2) := -mcpu=leon
  16. cpuflags-$(CONFIG_LEON3) := -mcpu=leon3
  17. PLATFORM_CPPFLAGS += $(cpuflags-y)
  18. PLATFORM_RELFLAGS += -fPIC