target.mk 462 B

1234567891011121314
  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/sh[234]/sh/' \
  9. -e 's/mips-.*/mips/' \
  10. -e 's/mipsel-.*/mipsel/' \
  11. -e 's/i[3-9]86/i686/' \
  12. )
  13. TARGET_OPTIMIZATION:= -Os -pipe
  14. TARGET_CFLAGS_ARCH:= -march=native