simbit18 commented on issue #14773:
URL: https://github.com/apache/nuttx/issues/14773#issuecomment-2476380837
macOS also doesn't like this
```
Pac SIM with dynamic libs..
/bin/bash: ldd: command not found
/bin/bash: readelf: command not found
SIM elf with dynamic libs archive in nuttx.tgz
```
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
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]