# HG changeset patch # User Mike Kinghan # Date 1289917932 0 # Node ID f7dee603db09a8def3bdb489e65bd7bfe281d0ff # Parent 5534523ed9b2a237ce78c9f3eb5fdfa8e316381d [GCCE] We need a way for the HAL config extension to parameterise the HAL config file (.hcf) that will be used, depending upon the toolchain we are building with. E.g. if we are building BeagleBoard with RVCT we can configure hardware floating point because we have ARM's vfp math libraries; if we are building it with GCC, we lack this library support. diff -r 5534523ed9b2 -r f7dee603db09 toolsandutils/buildsystem/extension/base/config.mk --- a/toolsandutils/buildsystem/extension/base/config.mk Wed Aug 04 13:49:22 2010 +0100 +++ b/toolsandutils/buildsystem/extension/base/config.mk Tue Nov 16 14:32:12 2010 +0000 @@ -29,6 +29,10 @@ SOURCE := hal endif +ifndef CONFIG_HCF_FILE +CONFIG_HCF_FILE := config.hcf +endif + #MDIR := $(call generated,generatedcpp/hal) # abld #MDIR := $(call generated,base/lubbock) # raptor MDIR := $(call generatedcpp) @@ -59,7 +63,7 @@ -$(call createdir,"$(MDIR)") perl $(HALPATH)/hal/halcfg.pl $(EPOCROOT)epoc32/include/platform/hal_data.h $(SOURCE)/values.hda $(MDIR)/$(PREFIX)values.cpp -$(MDIR)/$(PREFIX)config.cpp : $(SOURCE)/config.hcf $(EPOCROOT)epoc32/include/platform/hal_data.h +$(MDIR)/$(PREFIX)config.cpp : $(SOURCE)/$(CONFIG_HCF_FILE) $(EPOCROOT)epoc32/include/platform/hal_data.h -$(call createdir,"$(MDIR)") - perl $(HALPATH)/hal/halcfg.pl -x $(EPOCROOT)epoc32/include/platform/hal_data.h $(SOURCE)/config.hcf $(MDIR)/$(PREFIX)config.cpp + perl $(HALPATH)/hal/halcfg.pl -x $(EPOCROOT)epoc32/include/platform/hal_data.h $(SOURCE)/$(CONFIG_HCF_FILE) $(MDIR)/$(PREFIX)config.cpp