Are there instructions on how to compile for Mac. I tried make below and looks like MAC OS doesn't like the cp -u option.
VsMac2: ~/work/pp/qca/QCA4024.OR.2.0_00048/target/quartz/demo/QCLI_demo/build/gcc : make
##############################################################################
Starting build for QCA402X QCLI Application
##############################################################################
Build Parameters:
RTOS = threadx
Variant = qca4020
Board = carrier
Revision = 2p0
##############################################################################
cp -u -v ../../../../../quartz/platform/export/platform_oem.h ../../src/export
cp: illegal option -- u
usage: cp [-R [-H | -L | -P]] [-fi | -n] [-apvXc] source_file target_file
cp [-R [-H | -L | -P]] [-fi | -n] [-apvXc] source_file ... target_directory
*/
We do not have instructions for using MAC but have instructions for using Linux in 80-YA121-140 (QCA402x (CDB2x) Development Kit User Guide) document.
Hi vsubbiah,
cp -u option was intended to update a files that only newer version will overwrite older version.
In MAC, it looks "rsync" can be used instead of "cp -u".
For example, can you try following changes?
rsync -v $(ROOTDIR)/quartz/platform/export/platform_oem.h $(SRCDIR)/export
rsync -v $(ROOTDIR)/quartz/platform/export/platform_oem.c $(SRCDIR)/export
rsync -v $(ROOTDIR)/quartz/platform/export/platform_oem_mom.c $(SRCDIR)/export
rsync -v $(ROOTDIR)/quartz/platform/export/platform_oem_som.c $(SRCDIR)/export
rsync -v $(ROOTDIR)/build/tools/devcfg/$(RTOS)/DevCfg_master_devcfg_out.xml $(SRCDIR)/export
rsync -v $(ROOTDIR)/build/tools/devcfg/$(RTOS)/DevCfg_master_devcfg_out_cdb.xml $(SRCDIR)/export
rsync -v $(ROOTDIR)/build/tools/devcfg/$(RTOS)/DevCfg_master_fom_out.xml $(SRCDIR)/export
rsync -v $(ROOTDIR)/build/tools/devcfg/$(RTOS)/DevCfg_master_fom_out_cdb.xml $(SRCDIR)/export
Thanks
BR,
Jayden