Skip to content

Commit 3c4c49d

Browse files
committed
Major tidy up for xmos build. Inlcudes Breaking Change for Kernel builds!! (timer.h rename)
1 parent a3df971 commit 3c4c49d

33 files changed

Lines changed: 442 additions & 208 deletions

File tree

Common/Components/core/components.mk

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,14 @@ OBJECTS += demux.$(OBJ) ehs_if.$(OBJ) logic.$(OBJ) mux.$(OBJ) operator1.$(OBJ)
4848
OBJECTS += time_clock.$(OBJ) trigger.$(OBJ) rtinfo.$(OBJ) wall_clock.$(OBJ) appinfo.$(OBJ) inx-elapsed_timer.$(OBJ)
4949
OBJECTS += inx-rng.$(OBJ)
5050

51+
# Fine grained GNU dependency filtering
52+
# This is to avoid havint to ser DEFs in target config.mk files and should stay here
53+
# perhaps with the double negative removed. It does change the function block existance.
54+
ifdef EHS_EXCLUDE_XML_PARSER=
55+
DEFS += EHS_EXCLUDE_XML_PARSER==1
56+
endif
57+
58+
# Broad GNU depency management.
5159
# Components moved from user/ directory
5260
ifndef EHS_SKIP_GNULIBRARIES
5361
ifneq ($(EHS_SKIP_GNULIBRARIES),none)

Common/Components/core/time_clock.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#include "ehs_fb_types.h"
2121
#include "time_clock.h"
2222
#include "fid.h"
23-
#include "timer.h"
23+
#include "ehs_timer.h"
2424
#include "app_data.h"
2525

2626
#include "hal-api.h" /* Required for logging */

Common/Components/statmodules.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#include "hal_logger.h" /* EHSH_LOG_INFO */
2222

2323
/* For the core toolkit */
24-
#include "timer.h"
24+
#include "ehs_timer.h"
2525

2626
/**
2727
* Declares the block reference table containing all functions held within EHS

Common/Components/user/usercomponents.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ EHS_BLOCKREF_ENTRY_WITH_DESTROY(INXWARE_FB_NAME_console_print,INXWARE_FB_ID_cons
162162
#ifndef EHS_SKIP_GNULIBRARIES
163163
EHS_BLOCKREF_ENTRY(INXWARE_FB_NAME_ehs_controller ,INXWARE_FB_ID_ehs_controller,ehs_controller),
164164
#ifndef EHS_NO_LIBXML2_SUPPORT
165-
EHS_BLOCKREF_ENTRY_WITH_DESTROY(INXWARE_FB_NAME_application_info_getter,INXWARE_FB_ID_application_info_getter ,application_info_getter),
165+
EHS_BLOCKREF_ENTRY_WITH_DESTROY(INXWARE_FB_NAME_application_info_getter,INXWARE_FB_ID_application_info_getter ,application_info_getter),
166166
#endif
167167
EHS_BLOCKREF_ENTRY(INXWARE_FB_NAME_application_run,INXWARE_FB_ID_application_run ,application_run),
168168
#ifdef EHS_UNITY3D_WIDGETS

Common/Components/user/usercomponents.mk

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,9 @@ OBJECTS += inx-ehs_controller.$(OBJ)
2929
ifeq ($(EHS_PERIPHERALS_BACKLIGHT_SUPPORT),)
3030
EHS_PERIPHERALS_BACKLIGHT_SUPPORT=stubbed
3131
endif
32+
3233
ifdef 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
3435
DEFS += EHS_PERIPHERALS_BACKLIGHT_SUPPORT=1
3536
endif
3637

@@ -103,8 +104,11 @@ OBJECTS += inx-stringdivader.$(OBJ)
103104

104105
#TODO Change this to stub version later
105106
ifdef EHS_PERIPHERALS_BACKLIGHT_SUPPORT
107+
ifneq ($(EHS_PERIPHERALS_BACKLIGHT_SUPPORT),none)
108+
DEFS += EHS_PERIPHERALS_BACKLIGHT_SUPPORT
106109
OBJECTS += inx-display_backlight.$(OBJ)
107110
endif
111+
endif
108112

109113
# TODO move these to the core directory
110114
OBJECTS += inx-num_demux.$(OBJ)
@@ -133,8 +137,10 @@ ifdef EHS_COMPONENTS_CONSOLE_IO
133137
DEFS += EHS_COMPONENTS_CONSOLE_IO
134138
endif
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:
138144
ifndef 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..

Common/HAL/include/hal_pwm.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#define _HAL_PWM_H_
1515

1616
#include "globals.h"
17-
#include "timer.h"
17+
#include "ehs_timer.h"
1818

1919
typedef struct {
2020
ehs_sint32 freq;

target/Component-HAL/graphics/qt/qt_main_integration.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
#include "hal_logger.h"
2525
// This is for the app functions - that should probably be in the KAPI instead?
2626
#include "app_data.h"
27-
#include "timer.h"
27+
#include "ehs_timer.h"
2828

2929
#ifdef EHS_GUI_SUPPORT_MODE_B_QT
3030
/* We need to read the widget attribute here to look up objects and attributes in QML */

target/Component-HAL/mqtt/stubbed/mqtt.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
#include "hal_mqtt.h"
66

77

8-
void* EhsMqttClientLoop(void*)
8+
void* EhsMqttClientLoop(void* arg)
99
{
10+
(void)arg;
1011
return NULL;
1112
}

target/envbuildscripts/target_buildenv_run_command.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ if [ -f ${PATH_TO_TARGET_DOCKER_IMAGE} ]; then
5151
-e EHS_UNITY_PROJECT_EXPORT_SUPPORT -e DEBIAN_PACKAGE_NAME -e EHS_PLUGIN_LIBRARY_DEPENDENCY -e EHS_GUI_SUPPORT -e DEBIAN_PACKAGE_PLATFORM_EXTRA \
5252
-e DEBIAN_PACKAGE_EXTRA -e EHS_AUTO_START -e DEVMAN_SERVER_DOMAIN_1 -e DEVMAN_SERVER_DOMAIN_2 -e EHS_DEVMAN_SUPERVISOR_REQUIRED \
5353
-e EHS_ML_SUPPORT -e EHS_MV_SUPPORT -e EHS_USE_LIBCAMERA -e TOOLCHAIN_NAME -e COMPONENT_BASE_TECHNOLOGIES -e FLASH_BOARD -e ANDROID_STUDIO_EHS_PROJECT \
54-
-e FLASH_BOARD -e TEST_FUNC -e ERT_INIT $DOCKER_EXTRA_ENVS"
54+
-e FLASH_BOARD -e TEST_FUNC -e ERT_INIT -e EHS_NO_LIBXML2_SUPPORT -e EHS_EXCLUDE_XML_PARSER -e EHS_SKIP_GNULIBRARIES $DOCKER_EXTRA_ENVS"
5555

5656
#echo -n "Found Docker image ${PATH_TO_TARGET_DOCKER_IMAGE} ... "
5757
DOCKER_STAGING_DIR="${PWD}/../TARGET_TREES/DOCKER/cachespace"

0 commit comments

Comments
 (0)