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/usr/lib/libc.so.6 SHARED_LIBS += rootfs/usr/lib/ld-linux-armhf.so.3 SHARED_LIBS += rootfs/usr/lib/libm.so.6 SHARED_LIBS += rootfs/usr/lib/libgcc_s.so.1 $(SHARED_LIBS)&: state/container_img mkdir -p rootfs/usr/lib $(CTRIZE) cp $(SHARED_LIBS:rootfs/usr/lib/%=/usr/arm-linux-gnueabihf/lib/%) rootfs/usr/lib SOFTWARE_FILES += $(SHARED_LIBS) rootfs/usr/share/udhcpc/default.script: busybox/examples/udhcp/simple.script state/submodules mkdir -p $(dir $@) cp $< $@ chmod +x $@ SOFTWARE_FILES += rootfs/usr/share/udhcpc/default.script # at this point i am fucking tired of compiling shit from scratch so i just # steal armv7l binaries from void linux JAVA_PKG = software/void-packages/hostdir/binpkgs/openjdk8-jre-8u332b05_2.armv7l.xbps $(JAVA_PKG): state/submodules state/container_img $(CTRIZE) software/void-packages/xbps-src binary-bootstrap $(CTRIZE) software/void-packages/xbps-src -a armv7l pkg openjdk8 XBPS_PKGS += $(JAVA_PKG) XBPS_PKGS += software/void-packages/hostdir/repocache-armv7l/zlib-1.3.1_1.armv7l.xbps XBPS_PKGS += software/void-packages/hostdir/repocache-armv7l/libX11-1.8.7_1.armv7l.xbps XBPS_PKGS += software/void-packages/hostdir/repocache-armv7l/libXext-1.3.5_1.armv7l.xbps XBPS_PKGS += software/void-packages/hostdir/repocache-armv7l/libXi-1.8.1_1.armv7l.xbps XBPS_PKGS += software/void-packages/hostdir/repocache-armv7l/libXrender-0.9.11_1.armv7l.xbps XBPS_PKGS += software/void-packages/hostdir/repocache-armv7l/libXtst-1.2.4_1.armv7l.xbps XBPS_PKGS += software/void-packages/hostdir/repocache-armv7l/alsa-lib-1.2.10_2.armv7l.xbps XBPS_PKGS += software/void-packages/hostdir/repocache-armv7l/libffi-3.3_2.armv7l.xbps XBPS_PKGS += software/void-packages/hostdir/repocache-armv7l/freetype-2.13.2_1.armv7l.xbps XBPS_PKGS += software/void-packages/hostdir/repocache-armv7l/giflib-5.2.1_1.armv7l.xbps .PHONY: unpack_xbps_pkgs unpack_xbps_pkgs: $(XBPS_PKGS) cat $^ | tar -xf - --zstd -i -C rootfs rm rootfs/files.plist rootfs/props.plist rootfs/usr/lib/jvm: unpack_xbps_pkgs SOFTWARE_FILES += rootfs/usr/lib/jvm software/minecraft/server.jar: $(MAKE) -C software/minecraft rootfs/srv/minecraft/server.jar: software/minecraft/server.jar mkdir -p $(dir $@) cp $< $@ SOFTWARE_FILES += rootfs/srv/minecraft/server.jar FILES_PART_ROOTFS += $(SOFTWARE_FILES)