From 06674a7de4b89b218814aeac3ca7f2c1156407e7 Mon Sep 17 00:00:00 2001 From: batt Date: Fri, 10 Apr 2009 14:14:21 +0000 Subject: [PATCH] Add cpu flag name flag. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2483 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/cpu/arm/info/at91sam7.common | 3 +++ bertos/cpu/avr/info/avr.common | 3 +++ 2 files changed, 6 insertions(+) diff --git a/bertos/cpu/arm/info/at91sam7.common b/bertos/cpu/arm/info/at91sam7.common index c305d5ed..fe55da45 100644 --- a/bertos/cpu/arm/info/at91sam7.common +++ b/bertos/cpu/arm/info/at91sam7.common @@ -54,6 +54,9 @@ TOOLCHAIN = "arm" # If we use the GCC compiler we should pass some flags. CORE_CPU = "arm7tdmi" +# Name of the flag used by the build system to pass to the compiler the CPU type. +CPU_FLAG_NAME = "CPU" + # Where are locate the bertos directories SCRIPT_DIR = CPU_DIR + "arm/script/" HW_DIR = CPU_DIR + "arm/hw/" diff --git a/bertos/cpu/avr/info/avr.common b/bertos/cpu/avr/info/avr.common index 94681873..24b56cc5 100644 --- a/bertos/cpu/avr/info/avr.common +++ b/bertos/cpu/avr/info/avr.common @@ -53,6 +53,9 @@ CPU_TAGS = ["harvard"] # Type of the toolchain we should use to compile the source for this CPU. TOOLCHAIN = "avr" +# Name of the flag used by the build system to pass to the compiler the CPU type. +CPU_FLAG_NAME = "MCU" + # Where are locate the bertos directories SCRIPT_DIR = CPU_DIR + "avr/script/" HW_DIR = CPU_DIR + "avr/hw/" -- 2.25.1