Add other compilation flags
authorduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 10 Apr 2009 15:34:43 +0000 (15:34 +0000)
committerduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 10 Apr 2009 15:34:43 +0000 (15:34 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2485 38d2e660-2303-0410-9eaa-f027e97ec537

wizard/bertos_utils.py
wizard/const.py
wizard/mktemplates/template.mk

index 5478cf154a6b69bc7d799aa84bba327a6cee42c4..2c84468a9f0aee681a764a227ce45c1a412b8eba 100644 (file)
@@ -89,6 +89,11 @@ def mkGenerator(project_info, makefile):
     mk_data["$cpuname"] = project_info.info("CPU_INFOS")["CORE_CPU"]
     mk_data["$cflags"] = " ".join(project_info.info("CPU_INFOS")["C_FLAGS"])
     mk_data["$ldflags"] = " ".join(project_info.info("CPU_INFOS")["LD_FLAGS"])
+    mk_data["$cppflags"] = " ".join(project_info.info("CPU_INFOS")["CPP_FLAGS"])
+    mk_data["$cppaflags"] = " ".join(project_info.info("CPU_INFOS")["CPPA_FLAGS"])
+    mk_data["$cxxflags"] = " ".join(project_info.info("CPU_INFOS")["CXX_FLAGS"])
+    mk_data["$asflags"] = " ".join(project_info.info("CPU_INFOS")["AS_FLAGS"])
+    mk_data["$arflags"] = " ".join(project_info.info("CPU_INFOS")["AR_FLAGS"])
     mk_data["$csrc"], mk_data["$pcsrc"], mk_data["$asrc"], mk_data["$constants"] = csrcGenerator(project_info)
     mk_data["$prefix"] = project_info.info("TOOLCHAIN")["path"].split("gcc")[0]
     mk_data["$suffix"] = project_info.info("TOOLCHAIN")["path"].split("gcc")[1]
index 716f0b51cd807dd102a3d506da30008ab441ba40..8fd71619192baf26eeaae3328130152d5cda3fdd 100644 (file)
@@ -23,6 +23,10 @@ CPU_DEF = {
     "C_FLAGS": [],
     "CPPA_FLAGS" : [],
     "CPP_FLAGS" : [],
+    "CPPA_FLAGS": [],
+    "CXX_FLAGS": [],
+    "AS_FLAGS": [],
+    "AR_FLAGS": [],
     "LD_FLAGS" : [],
     "CPPA_SRC" : [],
     "SUPPORTED_DRV" : [],
index b42dd097c37b34655acc5eeaa7049d1df187c925..402df258630e12b5c96a19b14b6a22c184bbc7de 100644 (file)
@@ -59,3 +59,8 @@ $pname_CPPASRC = $($pname_WIZARD_CPPASRC) $($pname_USER_CPPASRC)
 
 $pname_CFLAGS = $cflags
 $pname_LDFLAGS = $ldflags
+$pname_CPPFLAGS = $cppflags
+$pname_CPPAFLAGS = $cppaflags
+$pname_CXXFLAGS = $cxxflags
+$pname_ASFLAGS = $asflags
+$pname_ARFLAGS = $arflags