-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
41 lines (30 loc) · 1000 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# SPDX-License-Identifier: GPLv3
#
# Makefile
# Copyright Peter Jones <[email protected]>
#
TOPDIR ?= .
include $(TOPDIR)/utils.mk
TARGETS = nmbl-cloud.uki nmbl-megalith.uki nmbl-workstation.uki
all: $(TARGETS)
%.initramfs.img :
@dracut --verbose --confdir "$*.conf.d/" --no-hostonly --xz \
$@ $(KVRA)
nmbl-%.uki : %.initramfs.img
@/usr/lib/systemd/ukify -o "$@" \
--os-release @/etc/os-release \
--uname "$(KVRA)" \
--efi-arch "$(EFI_ARCH)" \
--stub "/usr/lib/systemd/boot/efi/linux$(EFI_ARCH).efi.stub" \
"/boot/vmlinuz-$(KVRA)" \
"$*.initramfs.img"
install : $(TARGETS)
install -m 0700 -d "$(DESTDIR)$(ESPDIR)"
install -m 0600 -t "$(DESTDIR)$(ESPDIR)" $(TARGETS)
nmbl-builder-$(VERSION).tar.xz : Makefile
git archive --format=tar --prefix=nmbl-builder-$(VERSION)/ --add-file ../utils.mk HEAD | xz > $@
tarball : nmbl-builder-$(VERSION).tar.xz
clean :
@rm -vf nmbl-builder-$(VERSION).tar.xz
.PHONY: all install clean tarball
# vim:ft=make