Forums - Compiling for mac

3 posts / 0 new
Last post
Compiling for mac
vsubbiah
Join Date: 13 Sep 18
Posts: 1
Posted: Fri, 2018-09-28 15:12

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

*/

 

  • Up0
  • Down0
manjulak Moderator
Join Date: 5 Dec 14
Posts: 33
Posted: Mon, 2018-10-01 14:26

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.

 

  • Up0
  • Down0
jaydenk
Join Date: 21 Jun 18
Posts: 64
Posted: Fri, 2018-10-26 00:13

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

  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.