X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=examples%2Ftriface%2Ftriface.mk;h=7f3947245946c1a54f3798efafebb513094b801d;hb=e056d82a6c6586b6abc7671089208404034bd400;hp=85cb1edd496391c0282509c8c4fecfcd71fc3f90;hpb=e1fa8a6e8b036732e1bf86332c87b82677cd9a2a;p=bertos.git diff --git a/examples/triface/triface.mk b/examples/triface/triface.mk index 85cb1edd..7f394724 100644 --- a/examples/triface/triface.mk +++ b/examples/triface/triface.mk @@ -17,7 +17,7 @@ TRG += triface CPU = atmega1281 BOOT_ADDR_START = 0x1E000 -triface_CROSS = avr- +triface_PREFIX = avr- ifeq ($(CPU), atmega1281) triface_hfuse = 0x98 @@ -55,7 +55,7 @@ triface_CSRC = \ triface_PCSRC += bertos/mware/formatwr.c -triface_CFLAGS = -O2 -D'ARCH=(ARCH_TRIFACE)' -fno-strict-aliasing -Iexamples/triface -Ibertos/cpu/avr +triface_CFLAGS = -O2 -D'ARCH=(ARCH_TRIFACE)' -D'CPU_FREQ=(14745600UL)' -fno-strict-aliasing -Iexamples/triface -Ibertos/cpu/avr triface_LDFLAGS = -Wl @@ -77,8 +77,8 @@ boot_CSRC = \ bertos/mware/hex.c \ bertos/kern/kfile.c \ # -boot_CROSS = avr- -boot_CPPFLAGS = -D'ARCH=(ARCH_TRIFACE|ARCH_BOOT)' -Iexamples/triface/boot -Ibertos/cpu/avr +boot_PREFIX = avr- +boot_CPPFLAGS = -D'ARCH=(ARCH_TRIFACE|ARCH_BOOT)' -D'CPU_FREQ=(14745600UL)' -Iexamples/triface/boot -Ibertos/cpu/avr boot_CFLAGS = -Os -mcall-prologues boot_LDFLAGS = -Wl,--relax -Wl,--section-start=.text=$(BOOT_ADDR_START)