forked from ayufan-rock64/linux-build
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.package.mk
34 lines (30 loc) · 1.69 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
LATEST_UBOOT_VERSION ?= $(shell scripts/get-package-version linux-mainline-u-boot tag_iid $(UBOOT_VERSION))
LATEST_KERNEL_VERSION ?= $(shell scripts/get-package-version linux-mainline-kernel tag_with_sha $(KERNEL_VERSION))
LATEST_ROOTFS_VERSION ?= $(shell scripts/get-package-version linux-rootfs tag_version $(ROOTFS_VERSION))
LATEST_PACKAGE_VERSION ?= $(shell scripts/get-package-version linux-package tag_iid $(VERSION))
PACKAGES += linux-$(BOARD_TARGET)-$(RELEASE_NAME)-mainline_arm64.deb
generate-latest:
@echo LATEST_UBOOT_VERSION=$(LATEST_UBOOT_VERSION)
@echo LATEST_KERNEL_VERSION=$(LATEST_KERNEL_VERSION)
@echo LATEST_ROOTFS_VERSION=$(LATEST_ROOTFS_VERSION)
@echo LATEST_PACKAGE_VERSION=$(LATEST_PACKAGE_VERSION)
linux-$(BOARD_TARGET)-$(RELEASE_NAME)-mainline_arm64.deb:
fpm -s empty -t deb -n linux-$(BOARD_TARGET)-$(VERSION)-mainline -v $(RELEASE_NAME) \
-p $@ \
--deb-priority optional --category admin \
--depends "board-package-$(BOARD_TARGET)-$(LATEST_PACKAGE_VERSION)" \
--depends "u-boot-$(BOARD_TARGET)-$(LATEST_UBOOT_VERSION)" \
--depends "linux-image-$(LATEST_KERNEL_VERSION)" \
--depends "linux-headers-$(LATEST_KERNEL_VERSION)" \
--deb-field "Provides: linux-board-mainline-virtual" \
--deb-field "Provides: linux-board-mainline-virtual" \
--deb-field "Replaces: linux-board-mainline-virtual" \
--deb-field "Conflicts: linux-board-virtual" \
--force \
--url https://gitlab.com/ayufan-rock64/linux-build \
--description "Rock64 Linux virtual package: depends on kernel and compatibility package" \
-m "Kamil Trzciński <[email protected]>" \
--license "MIT" \
--vendor "Kamil Trzciński" \
-a arm64
linux-virtual: linux-$(BOARD_TARGET)-$(RELEASE_NAME)-mainline_arm64.deb