-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
53 lines (44 loc) · 1.53 KB
/
Makefile
File metadata and controls
53 lines (44 loc) · 1.53 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
# This Makefile is a convenience tool to generate local-only OSTree signing keys
# for the Endless OS build output. It's used only for the local development
# workflow.
#
# See the README.md for intended use.
#
# These targets are based on the Makefile from Freedesktop SDK 24.08.22:
# <https://gitlab.com/freedesktop-sdk/freedesktop-sdk/-/blob/freedesktop-sdk-24.08.22/Makefile?ref_type=tags>
BST=bst
define OSTREE_GPG_CONFIG
Key-Type: DSA
Key-Length: 1024
Subkey-Type: ELG-E
Subkey-Length: 1024
Name-Real: Insecure OSTree signing key for local development use only.
Expire-Date: 0
%no-protection
%commit
%echo finished
endef
export OSTREE_GPG_CONFIG
ostree-gpg:
rm -rf ostree-gpg.tmp
mkdir ostree-gpg.tmp
chmod 0700 ostree-gpg.tmp
echo "$${OSTREE_GPG_CONFIG}" >ostree-gpg.tmp/key-config
gpg --batch --homedir=ostree-gpg.tmp --generate-key ostree-gpg.tmp/key-config
gpg --homedir=ostree-gpg.tmp -k --with-colons | sed '/^fpr:/q;d' | cut -d: -f10 >ostree-gpg.tmp/default-id
mv ostree-gpg.tmp ostree-gpg
files/ostree-config/eos.gpg: ostree-gpg
gpg --homedir=ostree-gpg --export --armor >"$@"
OSTREE_BRANCH=os/eos/amd64/master
update-ostree: ostree-gpg files/ostree-config/eos.gpg
env BST="$(BST)" utils/update-repo.sh \
--gpg-homedir=ostree-gpg \
--gpg-sign=$$(cat ostree-gpg/default-id) \
--collection-id=com.endlessm.Os \
ostree-repo repo.bst \
$(OSTREE_BRANCH)
ostree-repo:
$(MAKE) update-ostree
ostree-serve: ostree-repo
utils/run-local-repo.sh
.PHONY: ostree-repo update-ostree