Makefile: Add partitioning targets, open-rc services

This commit is contained in:
Andrea Rogers 2024-10-26 05:09:43 -05:00
commit abf8cf6a8c
5 changed files with 107 additions and 5 deletions

15
mk/raspi.mk Normal file
View file

@ -0,0 +1,15 @@
ifeq ($(ARCH),aarch64)
else ifeq ($(ARCH),armhf)
else ifeq ($(ARCH),armv7)
else
$(error $(ARCH) is unsupported on the raspi platform)
endif
PLATFORM_PHONYS := partition kernel
RUNLEVEL_BOOT ?= modules bootmisc hostname networking seedrng swap
RUNLEVEL_DEFAULT ?= crond
partition: blkcheck
$(DOSU) fdisk $(BLKDEV) <<<$$'o\nw\n'
$(DOSU) sfdisk $(BLKDEV) <<<$$',1G,c,*\n,,83,\n'