alpstrap/mk/uefi.mk
Andrea Rogers 81b3326a13 UEFI: GRUB probably ain't it, chief
I'm thinking maybe I hard-code a Linux command line in my kernel image
and place the EFI stubby boi in my ESP as a file named bootx64.efi,
because I want it to *work*
2024-11-04 02:38:22 -06:00

21 lines
619 B
Makefile

PLATFORM_PHONYS := partition kernel
PLATFORM_PKGS := linux-lts
BOOTFS_PART := 1
ROOTFS_PART := 2
RUNLEVEL_BOOT ?= hwclock modules bootmisc hostname networking seedrng swap
RUNLEVEL_DEFAULT ?= acpid crond
partition: blkcheck
$(DOSU) fdisk $(BLKDEV) <<<$$'g\nw\n'
$(DOSU) sfdisk $(BLKDEV) <<<$$',1G,C12A7328-F81F-11D2-BA4B-00A0C93EC93B,*\n,,0FC63DAF-8483-4772-8E79-3D69D8477DE4,\n'
$(MOUNTPOINT)/boot/grub:
$(MAKE) $(ACHROOT)
$(ACHROOTI_CMD)' && grub-install --target=x86_64-efi --efi-directory=/boot'
$(MOUNTPOINT)/.bootloader-done: $(MOUNTPOINT)/boot/grub
touch $@
bootloader: $(MOUNTPOINT)/.bootloader-done