diff options
author | lonkaars <loek@pipeframe.xyz> | 2024-02-06 13:22:04 +0100 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2024-02-06 13:22:04 +0100 |
commit | a9ef380662da3efa382017ff8423f1a894b31bfd (patch) | |
tree | 26c160523c050945502408148faae6508712033b /software.mk | |
parent | ae327cc50fd9d3e59e9f60088243adfc69cb312e (diff) |
dynamic linking application starts
Diffstat (limited to 'software.mk')
-rw-r--r-- | software.mk | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/software.mk b/software.mk new file mode 100644 index 0000000..1635f04 --- /dev/null +++ b/software.mk @@ -0,0 +1,19 @@ +software/helloworld/helloworld: state/container_img + $(CTRIZE) $(MAKE) -C software/helloworld +rootfs/bin/helloworld: software/helloworld/helloworld + mkdir -p $(dir $@) + cp $^ $@ +SOFTWARE_FILES += rootfs/bin/helloworld + +SHARED_LIBS += rootfs/lib/libc.so.6 +SHARED_LIBS += rootfs/lib/ld-linux-armhf.so.3 +$(SHARED_LIBS)&: state/container_img + mkdir -p rootfs/lib + $(CTRIZE) cp $(SHARED_LIBS:rootfs/lib/%=/usr/arm-linux-gnueabihf/lib/%) rootfs/lib +SOFTWARE_FILES += $(SHARED_LIBS) + +rootfs/usr/share/udhcpc/default.script: busybox/examples/udhcp/simple.script state/submodules + cp $< $@ + chmod +x $@ +SOFTWARE_FILES += rootfs/usr/share/udhcpc/default.script + |