forked from ayufan-rock64/linux-build
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.package.mk
63 lines (59 loc) · 2.21 KB
/
Makefile.package.mk
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
54
55
56
57
58
59
60
61
62
63
linux-rock64-$(RELEASE_NAME)_arm64.deb: $(PACKAGES)
fpm -s empty -t deb -n linux-rock64 -v $(RELEASE_NAME) \
-p $@ \
--deb-priority optional --category admin \
--depends "linux-rock64-package (= $(RELEASE_NAME))" \
--depends "linux-image-$(KERNEL_RELEASE) (= $(RELEASE_NAME))" \
--depends "linux-headers-$(KERNEL_RELEASE) (= $(RELEASE_NAME))" \
--force \
--url https://gitlab.com/ayufan-rock64/linux-build \
--description "Rock64 Linux virtual package: depends on kernel and compatibility package" \
-m "Kamil Trzciński <ayufan@ayufan.eu>" \
--license "MIT" \
--vendor "Kamil Trzciński" \
-a arm64
linux-rock64-package-$(RELEASE_NAME)_all.deb: package
chmod -R go-w $<
fpm -s dir -t deb -n linux-rock64-package -v $(RELEASE_NAME) \
-p $@ \
--deb-priority optional --category admin \
--force \
--depends figlet \
--depends cron \
--depends gdisk \
--depends parted \
--deb-compression bzip2 \
--deb-field "Multi-Arch: foreign" \
--after-install package/scripts/postinst.deb \
--before-remove package/scripts/prerm.deb \
--url https://gitlab.com/ayufan-rock64/linux-build \
--description "Rock64 Linux support package" \
--config-files /boot/efi/extlinux/ \
-m "Kamil Trzciński <ayufan@ayufan.eu>" \
--license "MIT" \
--vendor "Kamil Trzciński" \
-a all \
package/root/=/
linux-rock64-package-$(RELEASE_NAME)_all.rpm: package
chmod -R go-w $<
fpm -s dir -t rpm -n linux-rock64-package -v $(RELEASE_NAME) \
-p $@ \
--force \
--depends figlet \
--depends cron \
--depends gdisk \
--depends parted \
--after-install package/scripts/postinst.deb \
--before-remove package/scripts/prerm.deb \
--url https://gitlab.com/ayufan-rock64/linux-build \
--description "Rock64 Linux support package" \
--config-files /boot/efi/extlinux/ \
-m "Kamil Trzciński <ayufan@ayufan.eu>" \
--license "MIT" \
--vendor "Kamil Trzciński" \
-a all \
package/root/=/
.PHONY: linux-package # compile linux compatibility package
linux-package: linux-rock64-package-$(RELEASE_NAME)_all.deb linux-rock64-package-$(RELEASE_NAME)_all.rpm
.PHONY: linux-virtual # compile linux package tying compatiblity package and kernel package
linux-virtual: linux-rock64-$(RELEASE_NAME)_arm64.deb