Skip to content

Commit

Permalink
Update Kconfig and Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
lupyuen committed Dec 22, 2021
1 parent 2421d75 commit 2d25a68
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 1 deletion.
1 change: 1 addition & 0 deletions Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2008,6 +2008,7 @@ source "libs/libc/Kconfig"
source "libs/libxx/Kconfig"
source "libs/libdsp/Kconfig"
source "libs/libsx1262/Kconfig"
source "libs/liblorawan/Kconfig"
endmenu

menu "Open Asymmetric Multi Processing"
Expand Down
2 changes: 1 addition & 1 deletion libs/liblorawan
Submodule liblorawan updated 4 files
+4 −0 .gitignore
+8 −15 Kconfig
+4 −7 Makefile
+0 −0 src/mac/LoRaMac.ddc
6 changes: 6 additions & 0 deletions tools/Directories.mk
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,12 @@ else
CLEANDIRS += libs$(DELIM)libsx1262
endif

ifeq ($(CONFIG_LIBLORAWAN),y)
KERNDEPDIRS += libs$(DELIM)liblorawan
else
CLEANDIRS += libs$(DELIM)liblorawan
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 @@ -138,6 +138,12 @@ ifeq ($(CONFIG_LIBSX1262),y)
NUTTXLIBS += staging$(DELIM)libsx1262$(LIBEXT)
endif

# Add LoRaWAN library

ifeq ($(CONFIG_LIBLORAWAN),y)
NUTTXLIBS += staging$(DELIM)liblorawan$(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 @@ -124,6 +124,12 @@ ifeq ($(CONFIG_LIBSX1262),y)
NUTTXLIBS += staging$(DELIM)libsx1262$(LIBEXT)
endif

# Add LoRaWAN library

ifeq ($(CONFIG_LIBLORAWAN),y)
NUTTXLIBS += staging$(DELIM)liblorawan$(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 @@ -208,6 +208,12 @@ libs$(DELIM)libsx1262$(DELIM)libsx1262$(LIBEXT): pass2dep
staging$(DELIM)libsx1262$(LIBEXT): libs$(DELIM)libsx1262$(DELIM)libsx1262$(LIBEXT)
$(Q) $(call INSTALL_LIB,$<,$@)

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

staging$(DELIM)liblorawan$(LIBEXT): libs$(DELIM)liblorawan$(DELIM)liblorawan$(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 @@ -138,6 +138,12 @@ ifeq ($(CONFIG_LIBSX1262),y)
NUTTXLIBS += staging$(DELIM)libsx1262$(LIBEXT)
endif

# Add LoRaWAN library

ifeq ($(CONFIG_LIBLORAWAN),y)
NUTTXLIBS += staging$(DELIM)liblorawan$(LIBEXT)
endif

# Export only the user libraries

EXPORTLIBS = $(USERLIBS)

0 comments on commit 2d25a68

Please sign in to comment.