[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.
--- 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