Makefile-i386 849 B

12345678910111213141516171819202122232425262728293031323334
  1. core-y += arch/um/sys-i386/ arch/i386/crypto/
  2. TOP_ADDR := $(CONFIG_TOP_ADDR)
  3. ifeq ($(CONFIG_MODE_SKAS),y)
  4. ifneq ($(CONFIG_MODE_TT),y)
  5. START := 0x8048000
  6. endif
  7. endif
  8. LDFLAGS += -m elf_i386
  9. ELF_ARCH := $(SUBARCH)
  10. ELF_FORMAT := elf32-$(SUBARCH)
  11. OBJCOPYFLAGS := -O binary -R .note -R .comment -S
  12. ifeq ("$(origin SUBARCH)", "command line")
  13. ifneq ("$(shell uname -m | sed -e s/i.86/i386/)", "$(SUBARCH)")
  14. CFLAGS += $(call cc-option,-m32)
  15. USER_CFLAGS += $(call cc-option,-m32)
  16. HOSTCFLAGS += $(call cc-option,-m32)
  17. HOSTLDFLAGS += $(call cc-option,-m32)
  18. AFLAGS += $(call cc-option,-m32)
  19. LINK-y += $(call cc-option,-m32)
  20. UML_OBJCOPYFLAGS += -F $(ELF_FORMAT)
  21. export LDFLAGS HOSTCFLAGS HOSTLDFLAGS UML_OBJCOPYFLAGS
  22. endif
  23. endif
  24. CFLAGS += -U__$(SUBARCH)__ -U$(SUBARCH)
  25. ifneq ($(CONFIG_GPROF),y)
  26. ARCH_CFLAGS += -DUM_FASTCALL
  27. endif