Skip to content

Commit

Permalink
Add libnpl to Makefiles
Browse files Browse the repository at this point in the history
  • Loading branch information
lupyuen committed Dec 25, 2021
1 parent c418f13 commit 4fed436
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tools/Directories.mk
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,12 @@ else
CLEANDIRS += libs$(DELIM)liblorawan
endif

ifeq ($(CONFIG_LIBNPL),y)
KERNDEPDIRS += libs$(DELIM)libnpl
else
CLEANDIRS += libs$(DELIM)libnpl
endif

# Add networking directories to KERNDEPDIRS and CLEANDIRS

ifeq ($(CONFIG_NET),y)
Expand Down
6 changes: 6 additions & 0 deletions tools/FlatLibs.mk
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,12 @@ ifeq ($(CONFIG_LIBLORAWAN),y)
NUTTXLIBS += staging$(DELIM)liblorawan$(LIBEXT)
endif

# Add NimBLE Porting Layer library

ifeq ($(CONFIG_LIBNPL),y)
NUTTXLIBS += staging$(DELIM)libnpl$(LIBEXT)
endif

# Export all libraries

EXPORTLIBS = $(NUTTXLIBS)
6 changes: 6 additions & 0 deletions tools/KernelLibs.mk
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,12 @@ ifeq ($(CONFIG_LIBLORAWAN),y)
NUTTXLIBS += staging$(DELIM)liblorawan$(LIBEXT)
endif

# Add NimBLE Porting Layer library

ifeq ($(CONFIG_LIBNPL),y)
NUTTXLIBS += staging$(DELIM)libnpl$(LIBEXT)
endif

# Export only the user libraries

EXPORTLIBS = $(USERLIBS)
6 changes: 6 additions & 0 deletions tools/LibTargets.mk
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,12 @@ libs$(DELIM)liblorawan$(DELIM)liblorawan$(LIBEXT): pass2dep
staging$(DELIM)liblorawan$(LIBEXT): libs$(DELIM)liblorawan$(DELIM)liblorawan$(LIBEXT)
$(Q) $(call INSTALL_LIB,$<,$@)

libs$(DELIM)libnpl$(DELIM)libnpl$(LIBEXT): pass2dep
$(Q) $(MAKE) -C libs$(DELIM)libnpl libnpl$(LIBEXT) EXTRAFLAGS="$(EXTRAFLAGS)"

staging$(DELIM)libnpl$(LIBEXT): libs$(DELIM)libnpl$(DELIM)libnpl$(LIBEXT)
$(Q) $(call INSTALL_LIB,$<,$@)

ifeq ($(CONFIG_BUILD_FLAT),y)
$(APPDIR)$(DELIM)libapps$(LIBEXT): pass2dep
else
Expand Down
6 changes: 6 additions & 0 deletions tools/ProtectedLibs.mk
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,12 @@ ifeq ($(CONFIG_LIBLORAWAN),y)
NUTTXLIBS += staging$(DELIM)liblorawan$(LIBEXT)
endif

# Add NimBLE Porting Layer library

ifeq ($(CONFIG_LIBNPL),y)
NUTTXLIBS += staging$(DELIM)libnpl$(LIBEXT)
endif

# Export only the user libraries

EXPORTLIBS = $(USERLIBS)

0 comments on commit 4fed436

Please sign in to comment.