aboutsummaryrefslogtreecommitdiff
path: root/software.mk
diff options
context:
space:
mode:
Diffstat (limited to 'software.mk')
-rw-r--r--software.mk19
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
+