diff --git a/arch/arm/src/Makefile b/arch/arm/src/Makefile index 4b2f4c0421..25694d8051 100644 --- a/arch/arm/src/Makefile +++ b/arch/arm/src/Makefile @@ -157,7 +157,7 @@ board$(DELIM)libboard$(LIBEXT): $(Q) $(MAKE) -C board libboard$(LIBEXT) EXTRAFLAGS="$(EXTRAFLAGS)" define LINK_ALLSYMS - $(Q) $(TOPDIR)/tools/mkallsyms.sh $(NUTTX) $(CROSSDEV) > allsyms.tmp + $(Q) $(TOPDIR)/tools/mkallsyms.py $(NUTTX) allsyms.tmp $(Q) $(call COMPILE, -x c allsyms.tmp, allsyms$(OBJEXT)) $(Q) $(LD) --entry=__start $(LDFLAGS) $(LIBPATHS) $(EXTRA_LIBPATHS) \ -o $(NUTTX) $(HEAD_OBJ) allsyms$(OBJEXT) $(EXTRA_OBJS) \ diff --git a/arch/risc-v/src/Makefile b/arch/risc-v/src/Makefile index 711255104b..457052203b 100644 --- a/arch/risc-v/src/Makefile +++ b/arch/risc-v/src/Makefile @@ -137,7 +137,7 @@ board/libboard$(LIBEXT): $(Q) $(MAKE) -C board libboard$(LIBEXT) EXTRAFLAGS="$(EXTRAFLAGS)" define LINK_ALLSYMS - $(Q) $(TOPDIR)/tools/mkallsyms.sh $(NUTTX) $(CROSSDEV) > allsyms.tmp + $(Q) $(TOPDIR)/tools/mkallsyms.py $(NUTTX) allsyms.tmp $(Q) $(call COMPILE, -x c allsyms.tmp, allsyms$(OBJEXT)) $(Q) $(LD) --entry=__start $(LDFLAGS) $(LIBPATHS) $(EXTRA_LIBPATHS) \ -o $(NUTTX) $(HEAD_OBJ) allsyms$(OBJEXT) $(EXTRA_OBJS) \ diff --git a/arch/sim/src/Makefile b/arch/sim/src/Makefile index aa59c12e1b..43eb20b061 100644 --- a/arch/sim/src/Makefile +++ b/arch/sim/src/Makefile @@ -300,7 +300,9 @@ nuttx-names.dat: nuttx-names.in $(call PREPROCESS, nuttx-names.in, nuttx-names.dat) define LINK_ALLSYMS - $(Q) $(TOPDIR)/tools/mkallsyms.sh noconst $(NUTTX) $(CROSSDEV) > allsyms.tmp + $(if $(CONFIG_HOST_MACOS), \ + $(Q) $(TOPDIR)/tools/mkallsyms.sh noconst $(NUTTX) $(CROSSDEV) > allsyms.tmp, \ + $(Q) $(TOPDIR)/tools/mkallsyms.py $(NUTTX) allsyms.tmp) $(Q) $(call COMPILE, -x c allsyms.tmp, allsyms$(OBJEXT)) $(if $(CONFIG_HAVE_CXX),\ $(Q) "$(CXX)" $(CFLAGS) $(LDFLAGS) -o $(NUTTX) \ diff --git a/arch/xtensa/src/Makefile b/arch/xtensa/src/Makefile index fdaf628b46..b622c04662 100644 --- a/arch/xtensa/src/Makefile +++ b/arch/xtensa/src/Makefile @@ -134,7 +134,7 @@ board/libboard$(LIBEXT): $(Q) $(MAKE) -C board libboard$(LIBEXT) EXTRAFLAGS="$(EXTRAFLAGS)" define LINK_ALLSYMS - $(Q) $(TOPDIR)/tools/mkallsyms.sh $(NUTTX) $(CROSSDEV) > allsyms.tmp + $(Q) $(TOPDIR)/tools/mkallsyms.py $(NUTTX) allsyms.tmp $(Q) $(call COMPILE, -x c allsyms.tmp, allsyms$(OBJEXT)) $(Q) $(LD) --entry=__start $(LDFLAGS) $(LIBPATHS) $(EXTRA_LIBPATHS) \ -o $(NUTTX) $(STARTUP_OBJS) allsyms$(OBJEXT) $(EXTRA_OBJS) \