This is an automated email from the ASF dual-hosted git repository. xiaoxiang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push: new 71b169e5fd build(bugfix):pac sim elf ONLY in Linux platform 71b169e5fd is described below commit 71b169e5fd8ab3dd1eed440645e0dd518fe032a1 Author: xuxin19 <xuxi...@xiaomi.com> AuthorDate: Fri Nov 15 10:39:17 2024 +0800 build(bugfix):pac sim elf ONLY in Linux platform avoid SIM compilation post build issues on other platforms Signed-off-by: xuxin19 <xuxi...@xiaomi.com> --- boards/sim/sim/sim/scripts/Make.defs | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/boards/sim/sim/sim/scripts/Make.defs b/boards/sim/sim/sim/scripts/Make.defs index 8658875d1a..98eced7bd5 100644 --- a/boards/sim/sim/sim/scripts/Make.defs +++ b/boards/sim/sim/sim/scripts/Make.defs @@ -330,15 +330,17 @@ else ifeq ($(CONFIG_HOST_MACOS),) LDFLAGS += -Wl,-no-pie endif -define POSTBUILD - $(Q)echo "Pac SIM with dynamic libs.."; - @ rm -rf sim-pac; - @ mkdir -p sim-pac/libs; - @ cp nuttx sim-pac/nuttx; - @ ldd sim-pac/nuttx | grep "=> /" | awk '{print $$3}' | xargs -I '{}' cp -v '{}' sim-pac/libs; - @ readelf -l nuttx | grep "program interpreter" | awk -F':' '{print $$2}'| cut -d"]" -f1 | xargs -I '{}' cp -v '{}' sim-pac; - @ cp $(TOPDIR)/tools/simlaunch.sh sim-pac; - @ tar -czf nuttx.tgz sim-pac; - $(Q)echo "SIM elf with dynamic libs archive in nuttx.tgz" - @ rm -rf sim-pac; -endef +ifeq ($(CONFIG_HOST_LINUX),y) + define POSTBUILD + $(Q)echo "Pac SIM with dynamic libs.."; + @ rm -rf sim-pac; + @ mkdir -p sim-pac/libs; + @ cp nuttx sim-pac/nuttx; + @ ldd sim-pac/nuttx | grep "=> /" | awk '{print $$3}' | xargs -I '{}' cp -v '{}' sim-pac/libs; + @ readelf -l nuttx | grep "program interpreter" | awk -F':' '{print $$2}'| cut -d"]" -f1 | xargs -I '{}' cp -v '{}' sim-pac; + @ cp $(TOPDIR)/tools/simlaunch.sh sim-pac; + @ tar -czf nuttx.tgz sim-pac; + $(Q)echo "SIM elf with dynamic libs archive in nuttx.tgz" + @ rm -rf sim-pac; + endef +endif