forked from ayufan-rock64/linux-build
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.package.mk
65 lines (61 loc) · 2.39 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
64
65
linux-$(BOARD_TARGET)-$(RELEASE_NAME)_arm64.deb: $(PACKAGES)
fpm -s empty -t deb -n linux-$(BOARD_TARGET) -v $(RELEASE_NAME) \
-p $@ \
--deb-priority optional --category admin \
--depends "linux-$(BOARD_TARGET)-package (= $(RELEASE_NAME))" \
--depends "linux-image-$(KERNEL_RELEASE) (= $(RELEASE_NAME))" \
--depends "linux-headers-$(KERNEL_RELEASE) (= $(RELEASE_NAME))" \
--depends "u-boot-$(BOARD_TARGET) (= $(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-$(BOARD_TARGET)-package-$(RELEASE_NAME)_all.deb: package
chmod -R go-w $<
fpm -s dir -t deb -n linux-$(BOARD_TARGET)-package -v $(RELEASE_NAME) \
-p $@ \
--deb-priority optional --category admin \
--force \
--depends figlet \
--depends cron \
--depends gdisk \
--depends parted \
--depends device-tree-compiler \
--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-$(BOARD_TARGET)-package-$(RELEASE_NAME)_all.rpm: package
chmod -R go-w $<
fpm -s dir -t rpm -n linux-$(BOARD_TARGET)-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-$(BOARD_TARGET)-package-$(RELEASE_NAME)_all.deb linux-$(BOARD_TARGET)-package-$(RELEASE_NAME)_all.rpm
.PHONY: linux-virtual # compile linux package tying compatiblity package and kernel package
linux-virtual: linux-$(BOARD_TARGET)-$(RELEASE_NAME)_arm64.deb