@@ -29,8 +29,9 @@ OBJECTS += inx-ehs_controller.$(OBJ)
2929ifeq ($(EHS_PERIPHERALS_BACKLIGHT_SUPPORT ) ,)
3030 EHS_PERIPHERALS_BACKLIGHT_SUPPORT=stubbed
3131endif
32+
3233ifdef EHS_PERIPHERALS_BACKLIGHT_SUPPORT
33- # backlight is using stub if not implementd for target, so should be safe to just define it
34+ # backlight is using stubb if not implementd for target, so should be safe to just define it
3435DEFS += EHS_PERIPHERALS_BACKLIGHT_SUPPORT=1
3536endif
3637
@@ -103,8 +104,11 @@ OBJECTS += inx-stringdivader.$(OBJ)
103104
104105# TODO Change this to stub version later
105106ifdef EHS_PERIPHERALS_BACKLIGHT_SUPPORT
107+ ifneq ($(EHS_PERIPHERALS_BACKLIGHT_SUPPORT ) ,none)
108+ DEFS += EHS_PERIPHERALS_BACKLIGHT_SUPPORT
106109OBJECTS += inx-display_backlight.$(OBJ )
107110endif
111+ endif
108112
109113# TODO move these to the core directory
110114OBJECTS += inx-num_demux.$(OBJ )
@@ -133,8 +137,10 @@ ifdef EHS_COMPONENTS_CONSOLE_IO
133137 DEFS += EHS_COMPONENTS_CONSOLE_IO
134138endif
135139
136- # PWM support moved to peripherals/ directory
140+ # This is a bit of a messy set of rules to avoid compiling gnu type middleware
141+ # Review using the normal target/Component-HAL/ approach for stubbed vs disabled.
137142
143+ # This bit should definatly be in a target/Component-HAL/ make file:
138144ifndef EHS_EXCLUDE_XML_PARSER
139145# inx-xml_stream moved to core/ directory
140146# @todo this is for the xml stream parser - should be out somewhere more sensible..
0 commit comments