target.mk 515 B

12345678910111213141516
  1. include $(TOPDIR)/mk/kernel-ver.mk
  2. ARCH:= $(shell uname -m|sed -e "s/i.*86/x86/" -e "s/_\?64//")
  3. CPU_ARCH:= $(shell gcc -dumpmachine | sed -e s'/-.*//' \
  4. -e 's/sparc.*/sparc/' \
  5. -e 's/arm.*/arm/g' \
  6. -e 's/m68k.*/m68k/' \
  7. -e 's/ppc/powerpc/g' \
  8. -e 's/v850.*/v850/g' \
  9. -e 's/sh[234]/sh/' \
  10. -e 's/mips-.*/mips/' \
  11. -e 's/mipsel-.*/mipsel/' \
  12. -e 's/cris.*/cris/' \
  13. -e 's/i[3-9]86/i686/' \
  14. )
  15. TARGET_OPTIMIZATION:= -Os -pipe
  16. TARGET_CFLAGS_ARCH:= -march=native