Initial commit
This commit is contained in:
31
Makefile
Normal file
31
Makefile
Normal file
@@ -0,0 +1,31 @@
|
||||
BUILDROOT_SRC ?= ~/src/buildroot
|
||||
|
||||
.PHONY: all
|
||||
all: initramfs rootfs
|
||||
|
||||
.PHONY: rootfs
|
||||
rootfs: _build/rootfs/.config
|
||||
$(MAKE) -C _build/rootfs -j $(shell nproc)
|
||||
|
||||
.PHONY: initramfs
|
||||
initramfs: _build/initramfs/.config
|
||||
$(MAKE) -C _build/initramfs -j $(shell nproc)
|
||||
|
||||
.PHONY: publish
|
||||
publish:
|
||||
rsync -rtliO \
|
||||
--delete \
|
||||
_build/rootfs/images/rpi-firmware/ \
|
||||
_build/rootfs/images/Image \
|
||||
_build/rootfs/images/*.dtb \
|
||||
_build/initramfs/images/rootfs.cpio.lz4 \
|
||||
pxe0.pyrocufflink.blue:/var/lib/tftpboot/basementhud/
|
||||
rsync -P --no-W \
|
||||
_build/rootfs/images/rootfs.squashfs \
|
||||
pxe0.pyrocufflink.blue:/var/lib/nbd/basementhud.squashfs
|
||||
|
||||
_build/rootfs/.config:
|
||||
$(MAKE) -C $(BUILDROOT_SRC) O=${PWD}/_build/rootfs BR2_EXTERNAL=${PWD} basementhud_defconfig
|
||||
|
||||
_build/initramfs/.config:
|
||||
$(MAKE) -C $(BUILDROOT_SRC) O=${PWD}/_build/initramfs BR2_EXTERNAL=${PWD} basementhud_initramfs_defconfig
|
||||
Reference in New Issue
Block a user