mangOH make error, malformed path ...pa_wifi.sh/pa_wifi_client_ti.c

I am following the Getting Started Guide, Windows [Rev5]
http://mangoh.io/uploaded-documents/Reference/mangOH%20Red/Discover/Getting%20Started/mangOH%20Red%20GSG%20-%20Windows%20R5/#t=41112261_mangOH_Red_GSG_-_HTML5%2F41112261_PrepMangoh%2F41112261_PrepMangoh.htm

The ‘make red_wp77xx’ command fails with the following. Looks like a malformed path.

mangoh@mangoh-vm:~/mangOH$ make red_wp77xx
Makefile:102: ==== OCTAVE_ROOT not defined ====
Not building LEGATO due to $LEGATO == 0

NOTE: When using leaf, these TOOLCHAIN_X variables don’t need to be passed to mksys.

TOOLCHAIN_DIR=/opt/swi/y22-ext-wp77xx/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi
TOOLCHAIN_PREFIX=arm-poky-linux-gnueabi-
mksys -t wp77xx --cflags=-O2 --object-dir=build/red_wp77xx --output-dir=build/update_files red.sdef
** Warning: Ignoring empty app specification
** Warning: Ignoring empty app specification
** Warning: Ignoring empty app specification
** ERROR:
/home/mangoh/legato_framework/legato/modules/WiFi/service/daemon/Component.cdef:15:4: error: Couldn’t find source file ‘/home/mangoh/legato_framework/legato/modules/WiFi/service/platformAdaptor//home/mangoh/legato_framework/legato/modules/WiFi/service/platformAdaptor/ti/pa_wifi.sh/pa_wifi_client_ti.c’
Makefile:131: recipe for target ‘red_wp77xx’ failed
make: *** [red_wp77xx] Error 1

------ more details ------
git log
commit 23b349529988fdc8ae24ba103d282d00b77b95e9 (HEAD -> master, origin/master, origin/HEAD)
Author: Jen Chitty jchitty@sierrawireless.com
Date: Wed Oct 16 22:17:48 2019 -0700

Update Data Hub to include psensor docs

I have done the firmware update from “WP77xx_Release12_GENERIC_GCF.exe”, after which I get
cm info
Device: WP7702
IMEI: 352653090130832
IMEISV: 2
FSN: VU829285061610
Firmware Version: SWI9X06Y_02.16.04.00 019853 jenkins 2018/05/15 19:28:37
Bootloader Version: SWI9X06Y_02.16.04.00 019853 jenkins 2018/05/15 19:28:37
MCU Version: 002.009
PRI Part Number (PN): 9907365

This is more behind the cause of the error, but I do not know the intent behind these build vars, so do not see how to fix. For now, I will try changing LEGATO_WIFI_PA to ‘ti’

wifi.sdef: LEGATO_WIFI_PA=${LEGATO_WIFI_ROOT}/service/platformAdaptor/ti/pa_wifi.sh

~/legato_framework/legato/modules/WiFi/service/daemon/Component.cdef
sources:
{
wifiService.c
le_wifiClient.c
le_wifiAp.c
{LEGATO_WIFI_ROOT}/service/platformAdaptor/{LEGATO_WIFI_PA}/pa_wifi_client_ti.c

Hi, I do face the same issue while ‘Make red_wp85’.

wifi.sdef file looks as seen below. As you find, already, the LEGATO_WIFI_PA is set to ${LEGATO_WIFI_ROOT}/service/platformAdaptor/ti/pa_wifi.sh.

So, the root cause seems to be something else.

#include “default.sdef”

buildVars:
{
LEGATO_WIFI_ROOT={LEGATO_ROOT}/modules/WiFi // File is selected by users, replace "ti" with "qca" to support qca chipset LEGATO_WIFI_PA={LEGATO_WIFI_ROOT}/service/platformAdaptor/ti/pa_wifi.sh
}

And, my ‘component.cdef’ is as seen below,

sources:
{
wifiService.c
le_wifiClient.c
le_wifiAp.c
{LEGATO_WIFI_ROOT}/service/platformAdaptor/{LEGATO_WIFI_PA}/pa_wifi_client_ti.c
{LEGATO_WIFI_ROOT}/service/platformAdaptor/{LEGATO_WIFI_PA}/pa_wifi_ap_ti.c
}

With this, when I make, I get the issue as,

** ERROR:
/home/mangoh/legato_framework/legato/modules/WiFi/service/daemon/Component.cdef:15:4: error: Couldn’t find source file ‘/home/mangoh/legato_framework/legato/modules/WiFi/service/platformAdaptor//home/mangoh/legato_framework/legato/modules/WiFi/service/platformAdaptor/ti/pa_wifi.sh/pa_wifi_client_ti.c’
Makefile:131: recipe for target ‘red_wp85’ failed
make: *** [red_wp85] Error 1

/home/mangoh/legato_framework/legato/modules/WiFi/service/daemon/Component.cdef

In line 15, change to the followings:

// {LEGATO_WIFI_ROOT}/service/platformAdaptor/{LEGATO_WIFI_PA}/pa_wifi_client_ti.c
// {LEGATO_WIFI_ROOT}/service/platformAdaptor/{LEGATO_WIFI_PA}/pa_wifi_ap_ti.c

{LEGATO_WIFI_ROOT}/service/platformAdaptor/ti/pa_wifi_client_ti.c {LEGATO_WIFI_ROOT}/service/platformAdaptor/ti/pa_wifi_ap_ti.c