SWRU581 March 2021 CC2564C , CC2564MODA , CC2564MODN , WL1831
When making changes in the PM environment, such as, adding files or when wanting to remove sample applications from the distribution, you will need to change the following files: In <INSTALLATION_DIR>/build/proj.
$(PMBINDIR)/%: $(OBJDIR)/%_C.o $(PMLIBDIR)/libBTPM_C.a
$(PMLIBDIR)/libBTPM_HAL_C.a
@echo LN $(^F) -o $(@F)
@$(CC) -L$(LIBDIR) $^ $(LDFLAGS) -o $@
when using %, the % will be replaced with the sample apps from the variable.
a) example for deleting sample application:
$(PMBINDIR)/LinuxAUDM: $(OBJDIR)/LinuxAUDM_C.o
$(OBJDIR)/AudioDecoderPM_C.o $(OBJDIR)/AudioEncoderPM_C.o
$(PMLIBDIR)/libBTPM_C.a $(PMLIBDIR)/libBTPM_HAL_C.a
@echo LN $(^F) -o $(@F)
@$(CC) -L$(LIBDIR) $^ $(LDFLAGS) -o $@
removing this section will disable the compilation of the LinuxAUDM sample application.
b) example for adding sample application:
$(PMBINDIR)/LinuxYOURAPP: $(OBJDIR)/LinuxYOURAPP_C.o
$(PMLIBDIR)/libBTPM_C.a $(PMLIBDIR)/libBTPM_HAL_C.a
@echo LN $(^F) -o $(@F)
@$(CC) -L$(LIBDIR) $^ $(LDFLAGS) -o $@
be sure to add all the libs and object that you need to compile your application.
Build